12 #ifndef mitkLevelWindowProperty_h
13 #define mitkLevelWindowProperty_h
53 itkFactorylessNewMacro(Self);
115 using BaseProperty::operator=;
121 bool IsEqual(
const BaseProperty &property)
const override;
Abstract base class for properties.
Property for storing a mitk::LevelWindow value.
const mitk::LevelWindow & GetValue() const
Get the level window value (alias for GetLevelWindow()).
LevelWindowProperty(const LevelWindowProperty &other)
~LevelWindowProperty() override
void SetValue(const ValueType &levWin)
Set the level window value (alias for SetLevelWindow()).
LevelWindow ValueType
The type of the value stored by this property.
const mitk::LevelWindow & GetLevelWindow() const
Get the level window value.
std::string GetValueAsString() const override
Return the level window as a human-readable string.
bool FromJSON(const nlohmann::json &j) override
Deserialize the level window value from JSON.
LevelWindowProperty(const mitk::LevelWindow &levWin)
mitkClassMacro(LevelWindowProperty, BaseProperty)
bool ToJSON(nlohmann::json &j) const override
Serialize the level window value to JSON.
void SetLevelWindow(const LevelWindow &levWin)
Set the level window value.
mitkCloneMacro(LevelWindowProperty)
The LevelWindow class Class to store level/window values.
#define mitkNewMacro1Param(classname, type)
Find image slices visible on a given plane.