12 #ifndef mitkLookupTable_h
13 #define mitkLookupTable_h
18 #include <itkDataObject.h>
19 #include <itkObjectFactory.h>
21 #include <vtkLookupTable.h>
22 #include <vtkSmartPointer.h>
24 class vtkColorTransferFunction;
25 class vtkPiecewiseFunction;
52 itkFactorylessNewMacro(
Self);
59 virtual vtkSmartPointer<vtkLookupTable> GetVtkLookupTable()
const;
70 virtual void SetVtkLookupTable(vtkSmartPointer<vtkLookupTable> lut);
76 virtual void ChangeOpacityForAll(
float opacity);
83 virtual void ChangeOpacity(
int index,
float opacity);
92 virtual void GetColor(
double value,
double rgb[3]);
99 virtual void GetTableValue(
int index,
double rgba[4]);
106 virtual void SetTableValue(
int index,
double rgba[4]);
108 itkSetMacro(Window,
float);
109 itkSetMacro(Level,
float);
110 itkSetMacro(Opacity,
float);
132 void UpdateOutputInformation()
override;
140 void SetRequestedRegionToLargestPossibleRegion()
override;
146 bool RequestedRegionIsOutsideOfTheBufferedRegion()
override;
153 bool VerifyRequestedRegion()
override;
159 void SetRequestedRegion(
const itk::DataObject *data)
override;
166 DEPRECATED(
void CreateColorTransferFunction(vtkColorTransferFunction *&colorFunction));
170 DEPRECATED(
void CreateOpacityTransferFunction(vtkPiecewiseFunction *&opacityFunction));
174 DEPRECATED(
void CreateGradientTransferFunction(vtkPiecewiseFunction *&gradientFunction));
176 vtkSmartPointer<vtkColorTransferFunction> CreateColorTransferFunction();
177 vtkSmartPointer<vtkPiecewiseFunction> CreateOpacityTransferFunction();
178 vtkSmartPointer<vtkPiecewiseFunction> CreateGradientTransferFunction();
232 virtual void SetType(
const std::string &typeName);
242 virtual std::string GetActiveTypeAsString()
const;
245 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
249 virtual void BuildGrayScaleLookupTable();
250 virtual void BuildLegacyBinaryLookupTable();
251 virtual void BuildLegacyRainbowColorLookupTable();
252 virtual void BuildInverseGrayScaleLookupTable();
253 virtual void BuildHotIronLookupTable();
254 virtual void BuildPlasmaLookupTable();
255 virtual void BuildInfernoLookupTable();
256 virtual void BuildViridisLookupTable();
257 virtual void BuildMagmaLookupTable();
258 virtual void BuildJetLookupTable(
bool transparent =
false);
259 virtual void BuildPETColorLookupTable();
260 virtual void BuildPET20LookupTable();
261 virtual void BuildMultiLabelLookupTable();
262 virtual void BuildTurboLookupTable();
273 itk::LightObject::Pointer InternalClone()
const override;