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;
54 itkFactorylessNewMacro(Self);
97 virtual void GetColor(
double value,
double rgb[3]);
140 itkSetMacro(Window,
float);
141 itkSetMacro(Level,
float);
142 itkSetMacro(Opacity,
float);
289 virtual void SetType(
const std::string &typeName);
304 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
MITK wrapper for a vtkLookupTable.
virtual bool operator==(const mitk::LookupTable &LookupTable) const
Compare two LookupTable objects for equality.
virtual void BuildMagmaLookupTable()
virtual void BuildGrayScaleLookupTable()
vtkSmartPointer< vtkColorTransferFunction > CreateColorTransferFunction()
Create a vtkColorTransferFunction from this lookup table.
mitkClassMacroItkParent(LookupTable, itk::DataObject)
vtkSmartPointer< vtkPiecewiseFunction > CreateOpacityTransferFunction()
Create a vtkPiecewiseFunction for opacity from this lookup table.
virtual void BuildTurboLookupTable()
LookupTable()
Default constructor. Builds a GRAYSCALE table by default.
virtual void BuildPETBWLookupTable()
virtual void BuildPETColorLookupTable()
virtual std::string GetActiveTypeAsString() const
Get the currently active lookup table type as a string.
virtual void BuildPET20LookupTable()
static void GetMultiLabelColor(int index, double rgb[3])
RGB of the index-th MULTILABEL color, in [0,1].
virtual void BuildInfernoLookupTable()
static int GetMultiLabelColorCount()
Number of curated colors in the MULTILABEL palette.
bool VerifyRequestedRegion() override
Check whether the requested region is valid.
virtual void BuildMultiLabelLookupTable()
void SetRequestedRegion(const itk::DataObject *data) override
Set the requested region from another data object.
virtual void BuildJetLookupTable(bool transparent=false)
LookupTableType
The LookupTableType enum for different predefined lookup tables.
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Check whether the requested region is outside the buffered region.
void SetRequestedRegionToLargestPossibleRegion() override
Set the requested region to the largest possible region.
virtual void ChangeOpacityForAll(float opacity)
Set the opacity (alpha) for all entries in the table.
static std::vector< std::string > typenameList
List of all predefined lookup table type names.
LookupTable(const Self &other)
virtual void SetType(const std::string &typeName)
Set the lookup table type by name string.
virtual void BuildInverseGrayScaleLookupTable()
~LookupTable() override
Destructor.
virtual void BuildLegacyBinaryLookupTable()
virtual void BuildHotIronLookupTable()
void PrintSelf(std::ostream &os, itk::Indent indent) const override
virtual void SetType(const LookupTableType type)
Set the lookup table type by enum value.
vtkSmartPointer< vtkLookupTable > m_LookupTable
virtual void GetTableValue(int index, double rgba[4])
Get the RGBA tuple at a specific table index.
void UpdateOutputInformation() override
Update output information by querying the source object.
virtual vtkSmartPointer< vtkLookupTable > GetVtkLookupTable() const
Get the internally wrapped vtkLookupTable.
virtual LookupTable & operator=(const LookupTable &LookupTable)
Copy assignment operator.
unsigned char RawLookupTableType
Convenience typedef for the raw lookup table element type.
virtual void BuildPlasmaLookupTable()
vtkSmartPointer< vtkPiecewiseFunction > CreateGradientTransferFunction()
Create a vtkPiecewiseFunction for gradient opacity from this lookup table.
virtual RawLookupTableType * GetRawLookupTable() const
Get the raw lookup table array from the wrapped vtkLookupTable.
virtual LookupTableType GetActiveType() const
Get the currently active lookup table type.
virtual void BuildViridisLookupTable()
virtual void ChangeOpacity(int index, float opacity)
Set the opacity (alpha) for a specific table entry.
virtual void GetColor(double value, double rgb[3])
Map a scalar value to an RGB color via the lookup table.
virtual void SetVtkLookupTable(vtkSmartPointer< vtkLookupTable > lut)
Set the internal vtkLookupTable.
virtual bool operator!=(const LookupTable &LookupTable) const
Compare two LookupTable objects for inequality.
virtual void SetTableValue(int index, double rgba[4])
Set the RGBA tuple at a specific table index.
virtual void BuildLegacyRainbowColorLookupTable()
Find image slices visible on a given plane.