#include <irtkTransformation.h>
This is the abstract base class which defines a common interface for all transformation. Each derived class has to implement all abstract member functions.
Definition at line 47 of file irtkTransformation.h.
Public Member Functions | |
virtual | ~irtkTransformation () |
Virtual destructor. | |
virtual int | NumberOfDOFs () const =0 |
Returns the number of parameters of the transformation (abstract). | |
virtual double | Get (int) const =0 |
Gets a transformation parameter (abstract). | |
virtual void | Put (int, double)=0 |
Puts a transformation paramater (abstract). | |
virtual void | PutStatus (int, _Status) |
Puts a control point status. | |
virtual _Status | GetStatus (int) const |
Gets a control point status. | |
virtual void | Transform (irtkPoint &) |
Transforms a single point. | |
virtual void | Transform (irtkPointSet &) |
Transforms a set of points. | |
virtual void | Transform (double &, double &, double &, double=0)=0 |
Transforms a single point in 4D. | |
virtual void | GlobalTransform (double &, double &, double &, double=0)=0 |
Transforms a point using the global transformation component only. | |
virtual void | LocalTransform (double &, double &, double &, double=0)=0 |
Transforms a point using the local transformation component only. | |
virtual void | GlobalDisplacement (double &, double &, double &, double=0) |
Calculates displacement using the global transformation component only. | |
virtual void | LocalDisplacement (double &, double &, double &, double=0) |
Calculates displacement using the local transformation component only. | |
virtual double | Inverse (double &, double &, double &, double=0, double=0.01)=0 |
Inverts the transformation (abstract). | |
virtual void | Jacobian (irtkMatrix &, double, double, double, double=0)=0 |
Calculate the Jacobian of the transformation. | |
virtual void | LocalJacobian (irtkMatrix &, double, double, double, double=0)=0 |
Calculate the Jacobian of the local transformation. | |
virtual void | GlobalJacobian (irtkMatrix &, double, double, double, double=0)=0 |
Calculate the Jacobian of the global transformation. | |
virtual double | Jacobian (double, double, double, double=0) |
Calculate the determinant of the Jacobian of the transformation. | |
virtual double | LocalJacobian (double, double, double, double=0) |
Calculate the determinant of the Jacobian of the local transformation. | |
virtual double | GlobalJacobian (double, double, double, double=0) |
Calculate the determinant of the Jacobian of the global transformation. | |
virtual Bool | IsIdentity ()=0 |
Checks whether transformation is an identity mapping (abstract). | |
virtual void | Read (char *) |
Reads a transformation from a file. | |
virtual void | Write (char *) |
Writes a transformation to a file. | |
virtual void | Import (char *) |
Imports a transformation from a file. | |
virtual void | Export (char *) |
Exports a transformation to a file. | |
virtual irtkCifstream & | Read (irtkCifstream &)=0 |
Reads a transformation from a file (abstract). | |
virtual irtkCofstream & | Write (irtkCofstream &)=0 |
Writes a transformation to a file (abstract). | |
virtual istream & | Import (istream &) |
Imports a transformation from a file. | |
virtual ostream & | Export (ostream &) |
Exports a transformation to a file. | |
virtual void | Draw () |
I/O. | |
virtual void | Print ()=0 |
Prints the parameters of the transformation (abstract). | |
virtual const char * | NameOfClass ()=0 |
Returns a string with the name of the instantiated class (abstract). | |
Static Public Member Functions | |
static irtkTransformation * | New (char *) |
Static constructor. | |
static irtkTransformation * | New (irtkTransformation *) |
Static constructor. | |
Protected Member Functions | |
irtkTransformation () | |
Constructor sets _status to NULL on behalf of subclasses. | |
Protected Attributes | |
_Status * | _status |
Status of each degree of freedom (Active or Passive). |
static irtkTransformation* irtkTransformation::New | ( | char * | ) | [static] |
Static constructor.
This functions returns a pointer to a concrete transformation by reading the transformation parameters from a file and creating the approriate transformation
static irtkTransformation* irtkTransformation::New | ( | irtkTransformation * | ) | [static] |
Static constructor.
This functions returns a pointer to a concrete transformation by copying the transformation passed to it