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;
64 virtual RawLookupTableType *GetRawLookupTable()
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();
230 virtual void SetType(
const std::string &typeName);
240 virtual std::string GetActiveTypeAsString()
const;
243 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
247 virtual void BuildGrayScaleLookupTable();
248 virtual void BuildLegacyBinaryLookupTable();
249 virtual void BuildLegacyRainbowColorLookupTable();
250 virtual void BuildInverseGrayScaleLookupTable();
251 virtual void BuildHotIronLookupTable();
252 virtual void BuildPlasmaLookupTable();
253 virtual void BuildInfernoLookupTable();
254 virtual void BuildViridisLookupTable();
255 virtual void BuildMagmaLookupTable();
256 virtual void BuildJetLookupTable(
bool transparent =
false);
257 virtual void BuildPETColorLookupTable();
258 virtual void BuildPET20LookupTable();
259 virtual void BuildMultiLabelLookupTable();
270 itk::LightObject::Pointer InternalClone()
const override;
MITKCORE_EXPORT bool operator!=(const InteractionEvent &a, const InteractionEvent &b)
LookupTableType
The LookupTableType enum for different predefined lookup tables.
static std::vector< std::string > typenameList
DataCollection - Class to facilitate loading/accessing structured data.
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
#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 ...