13 #ifndef mitkAnnotationProperty_h
14 #define mitkAnnotationProperty_h
20 #include <itkConfigure.h>
37 itkFactorylessNewMacro(Self);
49 void SetPosition(const
Point3D &position);
51 std::
string GetValueAsString() const override;
57 using BaseProperty::operator=;
75 itk::LightObject::Pointer InternalClone()
const override;
77 bool IsEqual(
const BaseProperty &property)
const override;
Property for annotations.
AnnotationProperty(const char *label, const Point3D &position)
AnnotationProperty(const std::string &label, ScalarType x, ScalarType y, ScalarType z)
AnnotationProperty(const std::string &label, const Point3D &position)
AnnotationProperty(const char *label, ScalarType x, ScalarType y, ScalarType z)
AnnotationProperty(const AnnotationProperty &other)
mitkClassMacro(AnnotationProperty, BaseProperty)
Abstract base class for properties.
A data structure describing a label.
#define mitkNewMacro4Param(classname, typea, typeb, typec, typed)
#define mitkNewMacro2Param(classname, typea, typeb)
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.
MITKCORE_EXPORT void FromJSON(const nlohmann::json &j, AffineTransform3D::Pointer transform)
Read transform from JSON array (16 elements, resp. 4x4 matrix).