24 : m_Label(
""), m_Position(position)
33 : m_Label(label), m_Position(position)
58 :
BaseProperty(other), m_Label(other.m_Label), m_Position(other.m_Position)
69 if (m_Position != position)
71 m_Position = position;
76 bool mitk::AnnotationProperty::IsEqual(
const BaseProperty &property)
const
78 return ((this->m_Label == static_cast<const Self &>(property).m_Label) &&
79 (this->m_Position == static_cast<const Self &>(property).m_Position));
82 bool mitk::AnnotationProperty::Assign(
const BaseProperty &property)
84 this->m_Label =
static_cast<const Self &
>(property).m_Label;
85 this->m_Position =
static_cast<const Self &
>(property).m_Position;
91 std::stringstream myStr;
93 myStr << this->GetLabel() << this->GetPosition();
100 result->UnRegister();
itk::SmartPointer< Self > Pointer
const Point3D & GetPosition() const
virtual std::string GetValueAsString() const override
Abstract base class for properties.
Property for annotations.
void SetPosition(const Point3D &position)