irtkRigidTransformation Class Reference

#include <irtkRigidTransformation.h>

Inheritance diagram for irtkRigidTransformation:

Inheritance graph
[legend]

List of all members.


Detailed Description

Class for rigid transformations.

This class defines and implements rigid body transformations. The rigid body transformations are parameterized by three rotations around the axes of the coordinate system followed by three translations along the axes of the coordinate system. Note that the order of rotations is defined as a rotation around the z-axis, the y-axis and finally around the x-axis. In total, the transformation is parameterized by six degrees of freedom.

Definition at line 29 of file irtkRigidTransformation.h.


Public Member Functions

 irtkRigidTransformation ()
 Constructor (default).
 irtkRigidTransformation (const irtkRigidTransformation &)
 Constructor (copy).
virtual ~irtkRigidTransformation ()
 Destructor.
void PutTranslationX (double)
 Puts translation along the x-axis (transformation matrix is updated).
virtual double GetTranslationX ()
 Gets translation along the x-axis.
virtual void PutTranslationY (double)
 Puts translation along the y-axis (transformation matrix is updated).
virtual double GetTranslationY ()
 Gets translation along the y-axis.
virtual void PutTranslationZ (double)
 Puts translation along the z-axis (transformation matrix is updated).
virtual double GetTranslationZ ()
 Gets translation along the z-axis.
virtual void PutRotationX (double)
 Puts rotation angle around the x-axis (transformation matrix is updated).
virtual double GetRotationX ()
 Gets rotation angle around the x-axis.
virtual void PutRotationY (double)
 Puts rotation angle around the y-axis (transformation matrix is updated).
virtual double GetRotationY ()
 Gets rotation angle around the y-axis.
virtual void PutRotationZ (double)
 Puts rotation angle around the z-axis (transformation matrix is updated).
virtual double GetRotationZ ()
 Gets rotation angle around the z-axis.
virtual int NumberOfDOFs () const
 Returns the number of parameters of the transformation.
virtual void Put (int, double)
 Puts a transformation parameter (transformation matrix is updated).
virtual double Get (int) const
 Gets a transformation parameter.
virtual void Rotate (double &x, double &y, double &z)
 Transforms a point by the rotation part of the rigid transformation.
virtual Bool IsIdentity ()
 Checks whether transformation is an identity mapping.
virtual void Print ()
 Prints the parameters of the transformation.
virtual const char * NameOfClass ()
 Returns a string with the name of the instantiated class.
virtual irtkCifstreamRead (irtkCifstream &)
 Reads a transformation from a file.
virtual irtkCofstreamWrite (irtkCofstream &)
 Writes a transformation to a file.
virtual istream & Import (istream &)
 Imports a transformation from a file.
virtual ostream & Export (ostream &)
 Exports a transformation to a file.
virtual void PutMatrix (const irtkMatrix &)
 Puts the transformation matrix (transformation parameters are updated).
virtual void UpdateMatrix ()
 Updates transformation matrix.
virtual void UpdateParameter ()
 Updates transformation parameters.

Static Public Member Functions

static int CheckHeader (char *)
 Check file header.

Protected Member Functions

virtual irtkMatrix Parameters2Matrix (double *) const
 Construct a matrix based on parameters passed in the array.
virtual void Matrix2Parameters (irtkMatrix, double *) const
 Return an array with parameters corresponding to a given matrix.
virtual void SetParameters (double *params)
 Assign the parameters passed to the current object and update the matrix.

Protected Attributes

double _tx
 Translation along the x-axis (in mm).
double _ty
 Translation along the y-axis (in mm).
double _tz
 Translation along the z-axis (in mm).
double _rx
 Rotation around the x-axis (in degrees).
double _ry
 Rotation around the y-axis (in degrees).
double _rz
 Rotation around the z-axis (in degrees).

Member Function Documentation

void irtkRigidTransformation::SetParameters ( double *  params  )  [inline, protected, virtual]

Assign the parameters passed to the current object and update the matrix.

Reimplemented in irtkAffineTransformation.

Definition at line 289 of file irtkRigidTransformation.h.

References _rx, _ry, _rz, _tx, _ty, _tz, and UpdateMatrix().

Referenced by irtkAffineTransformation::SetParameters().


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