Property for storing a mitk::LevelWindow value.
More...
#include <mitkLevelWindowProperty.h>
Property for storing a mitk::LevelWindow value.
Holds the level/window settings used for intensity windowing during image rendering. The level defines the center of the window, and the window defines its width.
- Note
- If you want to apply the mitk::LevelWindowProperty to an mitk::Image, make sure to set the mitk::RenderingModeProperty to a mode which supports level window (e.g. LOOKUPTABLE_LEVELWINDOW_COLOR). Check the documentation of mitk::RenderingModeProperty. For a code example see mitkImageVtkMapper2DLevelWindowTest.cpp in Core/Code/Testing.
- See also
- BaseProperty
-
LevelWindow
-
RenderingModeProperty
Definition at line 37 of file mitkLevelWindowProperty.h.
◆ ValueType
◆ LevelWindowProperty() [1/3]
| mitk::LevelWindowProperty::LevelWindowProperty |
( |
| ) |
|
|
protected |
◆ LevelWindowProperty() [2/3]
◆ LevelWindowProperty() [3/3]
◆ ~LevelWindowProperty()
| mitk::LevelWindowProperty::~LevelWindowProperty |
( |
| ) |
|
|
override |
◆ Clone()
| Pointer mitk::LevelWindowProperty::Clone |
( |
| ) |
const |
◆ FromJSON()
Deserialize the level window value from JSON.
- Parameters
-
- Returns
- Always
true.
Implements mitk::BaseProperty.
◆ GetLevelWindow()
Get the level window value.
- Returns
- A const reference to the stored LevelWindow.
◆ GetValue()
◆ GetValueAsString()
| std::string mitk::LevelWindowProperty::GetValueAsString |
( |
| ) |
const |
|
overridevirtual |
Return the level window as a human-readable string.
Format: "L:<level> W:<window>".
- Returns
- A string representation of the level and window values.
Reimplemented from mitk::BaseProperty.
◆ mitkClassMacro()
◆ mitkCloneMacro()
◆ mitkNewMacro1Param()
◆ New()
| static Pointer mitk::LevelWindowProperty::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
◆ SetLevelWindow()
| void mitk::LevelWindowProperty::SetLevelWindow |
( |
const LevelWindow & |
levWin | ) |
|
Set the level window value.
Marks the property as modified if the new value differs from the current one.
- Parameters
-
◆ SetValue()
| void mitk::LevelWindowProperty::SetValue |
( |
const ValueType & |
levWin | ) |
|
◆ ToJSON()
Serialize the level window value to JSON.
- Parameters
-
| [out] | j | The JSON object to write the value into. |
- Returns
- Always
true.
Implements mitk::BaseProperty.
◆ m_LevWin
The documentation for this class was generated from the following file: