Property class that wraps an IsoDoseLevelSet for storage in a PropertyList.
More...
#include <mitkIsoDoseLevelSetProperty.h>
Property class that wraps an IsoDoseLevelSet for storage in a PropertyList.
This property allows attaching a complete set of iso dose level definitions to a DataNode via the MITK property system. It is typically stored under the key defined by RTConstants::DOSE_ISO_LEVELS_PROPERTY_NAME.
- See also
- IsoDoseLevelSet
-
IsoDoseLevelVectorProperty
-
mitk::BaseProperty
Definition at line 34 of file mitkIsoDoseLevelSetProperty.h.
◆ ValueType
◆ IsoDoseLevelSetProperty() [1/3]
| mitk::IsoDoseLevelSetProperty::IsoDoseLevelSetProperty |
( |
| ) |
|
|
protected |
Default constructor. Creates an empty property.
◆ IsoDoseLevelSetProperty() [2/3]
◆ IsoDoseLevelSetProperty() [3/3]
| mitk::IsoDoseLevelSetProperty::IsoDoseLevelSetProperty |
( |
IsoDoseLevelSet * |
levelSet | ) |
|
|
explicitprotected |
Constructor initializing the property with a given level set.
- Parameters
-
| [in] | levelSet | The iso dose level set to wrap. May be nullptr. |
◆ ~IsoDoseLevelSetProperty()
| mitk::IsoDoseLevelSetProperty::~IsoDoseLevelSetProperty |
( |
| ) |
|
|
override |
◆ FromJSON()
| bool mitk::IsoDoseLevelSetProperty::FromJSON |
( |
const nlohmann::json & |
j | ) |
|
|
overridevirtual |
Deserialize property from JSON. Currently not implemented.
- Parameters
-
| [in] | j | The JSON object to read from. |
- Returns
- Always returns false.
Implements mitk::BaseProperty.
◆ GetIsoDoseLevelSet() [1/2]
Get the stored iso dose level set (mutable version).
- Returns
- Pointer to the IsoDoseLevelSet, or nullptr if none is set.
◆ GetIsoDoseLevelSet() [2/2]
| const IsoDoseLevelSet* mitk::IsoDoseLevelSetProperty::GetIsoDoseLevelSet |
( |
| ) |
const |
Get the stored iso dose level set (const version).
- Returns
- Const pointer to the IsoDoseLevelSet, or nullptr if none is set.
◆ GetValue() [1/2]
◆ GetValue() [2/2]
◆ GetValueAsString()
| std::string mitk::IsoDoseLevelSetProperty::GetValueAsString |
( |
| ) |
const |
|
overridevirtual |
Returns a human-readable string representation of the iso dose levels.
- Returns
- A string listing the number of levels and their dose values, colors, and visibility.
Reimplemented from mitk::BaseProperty.
◆ mitkClassMacro()
◆ mitkCloneMacro()
◆ mitkNewMacro1Param()
◆ New()
| static Pointer mitk::IsoDoseLevelSetProperty::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
◆ SetIsoDoseLevelSet()
| void mitk::IsoDoseLevelSetProperty::SetIsoDoseLevelSet |
( |
IsoDoseLevelSet * |
levelSet | ) |
|
Set the iso dose level set wrapped by this property.
- Parameters
-
| [in] | levelSet | The new iso dose level set. Triggers Modified() if changed. |
◆ SetValue()
Set the value. Equivalent to SetIsoDoseLevelSet().
- Parameters
-
| [in] | levelSet | The new iso dose level set. |
◆ ToJSON()
| bool mitk::IsoDoseLevelSetProperty::ToJSON |
( |
nlohmann::json & |
j | ) |
const |
|
overridevirtual |
Serialize property to JSON. Currently not implemented.
- Parameters
-
| [out] | j | The JSON object to write to. |
- Returns
- Always returns false.
Implements mitk::BaseProperty.
◆ m_IsoLevelSet
| IsoDoseLevelSet::Pointer mitk::IsoDoseLevelSetProperty::m_IsoLevelSet |
|
protected |
The documentation for this class was generated from the following file: