Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
itk::VtkAbstractTransform< TScalarType > Class Template Reference

Adapter from vtkAbstractTransform to itk::Transform<TScalarType, 3, 3>. More...

#include <itkVtkAbstractTransform.h>

Inheritance diagram for itk::VtkAbstractTransform< TScalarType >:
Collaboration diagram for itk::VtkAbstractTransform< TScalarType >:

Public Types

typedef VtkAbstractTransform Self
 
typedef Transform< TScalarType, 3, 3 > Superclass
 
typedef SmartPointer< Self > Pointer
 
typedef SmartPointer< const Self > ConstPointer
 
typedef Superclass::OutputPointType OutputPointType
 
typedef Superclass::OutputVectorType OutputVectorType
 
typedef Superclass::OutputVnlVectorType OutputVnlVectorType
 
typedef Superclass::OutputCovariantVectorType OutputCovariantVectorType
 
typedef Superclass::InputPointType InputPointType
 
typedef Superclass::InputVectorType InputVectorType
 
typedef Superclass::InputVnlVectorType InputVnlVectorType
 
typedef Superclass::InputCovariantVectorType InputCovariantVectorType
 
typedef Superclass::ParametersType ParametersType
 
typedef Superclass::JacobianType JacobianType
 
typedef Superclass::JacobianPositionType JacobianPositionType
 

Public Member Functions

Pointer Clone () const
 
virtual vtkAbstractTransform * GetVtkAbstractTransform () const
 Get the vtkAbstractTransform (stored in m_VtkAbstractTransform). More...
 
virtual vtkAbstractTransform * GetInverseVtkAbstractTransform () const
 Get the inverse vtkAbstractTransform (stored in m_InverseVtkAbstractTransform). More...
 
virtual void SetVtkAbstractTransform (vtkAbstractTransform *aVtkAbstractTransform)
 Set the vtkAbstractTransform (stored in m_VtkAbstractTransform). More...
 
OutputPointType TransformPoint (const InputPointType &) const override
 Transform a point from input space to output space using the VTK transform. More...
 
OutputVectorType TransformVector (const InputVectorType &) const override
 Transform a vector from input space to output space using the VTK transform. More...
 
OutputVnlVectorType TransformVector (const InputVnlVectorType &) const override
 Transform a vnl vector from input space to output space using the VTK transform. More...
 
OutputCovariantVectorType TransformCovariantVector (const InputCovariantVectorType &) const override
 Transform a covariant vector (not yet implemented, will throw). More...
 
virtual InputPointType BackTransform (const OutputPointType &point) const
 Back-transform a point from output space to input space using the inverse VTK transform. More...
 
virtual InputVectorType BackTransform (const OutputVectorType &vector) const
 Back-transform a vector from output space to input space using the inverse VTK transform. More...
 
virtual InputVnlVectorType BackTransform (const OutputVnlVectorType &vector) const
 Back-transform a vnl vector from output space to input space using the inverse VTK transform. More...
 
virtual InputCovariantVectorType BackTransform (const OutputCovariantVectorType &vector) const
 Back-transform a covariant vector (not yet implemented, will throw). More...
 
void SetParameters (const ParametersType &) override
 Set the transform parameters (not yet implemented). More...
 
void SetFixedParameters (const ParametersType &) override
 Set the fixed transform parameters (not yet implemented). More...
 
void ComputeJacobianWithRespectToParameters (const InputPointType &, JacobianType &) const override
 Compute the Jacobian with respect to parameters (not yet implemented). More...
 
void ComputeJacobianWithRespectToPosition (const InputPointType &, JacobianPositionType &) const override
 Compute the Jacobian with respect to position (not yet implemented). More...
 
itk::ModifiedTimeType GetMTime () const override
 Get the modification time, taking VTK transform changes into account. More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 VtkAbstractTransform ()
 Default constructor. Initializes transforms to nullptr. More...
 
 ~VtkAbstractTransform () override
 Destructor. Unregisters the owned VTK transform. More...
 

Protected Attributes

vtkAbstractTransform * m_VtkAbstractTransform
 The forward vtkAbstractTransform instance. More...
 
vtkAbstractTransform * m_InverseVtkAbstractTransform
 The inverse vtkAbstractTransform instance (managed by m_VtkAbstractTransform). More...
 
unsigned long m_LastVtkAbstractTransformTimeStamp
 

Detailed Description

template<class TScalarType>
class itk::VtkAbstractTransform< TScalarType >

Adapter from vtkAbstractTransform to itk::Transform<TScalarType, 3, 3>.

Wraps a VTK abstract transform so it can be used in the ITK transform framework. Supports forward and inverse point, vector, and covariant vector transformation.

Definition at line 31 of file itkVtkAbstractTransform.h.

Member Typedef Documentation

◆ ConstPointer

template<class TScalarType >
typedef SmartPointer<const Self> itk::VtkAbstractTransform< TScalarType >::ConstPointer

Definition at line 37 of file itkVtkAbstractTransform.h.

◆ InputCovariantVectorType

template<class TScalarType >
typedef Superclass::InputCovariantVectorType itk::VtkAbstractTransform< TScalarType >::InputCovariantVectorType

Definition at line 45 of file itkVtkAbstractTransform.h.

◆ InputPointType

template<class TScalarType >
typedef Superclass::InputPointType itk::VtkAbstractTransform< TScalarType >::InputPointType

Definition at line 42 of file itkVtkAbstractTransform.h.

◆ InputVectorType

template<class TScalarType >
typedef Superclass::InputVectorType itk::VtkAbstractTransform< TScalarType >::InputVectorType

Definition at line 43 of file itkVtkAbstractTransform.h.

◆ InputVnlVectorType

template<class TScalarType >
typedef Superclass::InputVnlVectorType itk::VtkAbstractTransform< TScalarType >::InputVnlVectorType

Definition at line 44 of file itkVtkAbstractTransform.h.

◆ JacobianPositionType

template<class TScalarType >
typedef Superclass::JacobianPositionType itk::VtkAbstractTransform< TScalarType >::JacobianPositionType

Definition at line 48 of file itkVtkAbstractTransform.h.

◆ JacobianType

template<class TScalarType >
typedef Superclass::JacobianType itk::VtkAbstractTransform< TScalarType >::JacobianType

Definition at line 47 of file itkVtkAbstractTransform.h.

◆ OutputCovariantVectorType

template<class TScalarType >
typedef Superclass::OutputCovariantVectorType itk::VtkAbstractTransform< TScalarType >::OutputCovariantVectorType

Definition at line 41 of file itkVtkAbstractTransform.h.

◆ OutputPointType

template<class TScalarType >
typedef Superclass::OutputPointType itk::VtkAbstractTransform< TScalarType >::OutputPointType

Definition at line 38 of file itkVtkAbstractTransform.h.

◆ OutputVectorType

template<class TScalarType >
typedef Superclass::OutputVectorType itk::VtkAbstractTransform< TScalarType >::OutputVectorType

Definition at line 39 of file itkVtkAbstractTransform.h.

◆ OutputVnlVectorType

template<class TScalarType >
typedef Superclass::OutputVnlVectorType itk::VtkAbstractTransform< TScalarType >::OutputVnlVectorType

Definition at line 40 of file itkVtkAbstractTransform.h.

◆ ParametersType

template<class TScalarType >
typedef Superclass::ParametersType itk::VtkAbstractTransform< TScalarType >::ParametersType

Definition at line 46 of file itkVtkAbstractTransform.h.

◆ Pointer

template<class TScalarType >
typedef SmartPointer<Self> itk::VtkAbstractTransform< TScalarType >::Pointer

Definition at line 36 of file itkVtkAbstractTransform.h.

◆ Self

template<class TScalarType >
typedef VtkAbstractTransform itk::VtkAbstractTransform< TScalarType >::Self

Definition at line 34 of file itkVtkAbstractTransform.h.

◆ Superclass

template<class TScalarType >
typedef Transform<TScalarType, 3, 3> itk::VtkAbstractTransform< TScalarType >::Superclass

Definition at line 35 of file itkVtkAbstractTransform.h.

Constructor & Destructor Documentation

◆ VtkAbstractTransform()

template<class TScalarType >
itk::VtkAbstractTransform< TScalarType >::VtkAbstractTransform ( )
protected

Default constructor. Initializes transforms to nullptr.

◆ ~VtkAbstractTransform()

template<class TScalarType >
itk::VtkAbstractTransform< TScalarType >::~VtkAbstractTransform ( )
overrideprotected

Destructor. Unregisters the owned VTK transform.

Member Function Documentation

◆ BackTransform() [1/4]

template<class TScalarType >
virtual InputCovariantVectorType itk::VtkAbstractTransform< TScalarType >::BackTransform ( const OutputCovariantVectorType &  vector) const
virtual

Back-transform a covariant vector (not yet implemented, will throw).

Parameters
vectorThe covariant vector in output space.
Returns
The covariant vector in input space.

◆ BackTransform() [2/4]

template<class TScalarType >
virtual InputPointType itk::VtkAbstractTransform< TScalarType >::BackTransform ( const OutputPointType &  point) const
virtual

Back-transform a point from output space to input space using the inverse VTK transform.

Parameters
pointThe point in output space.
Returns
The point in input space.

◆ BackTransform() [3/4]

template<class TScalarType >
virtual InputVectorType itk::VtkAbstractTransform< TScalarType >::BackTransform ( const OutputVectorType &  vector) const
virtual

Back-transform a vector from output space to input space using the inverse VTK transform.

Parameters
vectorThe vector in output space.
Returns
The vector in input space.

◆ BackTransform() [4/4]

template<class TScalarType >
virtual InputVnlVectorType itk::VtkAbstractTransform< TScalarType >::BackTransform ( const OutputVnlVectorType &  vector) const
virtual

Back-transform a vnl vector from output space to input space using the inverse VTK transform.

Parameters
vectorThe vnl vector in output space.
Returns
The vnl vector in input space.

◆ Clone()

template<class TScalarType >
Pointer itk::VtkAbstractTransform< TScalarType >::Clone ( ) const

◆ ComputeJacobianWithRespectToParameters()

template<class TScalarType >
void itk::VtkAbstractTransform< TScalarType >::ComputeJacobianWithRespectToParameters ( const InputPointType &  ,
JacobianType &   
) const
override

Compute the Jacobian with respect to parameters (not yet implemented).

◆ ComputeJacobianWithRespectToPosition()

template<class TScalarType >
void itk::VtkAbstractTransform< TScalarType >::ComputeJacobianWithRespectToPosition ( const InputPointType &  ,
JacobianPositionType &   
) const
override

Compute the Jacobian with respect to position (not yet implemented).

◆ GetInverseVtkAbstractTransform()

template<class TScalarType >
virtual vtkAbstractTransform* itk::VtkAbstractTransform< TScalarType >::GetInverseVtkAbstractTransform ( ) const
virtual

Get the inverse vtkAbstractTransform (stored in m_InverseVtkAbstractTransform).

◆ GetMTime()

template<class TScalarType >
itk::ModifiedTimeType itk::VtkAbstractTransform< TScalarType >::GetMTime ( ) const
override

Get the modification time, taking VTK transform changes into account.

◆ GetVtkAbstractTransform()

template<class TScalarType >
virtual vtkAbstractTransform* itk::VtkAbstractTransform< TScalarType >::GetVtkAbstractTransform ( ) const
virtual

Get the vtkAbstractTransform (stored in m_VtkAbstractTransform).

◆ New()

template<class TScalarType >
static Pointer itk::VtkAbstractTransform< TScalarType >::New ( )
static

◆ SetFixedParameters()

template<class TScalarType >
void itk::VtkAbstractTransform< TScalarType >::SetFixedParameters ( const ParametersType &  )
override

Set the fixed transform parameters (not yet implemented).

◆ SetParameters()

template<class TScalarType >
void itk::VtkAbstractTransform< TScalarType >::SetParameters ( const ParametersType &  )
override

Set the transform parameters (not yet implemented).

◆ SetVtkAbstractTransform()

template<class TScalarType >
virtual void itk::VtkAbstractTransform< TScalarType >::SetVtkAbstractTransform ( vtkAbstractTransform *  aVtkAbstractTransform)
virtual

Set the vtkAbstractTransform (stored in m_VtkAbstractTransform).

Also computes and caches the inverse transform. Registers the new transform and unregisters the old one.

Parameters
aVtkAbstractTransformThe VTK transform to wrap.

◆ TransformCovariantVector()

template<class TScalarType >
OutputCovariantVectorType itk::VtkAbstractTransform< TScalarType >::TransformCovariantVector ( const InputCovariantVectorType &  ) const
override

Transform a covariant vector (not yet implemented, will throw).

◆ TransformPoint()

template<class TScalarType >
OutputPointType itk::VtkAbstractTransform< TScalarType >::TransformPoint ( const InputPointType &  ) const
override

Transform a point from input space to output space using the VTK transform.

◆ TransformVector() [1/2]

template<class TScalarType >
OutputVectorType itk::VtkAbstractTransform< TScalarType >::TransformVector ( const InputVectorType &  ) const
override

Transform a vector from input space to output space using the VTK transform.

◆ TransformVector() [2/2]

template<class TScalarType >
OutputVnlVectorType itk::VtkAbstractTransform< TScalarType >::TransformVector ( const InputVnlVectorType &  ) const
override

Transform a vnl vector from input space to output space using the VTK transform.

Member Data Documentation

◆ m_InverseVtkAbstractTransform

template<class TScalarType >
vtkAbstractTransform* itk::VtkAbstractTransform< TScalarType >::m_InverseVtkAbstractTransform
protected

The inverse vtkAbstractTransform instance (managed by m_VtkAbstractTransform).

Definition at line 134 of file itkVtkAbstractTransform.h.

◆ m_LastVtkAbstractTransformTimeStamp

template<class TScalarType >
unsigned long itk::VtkAbstractTransform< TScalarType >::m_LastVtkAbstractTransformTimeStamp
mutableprotected

Definition at line 136 of file itkVtkAbstractTransform.h.

◆ m_VtkAbstractTransform

template<class TScalarType >
vtkAbstractTransform* itk::VtkAbstractTransform< TScalarType >::m_VtkAbstractTransform
protected

The forward vtkAbstractTransform instance.

Definition at line 131 of file itkVtkAbstractTransform.h.


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