NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
niftk::AffineTransformDataNodeProperty Class Reference

MITK data-node property suitable for holding affine transforms. More...

Inheritance diagram for niftk::AffineTransformDataNodeProperty:
Inheritance graph
[legend]
Collaboration diagram for niftk::AffineTransformDataNodeProperty:
Collaboration graph
[legend]

Public Member Functions

 mitkClassMacro (AffineTransformDataNodeProperty, mitk::BaseProperty) static Pointer New()
 
vtkMatrix4x4 & GetTransform (void)
 
const vtkMatrix4x4 & GetTransform (void) const
 
void SetTransform (const vtkMatrix4x4 &transform)
 Sets transform. More...
 
virtual std::string GetValueAsString () const override
 Defined in base class, returns the current value as a string for display in property view. More...
 
virtual void Identity ()
 Method to set these parameters back to identity. More...
 

Static Public Member Functions

static vtkSmartPointer
< vtkMatrix4x4 > 
LoadTransformFromNode (const std::string propertyName, const mitk::DataNode &node)
 Reads an affine transform from an MITK data node. More...
 
static void StoreTransformInNode (const std::string propertyName, const vtkMatrix4x4 &transform, mitk::DataNode &r_node)
 Writes an affine transform to a node (as a 4x4 VTK Matrix) More...
 

Protected Member Functions

virtual ~AffineTransformDataNodeProperty (void)
 
 AffineTransformDataNodeProperty (void)
 
 AffineTransformDataNodeProperty (const AffineTransformDataNodeProperty &other)
 

Detailed Description

MITK data-node property suitable for holding affine transforms.

Constructor & Destructor Documentation

virtual niftk::AffineTransformDataNodeProperty::~AffineTransformDataNodeProperty ( void  )
inlineprotectedvirtual
niftk::AffineTransformDataNodeProperty::AffineTransformDataNodeProperty ( void  )
protected
niftk::AffineTransformDataNodeProperty::AffineTransformDataNodeProperty ( const AffineTransformDataNodeProperty other)
protected

Member Function Documentation

vtkMatrix4x4& niftk::AffineTransformDataNodeProperty::GetTransform ( void  )
inline
Returns
R/W access to transform.
const vtkMatrix4x4& niftk::AffineTransformDataNodeProperty::GetTransform ( void  ) const
inline
Returns
R/O access to transform.
std::string niftk::AffineTransformDataNodeProperty::GetValueAsString ( ) const
overridevirtual

Defined in base class, returns the current value as a string for display in property view.

virtual void niftk::AffineTransformDataNodeProperty::Identity ( )
inlinevirtual

Method to set these parameters back to identity.

vtkSmartPointer< vtkMatrix4x4 > niftk::AffineTransformDataNodeProperty::LoadTransformFromNode ( const std::string  propertyName,
const mitk::DataNode &  node 
)
static

Reads an affine transform from an MITK data node.

If there is no affine transform set for the given node, the identity transform is returned.

niftk::AffineTransformDataNodeProperty::mitkClassMacro ( AffineTransformDataNodeProperty  ,
mitk::BaseProperty   
)
void niftk::AffineTransformDataNodeProperty::SetTransform ( const vtkMatrix4x4 &  transform)
inline

Sets transform.

The transform is copied to memory managed by the property object.

void niftk::AffineTransformDataNodeProperty::StoreTransformInNode ( const std::string  propertyName,
const vtkMatrix4x4 &  transform,
mitk::DataNode &  r_node 
)
static

Writes an affine transform to a node (as a 4x4 VTK Matrix)


The documentation for this class was generated from the following files: