Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkEnumerationProperty_h
14 #define mitkEnumerationProperty_h
22 # pragma warning(push)
23 # pragma warning(disable: 4522) // "multiple assignment operators specified"
47 itkFactorylessNewMacro(
Self);
53 typedef unsigned int IdType;
80 virtual bool AddEnum(
const std::string &name,
const IdType &
id);
87 virtual bool SetValue(
const std::string &name);
94 virtual bool SetValue(
const IdType &
id);
100 virtual IdType GetValueAsId()
const;
106 std::string GetValueAsString()
const override;
111 virtual void Clear();
116 virtual EnumIdsContainerType::size_type Size()
const;
137 virtual std::string GetEnumString(
const IdType &
id)
const;
145 virtual IdType GetEnumId(
const std::string &name)
const;
152 virtual bool IsValidEnumerationValue(
const IdType &
id)
const;
159 virtual bool IsValidEnumerationValue(
const std::string &name)
const;
181 using BaseProperty::operator=;
192 bool IsEqual(
const BaseProperty &property)
const override;
205 # pragma warning(pop)
Abstract base class for properties.
MITKCORE_EXPORT void FromJSON(const nlohmann::json &j, AffineTransform3D::Pointer transform)
Read transform from JSON array (16 elements, resp. 4x4 matrix).
EnumIdsContainerType::const_iterator EnumConstIterator
std::map< IdType, std::string > EnumIdsContainerType
Find image slices visible on a given plane.
MITKCORE_EXPORT void ToJSON(nlohmann::json &j, AffineTransform3D::ConstPointer transform)
Write transform (4x4 matrix) as JSON array with 16 elements.
#define mitkCloneMacro(classname)
#define mitkClassMacro(className, SuperClassName)
std::map< std::string, IdType > EnumStringsContainerType