13 #ifndef mitkWeakPointerProperty_h
14 #define mitkWeakPointerProperty_h
16 #include <itkWeakPointer.h>
40 itkFactorylessNewMacro(Self);
98 using BaseProperty::operator=;
113 bool IsEqual(
const BaseProperty &property)
const override;
Abstract base class for properties.
Property containing a weak (non-owning) pointer to an itk::Object.
itk::WeakPointer< itk::Object > ValueType
The type of the value stored by this property.
bool FromJSON(const nlohmann::json &j) override
JSON deserialization is not supported for WeakPointerProperty.
void SetValue(const ValueType &value)
Set the stored weak pointer (alias for SetWeakPointer()).
bool ToJSON(nlohmann::json &j) const override
JSON serialization is not supported for WeakPointerProperty.
WeakPointerProperty(itk::Object *pointer=nullptr)
std::string GetValueAsString() const override
Return the pointer address as a string.
mitkNewMacro1Param(WeakPointerProperty, itk::Object *)
ValueType GetValue() const
Get the stored weak pointer (alias for GetWeakPointer()).
ValueType GetWeakPointer() const
Get the stored weak pointer.
WeakPointerProperty(const WeakPointerProperty &)
mitkCloneMacro(WeakPointerProperty)
mitkClassMacro(WeakPointerProperty, BaseProperty)
~WeakPointerProperty() override
itk::WeakPointer< itk::Object > m_WeakPointer
void SetWeakPointer(itk::Object *pointer)
Set the stored weak pointer.
Find image slices visible on a given plane.