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);
92 virtual void GetColor(
double value,
double rgb[3]);
108 itkSetMacro(Window,
float);
109 itkSetMacro(Level,
float);
110 itkSetMacro(Opacity,
float);
234 virtual void SetType(
const std::string &typeName);
247 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
276 itk::LightObject::Pointer InternalClone()
const override;
The LookupTable class mitk wrapper for a vtkLookupTable.
virtual bool operator==(const mitk::LookupTable &LookupTable) const
equality operator implementation
virtual void BuildMagmaLookupTable()
virtual void BuildGrayScaleLookupTable()
void CreateGradientTransferFunction(vtkPiecewiseFunction *&gradientFunction)
vtkSmartPointer< vtkColorTransferFunction > CreateColorTransferFunction()
vtkSmartPointer< vtkPiecewiseFunction > CreateOpacityTransferFunction()
virtual void BuildTurboLookupTable()
virtual void BuildPETBWLookupTable()
virtual void BuildPETColorLookupTable()
virtual std::string GetActiveTypeAsString() const
Return the current look-up table type as a string.
virtual void BuildPET20LookupTable()
virtual void BuildInfernoLookupTable()
bool VerifyRequestedRegion() override
Checks if the requested region is completely contained in the buffered region. Since we always want t...
virtual void BuildMultiLabelLookupTable()
void SetRequestedRegion(const itk::DataObject *data) override
This method has no effect for lookup tables, since we do not support the region-mechanism.
virtual void BuildJetLookupTable(bool transparent=false)
LookupTableType
The LookupTableType enum for different predefined lookup tables.
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Checks, if the requested region lies outside of the buffered region by calling verifyRequestedRegion(...
void SetRequestedRegionToLargestPossibleRegion() override
Sets the requested Region to the largest possible region. This method is not implemented,...
virtual void ChangeOpacityForAll(float opacity)
ChangeOpacityForAll Set the opacity for all table values.
static std::vector< std::string > typenameList
LookupTable(const LookupTable &other)
virtual void SetType(const std::string &typeName)
Set the look-up table type by string.
virtual void BuildInverseGrayScaleLookupTable()
void CreateOpacityTransferFunction(vtkPiecewiseFunction *&opacityFunction)
void CreateColorTransferFunction(vtkColorTransferFunction *&colorFunction)
virtual void BuildLegacyBinaryLookupTable()
virtual void BuildHotIronLookupTable()
void PrintSelf(std::ostream &os, itk::Indent indent) const override
virtual void SetType(const LookupTableType type)
Set the look-up table type by enum (or integer).
vtkSmartPointer< vtkLookupTable > m_LookupTable
virtual void GetTableValue(int index, double rgba[4])
GetTableValue convenience method wrapping the vtkLookupTable::GetTableValue() method.
void UpdateOutputInformation() override
Updates the output information of the current object by calling updateOutputInformation of the data o...
virtual vtkSmartPointer< vtkLookupTable > GetVtkLookupTable() const
GetVtkLookupTable Getter for the internally wrapped vtkLookupTable.
virtual LookupTable & operator=(const LookupTable &LookupTable)
implementation necessary because operator made private in itk::Object
unsigned char RawLookupTableType
RawLookupTableType raw lookuptable typedef for convenience.
virtual void BuildPlasmaLookupTable()
vtkSmartPointer< vtkPiecewiseFunction > CreateGradientTransferFunction()
virtual RawLookupTableType * GetRawLookupTable() const
GetRawLookupTable Getter for the raw lookuptable array.
virtual LookupTableType GetActiveType() const
Return the current look-up table type.
virtual void BuildViridisLookupTable()
virtual void ChangeOpacity(int index, float opacity)
ChangeOpacity Set the opacity for a specific table index.
virtual void GetColor(double value, double rgb[3])
GetColor convenience method wrapping the vtkLookupTable::GetColor() method.
virtual void SetVtkLookupTable(vtkSmartPointer< vtkLookupTable > lut)
SetVtkLookupTable Setter for the internal lookuptable.
virtual bool operator!=(const LookupTable &LookupTable) const
non equality operator implementation
virtual void SetTableValue(int index, double rgba[4])
SetTableValue convenience method wrapping the vtkLookupTable::SetTableValue() method.
virtual void BuildLegacyRainbowColorLookupTable()
#define mitkClassMacroItkParent(className, SuperClassName)
Find image slices visible on a given plane.