Property to associate a mitk::LookupTable with a DataNode.
More...
#include <mitkLookupTableProperty.h>
|
| typedef LookupTable::Pointer | ValueType |
| | The type of the value stored by this property. More...
|
| |
Property to associate a mitk::LookupTable with a DataNode.
Stores a smart pointer to a LookupTable, which defines a color mapping for rendering images with discrete or continuous color scales.
- Note
- If you want to use this property to colorize an mitk::Image, make sure to set the mitk::RenderingModeProperty to a mode which supports lookup tables (e.g. LOOKUPTABLE_COLOR). See the documentation of mitk::RenderingModeProperty. For a code example see mitkImageVtkMapper2DLookupTableTest.cpp in Core/Code/Testing.
- See also
- BaseProperty
-
LookupTable
-
RenderingModeProperty
Definition at line 37 of file mitkLookupTableProperty.h.
◆ ValueType
◆ LookupTableProperty() [1/3]
| mitk::LookupTableProperty::LookupTableProperty |
( |
| ) |
|
|
protected |
◆ LookupTableProperty() [2/3]
◆ LookupTableProperty() [3/3]
| mitk::LookupTableProperty::LookupTableProperty |
( |
const mitk::LookupTable::Pointer |
lut | ) |
|
|
protected |
◆ Clone()
| Pointer mitk::LookupTableProperty::Clone |
( |
| ) |
const |
◆ FromJSON()
Deserialize the lookup table from JSON.
- Parameters
-
| [in] | j | The JSON object containing lookup table data. |
- Returns
- Always
true.
Implements mitk::BaseProperty.
◆ GetLookupTable()
| virtual LookupTable* mitk::LookupTableProperty::GetLookupTable |
( |
| ) |
|
|
virtual |
Get the lookup table (ITK macro-generated accessor).
- Returns
- A pointer to the stored LookupTable.
◆ GetValue()
| ValueType mitk::LookupTableProperty::GetValue |
( |
| ) |
const |
Get the lookup table as a smart pointer.
- Returns
- The stored LookupTable smart pointer.
◆ GetValueAsString()
| std::string mitk::LookupTableProperty::GetValueAsString |
( |
| ) |
const |
|
overridevirtual |
Return a summary string of the lookup table.
Includes the number of colors, the table range, and the first few RGBA entries.
- Returns
- A string representation of the lookup table.
Reimplemented from mitk::BaseProperty.
◆ mitkClassMacro()
◆ mitkCloneMacro()
◆ mitkNewMacro1Param()
| mitk::LookupTableProperty::mitkNewMacro1Param |
( |
LookupTableProperty |
, |
|
|
const mitk::LookupTable::Pointer |
|
|
) |
| |
◆ New()
| static Pointer mitk::LookupTableProperty::New |
( |
| ) |
|
|
static |
◆ operator=()
Assign a property value to this instance.
Performs a polymorphic assignment from the given property. The assignment succeeds only if the source and target properties are of the same type. The subclass-specific Assign() method is called to perform the actual value copy.
Subclasses must implement Assign(const BaseProperty&) and call the superclass Assign method for proper handling. The copy assignment operator of the subclass should be disabled and the base class operator should be made visible using "using" statements.
- Parameters
-
| [in] | property | The property whose value should be assigned to this instance. |
- Returns
- A reference to this property.
- See also
- AssignProperty
-
Assign
◆ SetLookupTable()
| void mitk::LookupTableProperty::SetLookupTable |
( |
const mitk::LookupTable::Pointer |
aLookupTable | ) |
|
Set the lookup table.
Marks the property as modified if the new table differs from the current one.
- Parameters
-
◆ SetValue()
| void mitk::LookupTableProperty::SetValue |
( |
const ValueType & |
| ) |
|
◆ ToJSON()
Serialize the lookup table to JSON.
Serializes all VTK lookup table parameters including scale, ramp, ranges, and the full RGBA color table.
- Parameters
-
| [out] | j | The JSON object to write the value into. |
- Returns
- Always
true.
Implements mitk::BaseProperty.
◆ m_LookupTable
| LookupTable::Pointer mitk::LookupTableProperty::m_LookupTable |
|
protected |
The documentation for this class was generated from the following file: