Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

TransformationProcessor Class Reference
[Miscellaneous]

Transformation applicator. More...

#include <geometricTransformations.h>

Inheritance diagram for TransformationProcessor:

UnaryProcessor< Atom > UnaryFunctor< Atom, Processor::Result > StructureMapper List of all members.

Public Member Functions

 TransformationProcessor ()
 Default constructor.
 TransformationProcessor (const Matrix4x4 &transformation)
 Constructor.
void setTransformation (const Matrix4x4 &transformation)
 Sets a new transformation.
const Matrix4x4getTransformation () const
 Returns the transformation vector.
virtual Processor::Result operator() (Atom &atom)
 Applicator method.

Protected Attributes

Matrix4x4 transformation_

Detailed Description

Transformation applicator.

This applicator executes a transformation on each atom of a given Composite object. The transformation may be given in the constructor, or by calling setTransformation. Applying the applicator to a given Composite object will multiply the coordinates of each Atom object (or objects derived from Atom) with the given transformation matrix.


Constructor & Destructor Documentation

TransformationProcessor::TransformationProcessor  ) 
 

Default constructor.

The transformation applicator is initialized and the transformation is set to identity: \[ ( {array}{cccc} 1 & 0 & 0 & 0

0 & 1 & 0 & 0
0 & 0 & 1 & 0
0 & 0 & 0 & 1
{array} ) \]

TransformationProcessor::TransformationProcessor const Matrix4x4 transformation  ) 
 

Constructor.

Creates a new instance of a TransformationProcessor and sets the transformation matrix.

Parameters:
transformation the new transformation matrix


Member Function Documentation

const Matrix4x4& TransformationProcessor::getTransformation  )  const
 

Returns the transformation vector.

Returns:
the current transformation matrix

void TransformationProcessor::setTransformation const Matrix4x4 transformation  ) 
 

Sets a new transformation.

Parameters:
transformation the new transformation matrix