13 #ifndef mitkWeakPointerProperty_h
14 #define mitkWeakPointerProperty_h
16 #include "itkWeakPointer.h"
24 #pragma warning(disable : 4522)
36 itkFactorylessNewMacro(Self);
56 using BaseProperty::operator=;
69 itk::LightObject::Pointer InternalClone()
const override;
71 bool IsEqual(
const BaseProperty &property)
const override;
Abstract base class for properties.
Property containing a smart-pointer.
itk::WeakPointer< itk::Object > ValueType
bool FromJSON(const nlohmann::json &j) override
Deserialize property value(s) from JSON.
void SetValue(const ValueType &value)
bool ToJSON(nlohmann::json &j) const override
Serialize property value(s) to JSON.
WeakPointerProperty(itk::Object *pointer=nullptr)
std::string GetValueAsString() const override
mitkNewMacro1Param(WeakPointerProperty, itk::Object *)
ValueType GetValue() const
ValueType GetWeakPointer() const
WeakPointerProperty(const WeakPointerProperty &)
mitkClassMacro(WeakPointerProperty, BaseProperty)
~WeakPointerProperty() override
itk::WeakPointer< itk::Object > m_WeakPointer
void SetWeakPointer(itk::Object *pointer)
Find image slices visible on a given plane.