16 #ifndef mitkLookupTable_h
17 #define mitkLookupTable_h
22 #include <itkDataObject.h>
23 #include <itkObjectFactory.h>
25 #include <vtkLookupTable.h>
26 #include <vtkSmartPointer.h>
28 class vtkColorTransferFunction;
29 class vtkPiecewiseFunction;
56 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
61 virtual vtkSmartPointer<vtkLookupTable> GetVtkLookupTable() const;
66 virtual RawLookupTableType *GetRawLookupTable() const;
72 virtual
void SetVtkLookupTable(vtkSmartPointer<vtkLookupTable> lut);
78 virtual
void ChangeOpacityForAll(
float opacity);
85 virtual
void ChangeOpacity(
int index,
float opacity);
94 virtual
void GetColor(
double value,
double rgb[3]);
101 virtual
void GetTableValue(
int index,
double rgba[4]);
108 virtual
void SetTableValue(
int index,
double rgba[4]);
110 itkSetMacro(Window,
float);
111 itkSetMacro(Level,
float);
112 itkSetMacro(Opacity,
float);
134 virtual
void UpdateOutputInformation() override;
142 virtual
void SetRequestedRegionToLargestPossibleRegion() override;
148 virtual
bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
155 virtual
bool VerifyRequestedRegion() override;
161 virtual
void SetRequestedRegion(const
itk::DataObject *data) override;
164 virtual ~LookupTable();
168 DEPRECATED(
void CreateColorTransferFunction(vtkColorTransferFunction *&colorFunction));
172 DEPRECATED(
void CreateOpacityTransferFunction(vtkPiecewiseFunction *&opacityFunction));
176 DEPRECATED(
void CreateGradientTransferFunction(vtkPiecewiseFunction *&gradientFunction));
178 vtkSmartPointer<vtkColorTransferFunction> CreateColorTransferFunction();
179 vtkSmartPointer<vtkPiecewiseFunction> CreateOpacityTransferFunction();
180 vtkSmartPointer<vtkPiecewiseFunction> CreateGradientTransferFunction();
214 static const char *
const typenameList[];
228 virtual void SetType(
const std::string &typeName);
233 virtual const std::string GetActiveTypeAsString();
236 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
240 virtual void BuildGrayScaleLookupTable();
241 virtual void BuildLegacyBinaryLookupTable();
242 virtual void BuildLegacyRainbowColorLookupTable();
243 virtual void BuildInverseGrayScaleLookupTable();
244 virtual void BuildHotIronLookupTable();
245 virtual void BuildJetLookupTable(
bool transparent =
false);
246 virtual void BuildPETColorLookupTable();
247 virtual void BuildPET20LookupTable();
248 virtual void BuildMultiLabelLookupTable();
itk::SmartPointer< Self > Pointer
LookupTableType
The LookupTableType enum for different predefined lookup tables.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
vtkSmartPointer< vtkLookupTable > m_LookupTable
unsigned char RawLookupTableType
RawLookupTableType raw lookuptable typedef for convenience.
The LookupTable class mitk wrapper for a vtkLookupTableThis class can be used to color images with a ...