Property for annotations.
More...
#include <mitkAnnotationProperty.h>
|
| mitkClassMacro (AnnotationProperty, BaseProperty) |
|
Pointer | Clone () const |
|
| mitkNewMacro2Param (AnnotationProperty, const char *, const Point3D &) |
|
| mitkNewMacro2Param (AnnotationProperty, const std::string &, const Point3D &) |
|
| mitkNewMacro4Param (AnnotationProperty, const char *, ScalarType, ScalarType, ScalarType) |
|
| mitkNewMacro4Param (AnnotationProperty, const std::string &, ScalarType, ScalarType, ScalarType) |
|
virtual const char * | GetLabel () const |
|
virtual void | SetLabel (const char *_arg) |
|
const Point3D & | GetPosition () const |
|
void | SetPosition (const Point3D &position) |
|
std::string | GetValueAsString () const override |
|
bool | ToJSON (nlohmann::json &j) const override |
| Serialize property value(s) to JSON. More...
|
|
bool | FromJSON (const nlohmann::json &j) override |
| Deserialize property value(s) from JSON. More...
|
|
virtual BaseProperty & | operator= (const BaseProperty &other) |
|
BaseProperty & | operator= (const BaseProperty &property) |
| Assigns property to this BaseProperty instance. More...
|
|
virtual std::vector< std::string > | GetClassHierarchy () const |
|
virtual const char * | GetClassName () const |
|
Pointer | Clone () const |
|
bool | operator== (const BaseProperty &property) const |
| Subclasses must implement IsEqual(const BaseProperty&) to support comparison. More...
|
|
BaseProperty & | operator= (const BaseProperty &property) |
| Assigns property to this BaseProperty instance. More...
|
|
bool | AssignProperty (const BaseProperty &property) |
| Assigns property to this BaseProperty instance. More...
|
|
Property for annotations.
Definition at line 30 of file mitkAnnotationProperty.h.
◆ ValueType
◆ AnnotationProperty() [1/6]
mitk::AnnotationProperty::AnnotationProperty |
( |
| ) |
|
|
protected |
◆ AnnotationProperty() [2/6]
mitk::AnnotationProperty::AnnotationProperty |
( |
const char * |
label, |
|
|
const Point3D & |
position |
|
) |
| |
|
protected |
◆ AnnotationProperty() [3/6]
mitk::AnnotationProperty::AnnotationProperty |
( |
const std::string & |
label, |
|
|
const Point3D & |
position |
|
) |
| |
|
protected |
◆ AnnotationProperty() [4/6]
◆ AnnotationProperty() [5/6]
◆ AnnotationProperty() [6/6]
◆ Clone()
Pointer mitk::AnnotationProperty::Clone |
( |
| ) |
const |
◆ FromJSON()
Deserialize property value(s) from JSON.
Rely on exceptions for error handling when implementing deserialization.
- Returns
- False if not deserializable by design, true otherwise.
Implements mitk::BaseProperty.
◆ GetLabel()
virtual const char* mitk::AnnotationProperty::GetLabel |
( |
| ) |
const |
|
virtual |
◆ GetPosition()
const Point3D& mitk::AnnotationProperty::GetPosition |
( |
| ) |
const |
◆ GetValueAsString()
std::string mitk::AnnotationProperty::GetValueAsString |
( |
| ) |
const |
|
overridevirtual |
◆ mitkClassMacro()
◆ mitkNewMacro2Param() [1/2]
◆ mitkNewMacro2Param() [2/2]
◆ mitkNewMacro4Param() [1/2]
◆ mitkNewMacro4Param() [2/2]
◆ New()
static Pointer mitk::AnnotationProperty::New |
( |
| ) |
|
|
static |
◆ operator=() [1/2]
◆ operator=() [2/2]
Assigns property to this BaseProperty instance.
Subclasses must implement Assign(const BaseProperty&) and call the superclass Assign method for proper handling of polymorphic assignments. The assignment operator of the subclass should be disabled and the baseclass operator should be made visible using "using" statements.
◆ SetLabel()
virtual void mitk::AnnotationProperty::SetLabel |
( |
const char * |
_arg | ) |
|
|
virtual |
◆ SetPosition()
void mitk::AnnotationProperty::SetPosition |
( |
const Point3D & |
position | ) |
|
◆ ToJSON()
Serialize property value(s) to JSON.
Rely on exceptions for error handling when implementing serialization.
- Returns
- False if not serializable by design, true otherwise.
Implements mitk::BaseProperty.
◆ m_Label
std::string mitk::AnnotationProperty::m_Label |
|
protected |
◆ m_Position
Point3D mitk::AnnotationProperty::m_Position |
|
protected |
The documentation for this class was generated from the following file: