15 #ifndef niftkAffineTransformDataNodeProperty_h
16 #define niftkAffineTransformDataNodeProperty_h
18 #include "niftkCoreExports.h"
22 #include <vtkSmartPointer.h>
23 #include <vtkMatrix4x4.h>
25 #include <mitkBaseProperty.h>
26 #include <mitkDataNode.h>
46 vtkMatrix4x4& GetTransform(
void)
48 return *msp_Transform;
56 return *msp_Transform;
67 if (msp_Transform.GetPointer() == NULL)
68 msp_Transform = vtkSmartPointer<vtkMatrix4x4>::New();
69 msp_Transform->DeepCopy(&transform.Element[0][0]);
75 virtual std::string GetValueAsString()
const override;
82 msp_Transform->Identity();
91 static vtkSmartPointer<vtkMatrix4x4> LoadTransformFromNode(
const std::string propertyName,
const mitk::DataNode &node);
96 static void StoreTransformInNode(
const std::string propertyName,
const vtkMatrix4x4 &
transform, mitk::DataNode &r_node);
107 itk::LightObject::Pointer InternalClone()
const override;
112 virtual bool IsEqual(
const BaseProperty&
property)
const override;
117 virtual bool Assign(
const BaseProperty& )
override;
119 vtkSmartPointer<vtkMatrix4x4> msp_Transform;
GLuint GLenum GLenum transform
Definition: glew.h:12775
INT property
Definition: wglew.h:144
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194