Property class that wraps an IsoDoseLevelVector for storage in a PropertyList.
More...
#include <mitkIsoDoseLevelVectorProperty.h>
Property class that wraps an IsoDoseLevelVector for storage in a PropertyList.
This property allows attaching an ordered vector of iso dose levels (e.g. user-defined free iso values) to a DataNode via the MITK property system. It is typically stored under the key defined by RTConstants::DOSE_FREE_ISO_VALUES_PROPERTY_NAME.
- See also
- IsoDoseLevelVector
-
IsoDoseLevelSetProperty
-
mitk::BaseProperty
Definition at line 34 of file mitkIsoDoseLevelVectorProperty.h.
◆ ValueType
◆ IsoDoseLevelVectorProperty() [1/3]
| mitk::IsoDoseLevelVectorProperty::IsoDoseLevelVectorProperty |
( |
| ) |
|
|
protected |
Default constructor. Creates an empty property.
◆ IsoDoseLevelVectorProperty() [2/3]
◆ IsoDoseLevelVectorProperty() [3/3]
| mitk::IsoDoseLevelVectorProperty::IsoDoseLevelVectorProperty |
( |
IsoDoseLevelVector * |
levelVector | ) |
|
|
explicitprotected |
Constructor initializing the property with a given level vector.
- Parameters
-
| [in] | levelVector | The iso dose level vector to wrap. May be nullptr. |
◆ ~IsoDoseLevelVectorProperty()
| mitk::IsoDoseLevelVectorProperty::~IsoDoseLevelVectorProperty |
( |
| ) |
|
|
override |
◆ FromJSON()
| bool mitk::IsoDoseLevelVectorProperty::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.
◆ GetIsoDoseLevelVector() [1/2]
Get the stored iso dose level vector (mutable version).
- Returns
- Pointer to the IsoDoseLevelVector, or nullptr if none is set.
◆ GetIsoDoseLevelVector() [2/2]
| const IsoDoseLevelVector* mitk::IsoDoseLevelVectorProperty::GetIsoDoseLevelVector |
( |
| ) |
const |
Get the stored iso dose level vector (const version).
- Returns
- Const pointer to the IsoDoseLevelVector, or nullptr if none is set.
◆ GetValue() [1/2]
◆ GetValue() [2/2]
◆ GetValueAsString()
| std::string mitk::IsoDoseLevelVectorProperty::GetValueAsString |
( |
| ) |
const |
|
overridevirtual |
Returns a human-readable string representation of the iso dose level vector.
- 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::IsoDoseLevelVectorProperty::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
◆ SetIsoDoseLevelVector()
| void mitk::IsoDoseLevelVectorProperty::SetIsoDoseLevelVector |
( |
IsoDoseLevelVector * |
levelVector | ) |
|
Set the iso dose level vector wrapped by this property.
- Parameters
-
| [in] | levelVector | The new iso dose level vector. Triggers Modified() if changed. |
◆ SetValue()
◆ ToJSON()
| bool mitk::IsoDoseLevelVectorProperty::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_IsoLevelVector
| IsoDoseLevelVector::Pointer mitk::IsoDoseLevelVectorProperty::m_IsoLevelVector |
|
protected |
The documentation for this class was generated from the following file: