Sorted set of dose iso levels for dose distribution visualization.
More...
#include <mitkIsoDoseLevelCollections.h>
|
| class | ConstIterator |
| | STL-style const iterator for read-only traversal of the iso dose level set. More...
|
| |
Sorted set of dose iso levels for dose distribution visualization.
Maintains a collection of IsoDoseLevel instances sorted by their dose values (from low to high). This data structure is the primary means for defining the color coding and visibility rules used to visualize a dose distribution. Duplicate dose values are not allowed; inserting a level with an existing dose value replaces the previous entry.
- See also
- IsoDoseLevel
-
IsoDoseLevelVector
-
IsoDoseLevelSetProperty
Definition at line 52 of file mitkIsoDoseLevelCollections.h.
◆ DoseValueType
◆ IsoLevelIndexType
◆ IsoDoseLevelSet() [1/2]
| mitk::IsoDoseLevelSet::IsoDoseLevelSet |
( |
| ) |
|
|
inlineprotected |
◆ IsoDoseLevelSet() [2/2]
◆ ~IsoDoseLevelSet()
| mitk::IsoDoseLevelSet::~IsoDoseLevelSet |
( |
| ) |
|
|
inlineoverrideprotected |
◆ Begin()
Get a const iterator pointing to the first iso dose level.
- Returns
- A ConstIterator at the beginning of the set.
◆ DeleteIsoDoseLevel() [1/2]
| void mitk::IsoDoseLevelSet::DeleteIsoDoseLevel |
( |
DoseValueType |
value | ) |
|
Remove an iso dose level identified by its dose value.
- Parameters
-
| [in] | value | The relative dose value of the level to remove. No-op if not found. |
◆ DeleteIsoDoseLevel() [2/2]
Remove an iso dose level identified by its positional index.
- Parameters
-
| [in] | index | The zero-based index of the level to remove. No-op if out of range. |
◆ DoseLevelExists() [1/2]
| bool mitk::IsoDoseLevelSet::DoseLevelExists |
( |
DoseValueType |
value | ) |
const |
Check whether an iso dose level with the given dose value exists.
- Parameters
-
| [in] | value | The relative dose value to search for. |
- Returns
- True if a level with that dose value is found.
◆ DoseLevelExists() [2/2]
Check whether an iso dose level exists at the given index.
- Parameters
-
| [in] | index | The positional index to check. |
- Returns
- True if the index is within the valid range.
◆ End()
Get a const iterator pointing past the last iso dose level.
- Returns
- A ConstIterator at the end of the set.
◆ GetIsoDoseLevel() [1/2]
Retrieve an iso dose level by its dose value.
- Parameters
-
| [in] | value | The relative dose value to search for. |
- Returns
- Const reference to the matching IsoDoseLevel.
- Exceptions
-
◆ GetIsoDoseLevel() [2/2]
Retrieve an iso dose level by its positional index.
- Parameters
-
| [in] | index | Zero-based index of the level. |
- Returns
- Const reference to the IsoDoseLevel at the given index.
- Exceptions
-
◆ mitkClassMacroItkParent()
| mitk::IsoDoseLevelSet::mitkClassMacroItkParent |
( |
IsoDoseLevelSet |
, |
|
|
itk::Object |
|
|
) |
| |
◆ mitkCloneMacro()
◆ New()
| static Pointer mitk::IsoDoseLevelSet::New |
( |
| ) |
|
|
static |
◆ Reset()
| void mitk::IsoDoseLevelSet::Reset |
( |
void |
| ) |
|
Remove all iso dose levels from the set.
- Postcondition
- Size() == 0.
◆ SetIsoDoseLevel()
| void mitk::IsoDoseLevelSet::SetIsoDoseLevel |
( |
const IsoDoseLevel * |
level | ) |
|
Insert or replace an iso dose level.
If a level with the same dose value already exists, it is removed first. The new level is cloned and inserted, and the set is re-sorted.
- Parameters
-
| [in] | level | Pointer to the IsoDoseLevel to insert. Must not be nullptr. |
- Exceptions
-
◆ Size()
Get the number of iso dose levels in the set.
- Returns
- The number of elements currently stored.
The documentation for this class was generated from the following file: