BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Protected Attributes
BALL::TransformationProcessor Class Reference

#include <BALL/STRUCTURE/geometricTransformations.h>

Inheritance diagram for BALL::TransformationProcessor:
BALL::UnaryProcessor< Atom > BALL::UnaryFunctor< Atom, Processor::Result > BALL::StructureMapper

List of all members.

Public Member Functions

 TransformationProcessor ()
 TransformationProcessor (const Matrix4x4 &transformation)
void setTransformation (const Matrix4x4 &transformation)
const Matrix4x4getTransformation () const
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.

Definition at line 87 of file geometricTransformations.h.


Constructor & Destructor Documentation

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} ) \]

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

Parameters:
transformationthe new transformation matrix

Member Function Documentation

Returns the transformation vector.

Returns:
the current transformation matrix
virtual Processor::Result BALL::TransformationProcessor::operator() ( Atom atom) [virtual]

Applicator method.

Reimplemented from BALL::UnaryProcessor< Atom >.

Sets a new transformation.

Parameters:
transformationthe new transformation matrix

Member Data Documentation

Definition at line 130 of file geometricTransformations.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines