Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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=false)
 
void SetVtkMatrixDeepCopy (vtkTransform *vtktransform)
 
bool IsIndexToWorldTransformNull ()
 
AffineTransform3D::MatrixType::InternalMatrixType GetVnlMatrix ()
 

Detailed Description

Definition at line 35 of file mitkGeometryTransformHolder.h.

Member Typedef Documentation

◆ TransformType

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

Definition at line 62 of file mitkGeometryTransformHolder.h.

Constructor & Destructor Documentation

◆ GeometryTransformHolder() [1/2]

mitk::GeometryTransformHolder::GeometryTransformHolder ( )

◆ GeometryTransformHolder() [2/2]

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

◆ ~GeometryTransformHolder()

virtual mitk::GeometryTransformHolder::~GeometryTransformHolder ( )
virtual

Member Function Documentation

◆ Compose()

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

◆ GetIndexToWorldTransform() [1/2]

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

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

◆ GetIndexToWorldTransform() [2/2]

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

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

◆ GetOrigin()

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

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

◆ GetSpacing()

const mitk::Vector3D mitk::GeometryTransformHolder::GetSpacing ( ) const

Get the spacing (size of a pixel).

◆ GetVnlMatrix()

AffineTransform3D::MatrixType::InternalMatrixType mitk::GeometryTransformHolder::GetVnlMatrix ( )

◆ GetVtkMatrix() [1/2]

vtkMatrix4x4* mitk::GeometryTransformHolder::GetVtkMatrix ( )

◆ GetVtkMatrix() [2/2]

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

◆ GetVtkTransform()

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

Get the m_IndexToWorldTransform as a vtkLinearTransform.

◆ Initialize() [1/2]

void mitk::GeometryTransformHolder::Initialize ( )

◆ Initialize() [2/2]

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

◆ IsIndexToWorldTransformNull()

bool mitk::GeometryTransformHolder::IsIndexToWorldTransformNull ( )

◆ SetIdentity()

void mitk::GeometryTransformHolder::SetIdentity ( )

◆ SetIndexToWorldTransform()

void mitk::GeometryTransformHolder::SetIndexToWorldTransform ( mitk::AffineTransform3D transform)

◆ SetIndexToWorldTransformByVtkMatrix()

virtual 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.

See also
SetIndexToWorldTransform

◆ 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

◆ SetIndexToWorldTransformWithoutChangingSpacing()

void mitk::GeometryTransformHolder::SetIndexToWorldTransformWithoutChangingSpacing ( mitk::AffineTransform3D transform)

◆ SetMatrix()

void mitk::GeometryTransformHolder::SetMatrix ( Matrix3D matrix)

◆ SetOrigin()

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

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

◆ SetSpacing()

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

Set the spacing (m_Spacing).

The spacing is also changed in the IndexToWorldTransform.

◆ SetVtkMatrixDeepCopy()

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

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