13 #ifndef mitkBaseProperty_h
14 #define mitkBaseProperty_h
17 #include <itkObjectFactory.h>
20 #include <nlohmann/json_fwd.hpp>
99 virtual bool IsEqual(
const BaseProperty &property)
const = 0;
Abstract base class for properties.
virtual bool ToJSON(nlohmann::json &j) const =0
Serialize property value(s) to JSON.
mitkClassMacroItkParent(BaseProperty, itk::Object)
BaseProperty & operator=(const BaseProperty &property)
Assigns property to this BaseProperty instance.
virtual bool FromJSON(const nlohmann::json &j)=0
Deserialize property value(s) from JSON.
BaseProperty(const BaseProperty &other)
static const std::string VALUE_CANNOT_BE_CONVERTED_TO_STRING
Default return value if a property which can not be returned as string.
bool operator==(const BaseProperty &property) const
Subclasses must implement IsEqual(const BaseProperty&) to support comparison.
virtual std::string GetValueAsString() const
bool AssignProperty(const BaseProperty &property)
Assigns property to this BaseProperty instance.
Find image slices visible on a given plane.