Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkIsoDoseLevelSetProperty.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 
14 #ifndef mitkIsoDoseLevelSetProperty_h
15 #define mitkIsoDoseLevelSetProperty_h
16 
17 #include <mitkBaseProperty.h>
19 #include <MitkRTExports.h>
20 
21 namespace mitk {
22 
35 {
36 
37 protected:
39  IsoDoseLevelSet::Pointer m_IsoLevelSet;
40 
43 
46 
52 
54 
55 public:
57 
60 
63 
66 
72 
77  const IsoDoseLevelSet * GetValue() const;
78 
84 
90 
96 
101  void SetValue(IsoDoseLevelSet* levelSet);
102 
107  std::string GetValueAsString() const override;
108 
114  bool ToJSON(nlohmann::json& j) const override;
115 
121  bool FromJSON(const nlohmann::json& j) override;
122 
123  using BaseProperty::operator=;
124 
125 private:
126  bool IsEqual(const BaseProperty& property) const override;
127  bool Assign(const BaseProperty& property) override;
128 
129 };
130 
131 } // namespace mitk
132 
133 
134 #endif
#define MITKRT_EXPORT
Definition: MitkRTExports.h:15
Abstract base class for properties.
Property class that wraps an IsoDoseLevelSet for storage in a PropertyList.
IsoDoseLevelSet::Pointer m_IsoLevelSet
The wrapped iso dose level set.
bool ToJSON(nlohmann::json &j) const override
Serialize property to JSON. Currently not implemented.
IsoDoseLevelSetProperty(const IsoDoseLevelSetProperty &other)
Copy constructor.
void SetIsoDoseLevelSet(IsoDoseLevelSet *levelSet)
Set the iso dose level set wrapped by this property.
mitkNewMacro1Param(IsoDoseLevelSetProperty, IsoDoseLevelSet *)
IsoDoseLevelSet ValueType
The value type stored by this property.
std::string GetValueAsString() const override
Returns a human-readable string representation of the iso dose levels.
const IsoDoseLevelSet * GetValue() const
Get the stored value (const version). Equivalent to GetIsoDoseLevelSet().
IsoDoseLevelSetProperty(IsoDoseLevelSet *levelSet)
Constructor initializing the property with a given level set.
bool FromJSON(const nlohmann::json &j) override
Deserialize property from JSON. Currently not implemented.
IsoDoseLevelSet * GetIsoDoseLevelSet()
Get the stored iso dose level set (mutable version).
const IsoDoseLevelSet * GetIsoDoseLevelSet() const
Get the stored iso dose level set (const version).
mitkClassMacro(IsoDoseLevelSetProperty, BaseProperty)
IsoDoseLevelSetProperty()
Default constructor. Creates an empty property.
~IsoDoseLevelSetProperty() override
Destructor.
mitkCloneMacro(IsoDoseLevelSetProperty)
IsoDoseLevelSet * GetValue()
Get the stored value (mutable version). Equivalent to GetIsoDoseLevelSet().
void SetValue(IsoDoseLevelSet *levelSet)
Set the value. Equivalent to SetIsoDoseLevelSet().
Sorted set of dose iso levels for dose distribution visualization.
nlohmann::json json
Find image slices visible on a given plane.