Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::GeometryTransformHolder Class Reference

#include <mitkGeometryTransformHolder.h>

Public Types

typedef itk::ScalableAffineTransform< ScalarType, 3 > TransformType
 

Public Member Functions

 GeometryTransformHolder ()
 
 GeometryTransformHolder (const GeometryTransformHolder &other)
 
virtual ~GeometryTransformHolder ()
 
void Initialize ()
 
void Initialize (const GeometryTransformHolder *other)
 
const Point3D GetOrigin () const
 Get the origin, e.g. the upper-left corner of the plane. More...
 
void SetOrigin (const Point3D &origin)
 Set the origin, i.e. the upper-left corner of the plane. More...
 
const mitk::Vector3D GetSpacing () const
 Get the spacing (size of a pixel). More...
 
void SetSpacing (const mitk::Vector3D &aSpacing, bool enforceSetSpacing=false)
 Set the spacing (m_Spacing). More...
 
mitk::AffineTransform3DGetIndexToWorldTransform ()
 Get the transformation used to convert from index to world coordinates. More...
 
const mitk::AffineTransform3DGetIndexToWorldTransform () const
 Get the transformation used to convert from index to world coordinates. More...
 
void SetIndexToWorldTransform (mitk::AffineTransform3D *transform)
 
virtual void SetIndexToWorldTransformByVtkMatrix (vtkMatrix4x4 *vtkmatrix)
 Convenience method for setting the ITK transform (m_IndexToWorldTransform) via an vtkMatrix4x4. This will also change the spacing. More...
 
void SetIndexToWorldTransformWithoutChangingSpacing (mitk::AffineTransform3D *transform)
 
void SetIndexToWorldTransformByVtkMatrixWithoutChangingSpacing (vtkMatrix4x4 *vtkmatrix)
 Convenience method for setting the ITK transform (m_IndexToWorldTransform) via an vtkMatrix4x4. This function keeps the original spacing. More...
 
vtkMatrix4x4 * GetVtkMatrix ()
 
const vtkMatrix4x4 * GetVtkMatrix () const
 
vtkLinearTransform * GetVtkTransform () const
 Get the m_IndexToWorldTransform as a vtkLinearTransform. More...
 
void SetMatrix (Matrix3D &matrix)
 
void SetIdentity ()
 
void Compose (const TransformType *other, bool pre=0)
 
void SetVtkMatrixDeepCopy (vtkTransform *vtktransform)
 
bool IsIndexToWorldTransformNull ()
 
AffineTransform3D::MatrixType::InternalMatrixType GetVnlMatrix ()
 

Detailed Description

Definition at line 39 of file mitkGeometryTransformHolder.h.

Member Typedef Documentation

typedef itk::ScalableAffineTransform<ScalarType, 3> mitk::GeometryTransformHolder::TransformType

Definition at line 66 of file mitkGeometryTransformHolder.h.

Constructor & Destructor Documentation

mitk::GeometryTransformHolder::GeometryTransformHolder ( )

Definition at line 38 of file mitkGeometryTransformHolder.cpp.

References Initialize(), and mitk::New().

mitk::GeometryTransformHolder::GeometryTransformHolder ( const GeometryTransformHolder other)

Definition at line 46 of file mitkGeometryTransformHolder.cpp.

References Initialize(), and mitk::New().

mitk::GeometryTransformHolder::~GeometryTransformHolder ( )
virtual

Definition at line 54 of file mitkGeometryTransformHolder.cpp.

Member Function Documentation

void mitk::GeometryTransformHolder::Compose ( const TransformType other,
bool  pre = 0 
)

Definition at line 240 of file mitkGeometryTransformHolder.cpp.

mitk::AffineTransform3D * mitk::GeometryTransformHolder::GetIndexToWorldTransform ( )

Get the transformation used to convert from index to world coordinates.

Definition at line 168 of file mitkGeometryTransformHolder.cpp.

Referenced by mitk::Equal(), GetOrigin(), GetSpacing(), and Initialize().

const mitk::AffineTransform3D * mitk::GeometryTransformHolder::GetIndexToWorldTransform ( ) const

Get the transformation used to convert from index to world coordinates.

Definition at line 172 of file mitkGeometryTransformHolder.cpp.

const Point3D mitk::GeometryTransformHolder::GetOrigin ( ) const

Get the origin, e.g. the upper-left corner of the plane.

Definition at line 101 of file mitkGeometryTransformHolder.cpp.

References GetIndexToWorldTransform().

Referenced by mitk::Equal().

const mitk::Vector3D mitk::GeometryTransformHolder::GetSpacing ( ) const
AffineTransform3D::MatrixType::InternalMatrixType mitk::GeometryTransformHolder::GetVnlMatrix ( )

Definition at line 253 of file mitkGeometryTransformHolder.cpp.

vtkMatrix4x4 * mitk::GeometryTransformHolder::GetVtkMatrix ( )

Definition at line 218 of file mitkGeometryTransformHolder.cpp.

Referenced by mitk::Equal().

const vtkMatrix4x4 * mitk::GeometryTransformHolder::GetVtkMatrix ( ) const

Definition at line 220 of file mitkGeometryTransformHolder.cpp.

vtkLinearTransform * mitk::GeometryTransformHolder::GetVtkTransform ( ) const

Get the m_IndexToWorldTransform as a vtkLinearTransform.

Definition at line 223 of file mitkGeometryTransformHolder.cpp.

void mitk::GeometryTransformHolder::Initialize ( )

Definition at line 60 of file mitkGeometryTransformHolder.cpp.

References mitk::New().

Referenced by GeometryTransformHolder(), and Initialize().

void mitk::GeometryTransformHolder::Initialize ( const GeometryTransformHolder other)
bool mitk::GeometryTransformHolder::IsIndexToWorldTransformNull ( )

Definition at line 252 of file mitkGeometryTransformHolder.cpp.

void mitk::GeometryTransformHolder::SetIdentity ( )

Definition at line 234 of file mitkGeometryTransformHolder.cpp.

void mitk::GeometryTransformHolder::SetIndexToWorldTransform ( mitk::AffineTransform3D transform)
void mitk::GeometryTransformHolder::SetIndexToWorldTransformByVtkMatrix ( vtkMatrix4x4 *  vtkmatrix)
virtual

Convenience method for setting the ITK transform (m_IndexToWorldTransform) via an vtkMatrix4x4. This will also change the spacing.

Convenience method for setting the ITK transform (m_IndexToWorldTransform) via an vtkMatrix4x4.The spacing of the new transform is copied to m_spacing.

See also
SetIndexToWorldTransform

Definition at line 191 of file mitkGeometryTransformHolder.cpp.

Referenced by SetIndexToWorldTransformByVtkMatrixWithoutChangingSpacing().

void mitk::GeometryTransformHolder::SetIndexToWorldTransformByVtkMatrixWithoutChangingSpacing ( vtkMatrix4x4 *  vtkmatrix)

Convenience method for setting the ITK transform (m_IndexToWorldTransform) via an vtkMatrix4x4. This function keeps the original spacing.

See also
SetIndexToWorldTransform

Definition at line 210 of file mitkGeometryTransformHolder.cpp.

References GetSpacing(), SetIndexToWorldTransformByVtkMatrix(), and SetSpacing().

void mitk::GeometryTransformHolder::SetIndexToWorldTransformWithoutChangingSpacing ( mitk::AffineTransform3D transform)
void mitk::GeometryTransformHolder::SetMatrix ( Matrix3D matrix)

Definition at line 228 of file mitkGeometryTransformHolder.cpp.

void mitk::GeometryTransformHolder::SetOrigin ( const Point3D origin)

Set the origin, i.e. the upper-left corner of the plane.

Definition at line 110 of file mitkGeometryTransformHolder.cpp.

void mitk::GeometryTransformHolder::SetSpacing ( const mitk::Vector3D aSpacing,
bool  enforceSetSpacing = false 
)

Set the spacing (m_Spacing).

Set the spacing.

The spacing is also changed in the IndexToWorldTransform.

Definition at line 130 of file mitkGeometryTransformHolder.cpp.

References mitk::Equal(), GetSpacing(), mitk::New(), and SetIndexToWorldTransform().

Referenced by SetIndexToWorldTransformByVtkMatrixWithoutChangingSpacing(), and SetIndexToWorldTransformWithoutChangingSpacing().

void mitk::GeometryTransformHolder::SetVtkMatrixDeepCopy ( vtkTransform *  vtktransform)

Definition at line 246 of file mitkGeometryTransformHolder.cpp.


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