Adapter from vtkAbstractTransform to itk::Transform<TScalarType, 3, 3> More...
#include <itkVtkAbstractTransform.h>


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 |
Public Member Functions | |
| virtual vtkAbstractTransform * | GetVtkAbstractTransform () const |
| Get the vtkAbstractTransform (stored in m_VtkAbstractTransform) | |
| virtual vtkAbstractTransform * | GetInverseVtkAbstractTransform () const |
| Get the inverse vtkAbstractTransform (stored in m_InverseVtkAbstractTransform) | |
| virtual void | SetVtkAbstractTransform (vtkAbstractTransform *aVtkAbstractTransform) |
| Set the vtkAbstractTransform (stored in m_VtkAbstractTransform) | |
| virtual OutputPointType | TransformPoint (const InputPointType &) const |
| virtual OutputVectorType | TransformVector (const InputVectorType &) const |
| virtual OutputVnlVectorType | TransformVector (const InputVnlVectorType &) const |
| virtual OutputCovariantVectorType | TransformCovariantVector (const InputCovariantVectorType &) const |
| virtual InputPointType | BackTransform (const OutputPointType &point) const |
| virtual InputVectorType | BackTransform (const OutputVectorType &vector) const |
| virtual InputVnlVectorType | BackTransform (const OutputVnlVectorType &vector) const |
| virtual InputCovariantVectorType | BackTransform (const OutputCovariantVectorType &vector) const |
| virtual unsigned long | GetMTime () const |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| VtkAbstractTransform () | |
| virtual | ~VtkAbstractTransform () |
Protected Attributes | |
| vtkAbstractTransform * | m_VtkAbstractTransform |
| Instance of the vtkAbstractTransform. | |
| vtkAbstractTransform * | m_InverseVtkAbstractTransform |
| Instance of the vtkAbstractTransform. | |
| unsigned long | m_LastVtkAbstractTransformTimeStamp |
Adapter from vtkAbstractTransform to itk::Transform<TScalarType, 3, 3>
Definition at line 32 of file itkVtkAbstractTransform.h.
| typedef SmartPointer<const Self> itk::VtkAbstractTransform< TScalarType >::ConstPointer |
Definition at line 38 of file itkVtkAbstractTransform.h.
| typedef Superclass::InputCovariantVectorType itk::VtkAbstractTransform< TScalarType >::InputCovariantVectorType |
Definition at line 46 of file itkVtkAbstractTransform.h.
| typedef Superclass::InputPointType itk::VtkAbstractTransform< TScalarType >::InputPointType |
Definition at line 43 of file itkVtkAbstractTransform.h.
| typedef Superclass::InputVectorType itk::VtkAbstractTransform< TScalarType >::InputVectorType |
Definition at line 44 of file itkVtkAbstractTransform.h.
| typedef Superclass::InputVnlVectorType itk::VtkAbstractTransform< TScalarType >::InputVnlVectorType |
Definition at line 45 of file itkVtkAbstractTransform.h.
| typedef Superclass::OutputCovariantVectorType itk::VtkAbstractTransform< TScalarType >::OutputCovariantVectorType |
Definition at line 42 of file itkVtkAbstractTransform.h.
| typedef Superclass::OutputPointType itk::VtkAbstractTransform< TScalarType >::OutputPointType |
Definition at line 39 of file itkVtkAbstractTransform.h.
| typedef Superclass::OutputVectorType itk::VtkAbstractTransform< TScalarType >::OutputVectorType |
Definition at line 40 of file itkVtkAbstractTransform.h.
| typedef Superclass::OutputVnlVectorType itk::VtkAbstractTransform< TScalarType >::OutputVnlVectorType |
Definition at line 41 of file itkVtkAbstractTransform.h.
| typedef SmartPointer<Self> itk::VtkAbstractTransform< TScalarType >::Pointer |
Definition at line 37 of file itkVtkAbstractTransform.h.
| typedef VtkAbstractTransform itk::VtkAbstractTransform< TScalarType >::Self |
Definition at line 35 of file itkVtkAbstractTransform.h.
| typedef Transform< TScalarType, 3, 3 > itk::VtkAbstractTransform< TScalarType >::Superclass |
Definition at line 36 of file itkVtkAbstractTransform.h.
| itk::VtkAbstractTransform< TScalarType >::VtkAbstractTransform | ( | ) | [protected] |
Definition at line 25 of file itkVtkAbstractTransform.txx.
: Superclass(3, 0), m_VtkAbstractTransform(NULL), m_InverseVtkAbstractTransform(NULL), m_LastVtkAbstractTransformTimeStamp(0) { }
| itk::VtkAbstractTransform< TScalarType >::~VtkAbstractTransform | ( | ) | [protected, virtual] |
Definition at line 34 of file itkVtkAbstractTransform.txx.
{
if(m_VtkAbstractTransform!=NULL)
m_VtkAbstractTransform->UnRegister(NULL);
}
| VtkAbstractTransform< TScalarType >::InputPointType itk::VtkAbstractTransform< TScalarType >::BackTransform | ( | const OutputPointType & | point ) | const [virtual] |
Definition at line 151 of file itkVtkAbstractTransform.txx.
{
assert(m_VtkAbstractTransform!=NULL);
OutputPointType outputpoint;
float vtkpt[3];
mitk::itk2vtk(point, vtkpt);
m_InverseVtkAbstractTransform->TransformPoint(vtkpt, vtkpt);
mitk::vtk2itk(vtkpt, outputpoint);
return outputpoint;
}
| VtkAbstractTransform< TScalarType >::InputVectorType itk::VtkAbstractTransform< TScalarType >::BackTransform | ( | const OutputVectorType & | vector ) | const [virtual] |
Definition at line 167 of file itkVtkAbstractTransform.txx.
{
assert(m_VtkAbstractTransform!=NULL);
OutputVectorType outputvector;
float vtkpt[3]={0,0,0};
float vtkvec[3];
mitk::itk2vtk(vect, vtkvec);
m_InverseVtkAbstractTransform->TransformVectorAtPoint(vtkpt, vtkvec, vtkvec);
mitk::vtk2itk(vtkvec, outputvector);
return outputvector;
}
| VtkAbstractTransform< TScalarType >::InputVnlVectorType itk::VtkAbstractTransform< TScalarType >::BackTransform | ( | const OutputVnlVectorType & | vector ) | const [virtual] |
Definition at line 184 of file itkVtkAbstractTransform.txx.
{
assert(m_InverseVtkAbstractTransform!=NULL);
OutputVnlVectorType outputvector;
float vtkpt[3]={0,0,0};
float vtkvec[3];
mitk::itk2vtk(vect, vtkvec);
m_InverseVtkAbstractTransform->TransformVectorAtPoint(vtkpt, vtkvec, vtkvec);
mitk::vtk2itk(vtkvec, outputvector);
return outputvector;
}
| VtkAbstractTransform< TScalarType >::InputCovariantVectorType itk::VtkAbstractTransform< TScalarType >::BackTransform | ( | const OutputCovariantVectorType & | vector ) | const [virtual] |
Definition at line 201 of file itkVtkAbstractTransform.txx.
{
itkExceptionMacro( << "implement before using!" );
// for (unsigned int i = 0; i < NDimensions; i++)
// {
// result[i] = NumericTraits<ScalarType>::Zero;
// for (unsigned int j = 0; j < NDimensions; j++)
// {
// result[i] += m_Matrix[j][i]*vec[j]; // Direct matrix transposed
// }
// }
return vec;
}
| vtkAbstractTransform * itk::VtkAbstractTransform< TScalarType >::GetInverseVtkAbstractTransform | ( | ) | const [virtual] |
Get the inverse vtkAbstractTransform (stored in m_InverseVtkAbstractTransform)
Definition at line 47 of file itkVtkAbstractTransform.txx.
{
return m_InverseVtkAbstractTransform;
}
| unsigned long itk::VtkAbstractTransform< TScalarType >::GetMTime | ( | ) | const [virtual] |
Definition at line 217 of file itkVtkAbstractTransform.txx.
References itk::VtkAbstractTransform< TScalarType >::GetMTime().
Referenced by itk::VtkAbstractTransform< TScalarType >::GetMTime(), and itk::VtkAbstractTransform< TScalarType >::SetVtkAbstractTransform().
{
if((m_VtkAbstractTransform != NULL) && (m_LastVtkAbstractTransformTimeStamp < m_VtkAbstractTransform->GetMTime()))
{
m_LastVtkAbstractTransformTimeStamp=m_VtkAbstractTransform->GetMTime();
this->Modified();
}
return Superclass::GetMTime();
}
| vtkAbstractTransform * itk::VtkAbstractTransform< TScalarType >::GetVtkAbstractTransform | ( | ) | const [virtual] |
Get the vtkAbstractTransform (stored in m_VtkAbstractTransform)
Definition at line 41 of file itkVtkAbstractTransform.txx.
{
return m_VtkAbstractTransform;
}
| static Pointer itk::VtkAbstractTransform< TScalarType >::New | ( | ) | [static] |
| void itk::VtkAbstractTransform< TScalarType >::SetVtkAbstractTransform | ( | vtkAbstractTransform * | aVtkAbstractTransform ) | [virtual] |
Set the vtkAbstractTransform (stored in m_VtkAbstractTransform)
Definition at line 53 of file itkVtkAbstractTransform.txx.
References itk::VtkAbstractTransform< TScalarType >::GetMTime().
{
if(m_VtkAbstractTransform==aVtkAbstractTransform)
return;
if(m_VtkAbstractTransform!=NULL)
m_VtkAbstractTransform->UnRegister(NULL);
m_VtkAbstractTransform=aVtkAbstractTransform;
if(m_VtkAbstractTransform!=NULL)
{
m_VtkAbstractTransform->Register(NULL);
m_InverseVtkAbstractTransform=m_VtkAbstractTransform->GetInverse(); // memory managed by m_VtkAbstractTransform
}
m_LastVtkAbstractTransformTimeStamp = m_VtkAbstractTransform->GetMTime();
this->Modified();
}
| itk::VtkAbstractTransform< TScalarType >::OutputCovariantVectorType itk::VtkAbstractTransform< TScalarType >::TransformCovariantVector | ( | const InputCovariantVectorType & | ) | const [virtual] |
Definition at line 131 of file itkVtkAbstractTransform.txx.
{
itkExceptionMacro( << "implement before using!" );
OutputCovariantVectorType result; // Converted vector
// for (unsigned int i = 0; i < NDimensions; i++)
// {
// result[i] = NumericTraits<ScalarType>::Zero;
// for (unsigned int j = 0; j < NDimensions; j++)
// {
// result[i] += m_Inverse[j][i]*vec[j]; // Inverse transposed
// }
// }
return result;
}
| itk::VtkAbstractTransform< TScalarType >::OutputPointType itk::VtkAbstractTransform< TScalarType >::TransformPoint | ( | const InputPointType & | point ) | const [virtual] |
Definition at line 77 of file itkVtkAbstractTransform.txx.
{
assert(m_VtkAbstractTransform!=NULL);
OutputPointType outputpoint;
vnl_vector<TScalarType> vnl_vec;
float vtkpt[3];
mitk::itk2vtk(point, vtkpt);
m_VtkAbstractTransform->TransformPoint(vtkpt, vtkpt);
mitk::vtk2itk(vtkpt, outputpoint);
return outputpoint;
}
| itk::VtkAbstractTransform< TScalarType >::OutputVectorType itk::VtkAbstractTransform< TScalarType >::TransformVector | ( | const InputVectorType & | vect ) | const [virtual] |
Definition at line 95 of file itkVtkAbstractTransform.txx.
{
assert(m_VtkAbstractTransform!=NULL);
OutputVectorType outputvector;
vnl_vector<TScalarType> vnl_vec;
float vtkpt[3]={0,0,0};
float vtkvec[3];
mitk::vnl2vtk<TScalarType, float>(vect.Get_vnl_vector(), vtkvec);
m_VtkAbstractTransform->TransformVectorAtPoint(vtkpt, vtkvec, vtkvec);
mitk::vtk2itk(vtkvec, outputvector);
return outputvector;
}
| itk::VtkAbstractTransform< TScalarType >::OutputVnlVectorType itk::VtkAbstractTransform< TScalarType >::TransformVector | ( | const InputVnlVectorType & | vect ) | const [virtual] |
Definition at line 114 of file itkVtkAbstractTransform.txx.
{
assert(m_VtkAbstractTransform!=NULL);
OutputVnlVectorType outputvector;
float vtkpt[3]={0,0,0};
float vtkvec[3];
mitk::vnl2vtk<TScalarType, float>(vect, vtkvec);
m_VtkAbstractTransform->TransformVectorAtPoint(vtkpt, vtkvec, vtkvec);
mitk::vtk2itk(vtkvec, outputvector);
return outputvector;
}
vtkAbstractTransform* itk::VtkAbstractTransform< TScalarType >::m_InverseVtkAbstractTransform [protected] |
Instance of the vtkAbstractTransform.
Definition at line 84 of file itkVtkAbstractTransform.h.
unsigned long itk::VtkAbstractTransform< TScalarType >::m_LastVtkAbstractTransformTimeStamp [mutable, protected] |
Definition at line 86 of file itkVtkAbstractTransform.h.
vtkAbstractTransform* itk::VtkAbstractTransform< TScalarType >::m_VtkAbstractTransform [protected] |
Instance of the vtkAbstractTransform.
Definition at line 80 of file itkVtkAbstractTransform.h.
1.7.2