The TransferFunctionProperty class Property class for the mitk::TransferFunction.
More...
#include <mitkTransferFunctionProperty.h>
The TransferFunctionProperty class Property class for the mitk::TransferFunction.
- Note
- If you want to use this property for an mitk::Image, make sure to set the mitk::RenderingModeProperty to a mode which supports transfer functions (e.g. COLORTRANSFERFUNCTION_COLOR). Make sure to check the documentation of the mitk::RenderingModeProperty. For a code example how to use the mitk::TransferFunction check the mitkImageVtkMapper2DTransferFunctionTest.cpp in Core/Code/Testing.
Definition at line 36 of file mitkTransferFunctionProperty.h.
◆ ConstPointer
◆ Pointer
◆ Self
◆ Superclass
◆ ValueType
◆ TransferFunctionProperty() [1/3]
mitk::TransferFunctionProperty::TransferFunctionProperty |
( |
| ) |
|
|
protected |
◆ TransferFunctionProperty() [2/3]
◆ TransferFunctionProperty() [3/3]
◆ Clone()
Pointer mitk::TransferFunctionProperty::Clone |
( |
| ) |
const |
◆ FromJSON()
bool mitk::TransferFunctionProperty::FromJSON |
( |
const nlohmann::json & |
j | ) |
|
|
overridevirtual |
Deserialize property value(s) from JSON.
Rely on exceptions for error handling when implementing deserialization.
- Returns
- False if not deserializable by design, true otherwise.
Implements mitk::BaseProperty.
◆ GetClassHierarchy()
virtual std::vector<std::string> mitk::TransferFunctionProperty::GetClassHierarchy |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetClassName()
virtual const char* mitk::TransferFunctionProperty::GetClassName |
( |
| ) |
const |
|
virtual |
◆ GetStaticNameOfClass()
static const char* mitk::TransferFunctionProperty::GetStaticNameOfClass |
( |
| ) |
|
|
inlinestatic |
◆ GetValue()
◆ GetValueAsString()
std::string mitk::TransferFunctionProperty::GetValueAsString |
( |
| ) |
const |
|
overridevirtual |
◆ New() [1/2]
static Pointer mitk::TransferFunctionProperty::New |
( |
| ) |
|
|
static |
◆ New() [2/2]
◆ operator=()
Assigns property to this BaseProperty instance.
Subclasses must implement Assign(const BaseProperty&) and call the superclass Assign method for proper handling of polymorphic assignments. The assignment operator of the subclass should be disabled and the baseclass operator should be made visible using "using" statements.
◆ SetValue()
◆ ToJSON()
bool mitk::TransferFunctionProperty::ToJSON |
( |
nlohmann::json & |
j | ) |
const |
|
overridevirtual |
Serialize property value(s) to JSON.
Rely on exceptions for error handling when implementing serialization.
- Returns
- False if not serializable by design, true otherwise.
Implements mitk::BaseProperty.
◆ m_Value
The documentation for this class was generated from the following file: