00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #ifndef MITKLOOKUPTABLESOURCE_H_HEADER_INCLUDED 00020 #define MITKLOOKUPTABLESOURCE_H_HEADER_INCLUDED 00021 00022 #include "mitkLookupTable.h" 00023 #include "MitkExtExports.h" 00024 #include "mitkCommon.h" 00025 #include "mitkBaseProcess.h" 00026 00027 namespace mitk 00028 { 00029 00040 class MitkExt_EXPORT LookupTableSource : public itk::ProcessObject 00041 { 00042 public: 00043 00044 mitkClassMacro( LookupTableSource, BaseProcess ); 00045 00046 itkNewMacro( Self ); 00047 00048 typedef mitk::LookupTable OutputType; 00049 00050 typedef OutputType::Pointer OutputTypePointer; 00051 00052 typedef itk::DataObject::Pointer DataObjectPointer; 00053 00060 virtual DataObjectPointer MakeOutput ( unsigned int idx ); 00061 00066 void GenerateInputRequestedRegion(); 00067 00074 void SetOutput( OutputType* output ); 00075 00082 virtual void GraftOutput( OutputType* output ); 00083 00088 OutputType* GetOutput(); 00089 00095 OutputType* GetOutput ( unsigned int idx ); 00096 00097 protected: 00098 LookupTableSource(); 00099 virtual ~LookupTableSource(); 00100 00101 }; 00102 00103 } // namespace mitk 00104 00105 00106 00107 #endif 00108 00109