sofa::helper::gl::Transformation Class Reference

#include <Transformation.h>

Collaboration diagram for sofa::helper::gl::Transformation:

Collaboration graph
[legend]

Public Member Functions

 Transformation ()
 ~Transformation ()
Transformation & operator= (const Transformation &transform)
void Apply ()
void ApplyWithCentring ()
void ApplyInverse ()
template<class Vector >
Vector operator* (Vector v) const

Data Fields

SReal translation [3]
SReal scale [3]
SReal rotation [4][4]
SReal objectCenter [3]

Private Member Functions

void InvertTransRotMatrix (SReal matrix[4][4])
void InvertTransRotMatrix (SReal sMatrix[4][4], SReal dMatrix[4][4])

Detailed Description

Definition at line 41 of file Transformation.h.


Constructor & Destructor Documentation

sofa::helper::gl::Transformation::Transformation (  ) 

Definition at line 43 of file Transformation.cpp.

References objectCenter, rotation, scale, and translation.

sofa::helper::gl::Transformation::~Transformation (  ) 

Definition at line 68 of file Transformation.cpp.


Member Function Documentation

void sofa::helper::gl::Transformation::Apply (  ) 

void sofa::helper::gl::Transformation::ApplyInverse (  ) 

void sofa::helper::gl::Transformation::ApplyWithCentring (  ) 

Definition at line 113 of file Transformation.cpp.

References Apply(), sofa::helper::gl::glTranslate(), and objectCenter.

void sofa::helper::gl::Transformation::InvertTransRotMatrix ( SReal  sMatrix[4][4],
SReal  dMatrix[4][4] 
) [private]

Definition at line 169 of file Transformation.cpp.

References InvertTransRotMatrix().

void sofa::helper::gl::Transformation::InvertTransRotMatrix ( SReal  matrix[4][4]  )  [private]

Definition at line 142 of file Transformation.cpp.

Referenced by ApplyInverse(), and InvertTransRotMatrix().

template<class Vector >
Vector sofa::helper::gl::Transformation::operator* ( Vector  v  )  const [inline]

Definition at line 67 of file Transformation.h.

References rotation, scale, and translation.

Transformation & sofa::helper::gl::Transformation::operator= ( const Transformation &  transform  ) 

Definition at line 76 of file Transformation.cpp.

References objectCenter, rotation, scale, and translation.


Field Documentation

Definition at line 49 of file Transformation.h.

Referenced by ApplyWithCentring(), operator=(), and Transformation().

Definition at line 46 of file Transformation.h.

Referenced by Apply(), ApplyInverse(), operator*(), operator=(), and Transformation().


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

Generated on Sun Nov 23 04:24:18 2008 for Sofa by  doxygen 1.5.7.1