Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkVectorProperty_h
14 #define mitkVectorProperty_h
34 static const char *
prefix() {
return "Invalid"; }
51 template <
typename DATATYPE>
65 std::vector<std::string>
GetClassHierarchy()
const override {
return mitk::GetClassHierarchy<Self>(); }
73 return nameOfClass.c_str();
76 const char *
GetNameOfClass()
const override {
return this->GetStaticNameOfClass(); }
77 itkFactorylessNewMacro(Self);
88 std::string GetValueAsString()
const override;
91 virtual const VectorType &GetValue()
const;
94 virtual void SetValue(
const VectorType ¶meter_vector);
104 itk::LightObject::Pointer InternalClone()
const override;
107 bool IsEqual(
const BaseProperty &an_other_property)
const override;
110 bool Assign(
const BaseProperty &an_other_property)
override;
113 VectorType m_PropertyContent;
117 #define MITK_DECLARE_VECTOR_PROPERTY(TYPE, PREFIX) \
119 typedef VectorProperty<TYPE> PREFIX##VectorProperty; \
123 struct VectorPropertyDataType<TYPE> \
125 static const char *prefix() { return #PREFIX; } \
129 #define MITK_DEFINE_VECTOR_PROPERTY(TYPE) template class VectorProperty<TYPE>;
Abstract base class for properties.
VectorProperty< DATATYPE > Self
MITKCORE_EXPORT void FromJSON(const nlohmann::json &j, AffineTransform3D::Pointer transform)
Read transform from JSON array (16 elements, resp. 4x4 matrix).
const char * GetNameOfClass() const override
Find image slices visible on a given plane.
static const char * prefix()
Helper for VectorProperty to determine a good ITK ClassName.
#define MITK_DECLARE_VECTOR_PROPERTY(TYPE, PREFIX)
This should be used in .h files.
Providing a std::vector as property.
static const char * GetStaticNameOfClass()
MITKCORE_EXPORT void ToJSON(nlohmann::json &j, AffineTransform3D::ConstPointer transform)
Write transform (4x4 matrix) as JSON array with 16 elements.
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
std::vector< std::string > GetClassHierarchy() const override
std::vector< DATATYPE > VectorType