Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
The LookupTable class mitk wrapper for a vtkLookupTable. More...
#include <mitkLookupTable.h>
Public Types | |
enum | LookupTableType { GRAYSCALE, INVERSE_GRAYSCALE, HOT_IRON, JET, JET_TRANSPARENT, PLASMA, INFERNO, VIRIDIS, MAGMA, LEGACY_BINARY, LEGACY_RAINBOW_COLOR, MULTILABEL, PET_COLOR, PET_20, TURBO } |
The LookupTableType enum for different predefined lookup tables. More... | |
typedef unsigned char | RawLookupTableType |
RawLookupTableType raw lookuptable typedef for convenience. More... | |
typedef LookupTable | Self |
typedef itk::DataObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
virtual vtkSmartPointer< vtkLookupTable > | GetVtkLookupTable () const |
GetVtkLookupTable Getter for the internally wrapped vtkLookupTable. More... | |
virtual RawLookupTableType * | GetRawLookupTable () const |
GetRawLookupTable Getter for the raw lookuptable array. More... | |
virtual void | SetVtkLookupTable (vtkSmartPointer< vtkLookupTable > lut) |
SetVtkLookupTable Setter for the internal lookuptable. More... | |
virtual void | ChangeOpacityForAll (float opacity) |
ChangeOpacityForAll Set the opacity for all table values. More... | |
virtual void | ChangeOpacity (int index, float opacity) |
ChangeOpacity Set the opacity for a specific table index. More... | |
virtual void | GetColor (double value, double rgb[3]) |
GetColor convenience method wrapping the vtkLookupTable::GetColor() method. More... | |
virtual void | GetTableValue (int index, double rgba[4]) |
GetTableValue convenience method wrapping the vtkLookupTable::GetTableValue() method. More... | |
virtual void | SetTableValue (int index, double rgba[4]) |
SetTableValue convenience method wrapping the vtkLookupTable::SetTableValue() method. More... | |
virtual void | SetWindow (float _arg) |
virtual void | SetLevel (float _arg) |
virtual void | SetOpacity (float _arg) |
virtual bool | operator== (const mitk::LookupTable &LookupTable) const |
equality operator implementation More... | |
virtual bool | operator!= (const LookupTable &LookupTable) const |
non equality operator implementation More... | |
virtual LookupTable & | operator= (const LookupTable &LookupTable) |
implementation necessary because operator made private in itk::Object More... | |
void | UpdateOutputInformation () override |
Updates the output information of the current object by calling updateOutputInformation of the data objects source object. More... | |
void | SetRequestedRegionToLargestPossibleRegion () override |
Sets the requested Region to the largest possible region. This method is not implemented, since this is the default behavior of the itk pipeline and we do not support the requested-region mechanism for lookup-tables. More... | |
bool | RequestedRegionIsOutsideOfTheBufferedRegion () override |
Checks, if the requested region lies outside of the buffered region by calling verifyRequestedRegion(). More... | |
bool | VerifyRequestedRegion () override |
Checks if the requested region is completely contained in the buffered region. Since we always want to process the lookup table as a whole, this method always returns true. More... | |
void | SetRequestedRegion (const itk::DataObject *data) override |
This method has no effect for lookup tables, since we do not support the region-mechanism. More... | |
LookupTable () | |
~LookupTable () override | |
void | CreateColorTransferFunction (vtkColorTransferFunction *&colorFunction) |
void | CreateOpacityTransferFunction (vtkPiecewiseFunction *&opacityFunction) |
void | CreateGradientTransferFunction (vtkPiecewiseFunction *&gradientFunction) |
vtkSmartPointer< vtkColorTransferFunction > | CreateColorTransferFunction () |
vtkSmartPointer< vtkPiecewiseFunction > | CreateOpacityTransferFunction () |
vtkSmartPointer< vtkPiecewiseFunction > | CreateGradientTransferFunction () |
virtual void | SetType (const LookupTableType type) |
Set the look-up table type by enum (or integer). More... | |
virtual void | SetType (const std::string &typeName) |
Set the look-up table type by string. More... | |
virtual LookupTableType | GetActiveType () const |
Return the current look-up table type. More... | |
virtual std::string | GetActiveTypeAsString () const |
Return the current look-up table type as a string. More... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Static Public Attributes | |
static std::vector< std::string > | typenameList |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
LookupTable (const LookupTable &other) | |
virtual void | BuildGrayScaleLookupTable () |
virtual void | BuildLegacyBinaryLookupTable () |
virtual void | BuildLegacyRainbowColorLookupTable () |
virtual void | BuildInverseGrayScaleLookupTable () |
virtual void | BuildHotIronLookupTable () |
virtual void | BuildPlasmaLookupTable () |
virtual void | BuildInfernoLookupTable () |
virtual void | BuildViridisLookupTable () |
virtual void | BuildMagmaLookupTable () |
virtual void | BuildJetLookupTable (bool transparent=false) |
virtual void | BuildPETColorLookupTable () |
virtual void | BuildPET20LookupTable () |
virtual void | BuildMultiLabelLookupTable () |
virtual void | BuildTurboLookupTable () |
Protected Attributes | |
vtkSmartPointer< vtkLookupTable > | m_LookupTable |
float | m_Window |
float | m_Level |
float | m_Opacity |
LookupTableType | m_Type |
The LookupTable class mitk wrapper for a vtkLookupTable.
This class can be used to color images with a LookupTable, such as the vtkLookupTable.
Definition at line 42 of file mitkLookupTable.h.
typedef itk::SmartPointer<const Self> mitk::LookupTable::ConstPointer |
Definition at line 50 of file mitkLookupTable.h.
Definition at line 50 of file mitkLookupTable.h.
typedef unsigned char mitk::LookupTable::RawLookupTableType |
RawLookupTableType raw lookuptable typedef for convenience.
Definition at line 48 of file mitkLookupTable.h.
typedef LookupTable mitk::LookupTable::Self |
Definition at line 50 of file mitkLookupTable.h.
typedef itk::DataObject mitk::LookupTable::Superclass |
Definition at line 50 of file mitkLookupTable.h.
The LookupTableType enum for different predefined lookup tables.
The different LookupTableTypes can be applied in the MitkWorkbench via right-clicking on an image and choosing a color map.
Enumerator | |
---|---|
GRAYSCALE | |
INVERSE_GRAYSCALE | |
HOT_IRON | |
JET | |
JET_TRANSPARENT | |
PLASMA | |
INFERNO | |
VIRIDIS | |
MAGMA | |
LEGACY_BINARY | |
LEGACY_RAINBOW_COLOR | |
MULTILABEL | |
PET_COLOR | |
PET_20 | |
TURBO |
Definition at line 199 of file mitkLookupTable.h.
mitk::LookupTable::LookupTable | ( | ) |
|
override |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
ChangeOpacity Set the opacity for a specific table index.
index | The lookuptable index. |
opacity | Opacity between 0.0 and 1.0. |
|
virtual |
ChangeOpacityForAll Set the opacity for all table values.
opacity | Opacity between 0.0 and 1.0. |
Pointer mitk::LookupTable::Clone | ( | ) | const |
vtkSmartPointer<vtkColorTransferFunction> mitk::LookupTable::CreateColorTransferFunction | ( | ) |
void mitk::LookupTable::CreateColorTransferFunction | ( | vtkColorTransferFunction *& | colorFunction | ) |
vtkSmartPointer<vtkPiecewiseFunction> mitk::LookupTable::CreateGradientTransferFunction | ( | ) |
void mitk::LookupTable::CreateGradientTransferFunction | ( | vtkPiecewiseFunction *& | gradientFunction | ) |
vtkSmartPointer<vtkPiecewiseFunction> mitk::LookupTable::CreateOpacityTransferFunction | ( | ) |
void mitk::LookupTable::CreateOpacityTransferFunction | ( | vtkPiecewiseFunction *& | opacityFunction | ) |
|
virtual |
Return the current look-up table type.
|
virtual |
Return the current look-up table type as a string.
|
inlinevirtual |
Definition at line 50 of file mitkLookupTable.h.
|
virtual |
|
virtual |
GetColor convenience method wrapping the vtkLookupTable::GetColor() method.
Map one value through the lookup table and return the color as an RGB array of doubles between 0 and 1.
value | The value you want to map. |
rgb | RGB values between 0 and 1. |
|
virtual |
GetRawLookupTable Getter for the raw lookuptable array.
|
inlinestatic |
Definition at line 50 of file mitkLookupTable.h.
|
virtual |
GetTableValue convenience method wrapping the vtkLookupTable::GetTableValue() method.
index | The index you want to get. |
rgba | RGB values between 0 and 1. |
|
virtual |
GetVtkLookupTable Getter for the internally wrapped vtkLookupTable.
|
static |
|
virtual |
non equality operator implementation
|
virtual |
implementation necessary because operator made private in itk::Object
Reimplemented in mitk::LabeledImageLookupTable.
|
virtual |
equality operator implementation
|
overrideprotected |
|
override |
Checks, if the requested region lies outside of the buffered region by calling verifyRequestedRegion().
|
virtual |
|
virtual |
|
override |
This method has no effect for lookup tables, since we do not support the region-mechanism.
|
override |
Sets the requested Region to the largest possible region. This method is not implemented, since this is the default behavior of the itk pipeline and we do not support the requested-region mechanism for lookup-tables.
|
virtual |
SetTableValue convenience method wrapping the vtkLookupTable::SetTableValue() method.
index | The index you want to set. |
rgba | RGB values between 0 and 1. |
|
virtual |
Set the look-up table type by enum (or integer).
Returns if the given type doesn't exist. Only changes the type if it is different from the current one.
|
virtual |
Set the look-up table type by string.
Returns if the given type doesn't exist. Only changes the type if it is different from the current one.
|
virtual |
SetVtkLookupTable Setter for the internal lookuptable.
lut | The lookuptable. |
|
virtual |
|
override |
Updates the output information of the current object by calling updateOutputInformation of the data objects source object.
|
override |
Checks if the requested region is completely contained in the buffered region. Since we always want to process the lookup table as a whole, this method always returns true.
|
protected |
Definition at line 267 of file mitkLookupTable.h.
|
protected |
Definition at line 264 of file mitkLookupTable.h.
|
protected |
Definition at line 268 of file mitkLookupTable.h.
|
protected |
Definition at line 270 of file mitkLookupTable.h.
|
protected |
Definition at line 266 of file mitkLookupTable.h.
|
static |
Definition at line 218 of file mitkLookupTable.h.