Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
The LookupTable class mitk wrapper for a vtkLookupTableThis class can be used to color images with a LookupTable, such as the vtkLookupTable. More...
#include <mitkLookupTable.h>
Public Types | |
enum | LookupTableType { GRAYSCALE, INVERSE_GRAYSCALE, HOT_IRON, JET, JET_TRANSPARENT, LEGACY_BINARY, LEGACY_RAINBOW_COLOR, MULTILABEL, PET_COLOR, PET_20 } |
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... | |
virtual void | UpdateOutputInformation () override |
virtual void | SetRequestedRegionToLargestPossibleRegion () override |
virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () override |
virtual bool | VerifyRequestedRegion () override |
virtual void | SetRequestedRegion (const itk::DataObject *data) override |
LookupTable () | |
virtual | ~LookupTable () |
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 const std::string | GetActiveTypeAsString () |
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 const char *const | 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 | BuildJetLookupTable (bool transparent=false) |
virtual void | BuildPETColorLookupTable () |
virtual void | BuildPET20LookupTable () |
virtual void | BuildMultiLabelLookupTable () |
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 46 of file mitkLookupTable.h.
typedef itk::SmartPointer<const Self> mitk::LookupTable::ConstPointer |
Definition at line 54 of file mitkLookupTable.h.
Definition at line 54 of file mitkLookupTable.h.
typedef unsigned char mitk::LookupTable::RawLookupTableType |
RawLookupTableType raw lookuptable typedef for convenience.
Definition at line 52 of file mitkLookupTable.h.
typedef LookupTable mitk::LookupTable::Self |
Definition at line 54 of file mitkLookupTable.h.
typedef itk::DataObject mitk::LookupTable::Superclass |
Definition at line 54 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 | |
LEGACY_BINARY | |
LEGACY_RAINBOW_COLOR | |
MULTILABEL | |
PET_COLOR | |
PET_20 |
Definition at line 200 of file mitkLookupTable.h.
mitk::LookupTable::LookupTable | ( | ) |
Definition at line 43 of file mitkLookupTable.cpp.
References BuildGrayScaleLookupTable(), m_LookupTable, and mitk::New().
|
virtual |
Definition at line 55 of file mitkLookupTable.cpp.
|
protected |
Definition at line 49 of file mitkLookupTable.cpp.
References m_LookupTable.
|
protectedvirtual |
Definition at line 393 of file mitkLookupTable.cpp.
References mitk::New().
Referenced by LookupTable().
|
protectedvirtual |
Definition at line 434 of file mitkLookupTable.cpp.
References HotIron, and mitk::New().
|
protectedvirtual |
Definition at line 420 of file mitkLookupTable.cpp.
References mitk::New().
|
protectedvirtual |
Definition at line 450 of file mitkLookupTable.cpp.
References Jet, and mitk::New().
|
protectedvirtual |
Definition at line 406 of file mitkLookupTable.cpp.
References mitk::New().
|
protectedvirtual |
Definition at line 572 of file mitkLookupTable.cpp.
References mitk::New().
|
protectedvirtual |
Definition at line 506 of file mitkLookupTable.cpp.
References mitk::New().
|
protectedvirtual |
Definition at line 490 of file mitkLookupTable.cpp.
References mitk::New(), and PET20.
|
protectedvirtual |
Definition at line 473 of file mitkLookupTable.cpp.
References mitk::New(), and PETColor.
|
virtual |
ChangeOpacity Set the opacity for a specific table index.
index | The lookuptable index. |
opacity | Opacity between 0.0 and 1.0. |
Definition at line 152 of file mitkLookupTable.cpp.
References MITK_INFO.
|
virtual |
ChangeOpacityForAll Set the opacity for all table values.
opacity | Opacity between 0.0 and 1.0. |
Definition at line 136 of file mitkLookupTable.cpp.
Pointer mitk::LookupTable::Clone | ( | ) | const |
void mitk::LookupTable::CreateColorTransferFunction | ( | vtkColorTransferFunction *& | colorFunction | ) |
Definition at line 319 of file mitkLookupTable.cpp.
vtkSmartPointer< vtkColorTransferFunction > mitk::LookupTable::CreateColorTransferFunction | ( | ) |
Definition at line 291 of file mitkLookupTable.cpp.
References mitk::New().
void mitk::LookupTable::CreateGradientTransferFunction | ( | vtkPiecewiseFunction *& | gradientFunction | ) |
Definition at line 375 of file mitkLookupTable.cpp.
vtkSmartPointer< vtkPiecewiseFunction > mitk::LookupTable::CreateGradientTransferFunction | ( | ) |
Definition at line 352 of file mitkLookupTable.cpp.
References mitk::New().
void mitk::LookupTable::CreateOpacityTransferFunction | ( | vtkPiecewiseFunction *& | opacityFunction | ) |
Definition at line 347 of file mitkLookupTable.cpp.
vtkSmartPointer< vtkPiecewiseFunction > mitk::LookupTable::CreateOpacityTransferFunction | ( | ) |
Definition at line 324 of file mitkLookupTable.cpp.
References mitk::New().
|
virtual |
Return the current look-up table type as a string.
Definition at line 131 of file mitkLookupTable.cpp.
|
inlinevirtual |
Definition at line 54 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. |
Definition at line 171 of file mitkLookupTable.cpp.
|
virtual |
GetRawLookupTable Getter for the raw lookuptable array.
Definition at line 191 of file mitkLookupTable.cpp.
|
inlinestatic |
Definition at line 54 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. |
Definition at line 176 of file mitkLookupTable.cpp.
|
virtual |
GetVtkLookupTable Getter for the internally wrapped vtkLookupTable.
Definition at line 186 of file mitkLookupTable.cpp.
Referenced by operator=(), and operator==().
|
static |
Referenced by mitk::FiberBundle::ColorFibersByScalarMap(), QmitkDataManagerView::ColormapMenuAboutToShow(), mitk::Tool::CreateSegmentationNode(), mitk::LookupTablePropertySerializer::Deserialize(), mitk::VectorImageVtkGlyphMapper3D::GenerateDataForRenderer(), QmitkODFRenderWidget::GenerateODF(), mitk::ColorBarOverlay::GetLookupTable(), mitk::LabelSet::LabelSet(), mitk::RegEvaluationMapper2D::LocalStorage::LocalStorage(), mitk::ImageVtkMapper2D::LocalStorage::LocalStorage(), mitk::DoseImageVtkMapper2D::LocalStorage::LocalStorage(), mitk::LookupTableProperty::LookupTableProperty(), mitkImageVtkMapper2DLookupTableTest(), mitkPropertySerializationTest(), mitkPropertyTest(), mitk::OtsuTool3D::RunSegmentation(), mitk::GizmoMapper2D::SetDefaultProperties(), mitk::RegEvaluationMapper2D::SetDefaultProperties(), mitk::ImageVtkMapper2D::SetDefaultProperties(), mitk::DoseImageVtkMapper2D::SetDefaultProperties(), and mitk::ColorBarOverlay::SetLookupTable().
|
virtual |
non equality operator implementation
un-equality operator implementation
Definition at line 238 of file mitkLookupTable.cpp.
|
virtual |
implementation necessary because operator made private in itk::Object
assignment operator implementation
Reimplemented in mitk::LabeledImageLookupTable.
Definition at line 246 of file mitkLookupTable.cpp.
References GetVtkLookupTable().
Referenced by mitk::LabeledImageLookupTable::operator=().
|
virtual |
equality operator implementation
equality operator inplementation
Definition at line 199 of file mitkLookupTable.cpp.
References GetVtkLookupTable().
|
overrideprotected |
Definition at line 380 of file mitkLookupTable.cpp.
|
overridevirtual |
Checks, if the requested region lies outside of the buffered region by calling verifyRequestedRegion().
Definition at line 271 of file mitkLookupTable.cpp.
|
virtual |
|
virtual |
|
overridevirtual |
This method has no effect for lookup tables, since we do not support the region-mechanism
Definition at line 285 of file mitkLookupTable.cpp.
|
overridevirtual |
Sets the requested Region to the largest possible region. This method is not implemented, since this is the default behaviour of the itk pipeline and we do not support the requested-region mechanism for lookup-tables
Definition at line 267 of file mitkLookupTable.cpp.
|
virtual |
SetTableValue convenience method wrapping the vtkLookupTable::SetTableValue() method.
index | The index you want to set. |
rgba | RGB values between 0 and 1. |
Definition at line 181 of file mitkLookupTable.cpp.
|
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.
Definition at line 70 of file mitkLookupTable.cpp.
References GRAYSCALE, HOT_IRON, INVERSE_GRAYSCALE, JET, JET_TRANSPARENT, LEGACY_BINARY, LEGACY_RAINBOW_COLOR, MITK_ERROR, MULTILABEL, PET_20, and PET_COLOR.
|
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.
Definition at line 115 of file mitkLookupTable.cpp.
|
virtual |
SetVtkLookupTable Setter for the internal lookuptable.
lut | The lookuptable. |
Definition at line 59 of file mitkLookupTable.cpp.
|
virtual |
|
overridevirtual |
Updates the output information of the current object by calling updateOutputInformation of the data objects source object.
Definition at line 259 of file mitkLookupTable.cpp.
|
overridevirtual |
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
Definition at line 276 of file mitkLookupTable.cpp.
|
protected |
Definition at line 254 of file mitkLookupTable.h.
|
protected |
Definition at line 250 of file mitkLookupTable.h.
Referenced by mitk::LabeledImageLookupTable::LabeledImageLookupTable(), and LookupTable().
|
protected |
Definition at line 256 of file mitkLookupTable.h.
|
protected |
Definition at line 258 of file mitkLookupTable.h.
|
protected |
Definition at line 252 of file mitkLookupTable.h.
|
static |
Definition at line 214 of file mitkLookupTable.h.