#include <Transformation.h>

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]) |
Definition at line 41 of file Transformation.h.
| 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.
| void sofa::helper::gl::Transformation::Apply | ( | ) |
Definition at line 102 of file Transformation.cpp.
References sofa::helper::gl::glMultMatrix(), sofa::helper::gl::glScale(), sofa::helper::gl::glTranslate(), rotation, scale, and translation.
Referenced by sofa::gui::qt::viewer::qt::QtViewer::ApplyShadowMap(), sofa::gui::glut::SimpleGUI::ApplyShadowMap(), ApplyWithCentring(), sofa::gui::qt::viewer::qt::QtViewer::DrawScene(), and sofa::gui::glut::SimpleGUI::DrawScene().
| void sofa::helper::gl::Transformation::ApplyInverse | ( | ) |
Definition at line 124 of file Transformation.cpp.
References sofa::helper::gl::glMultMatrix(), sofa::helper::gl::glScale(), sofa::helper::gl::glTranslate(), InvertTransRotMatrix(), rotation, scale, and translation.
| 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 | matrix[4][4] | ) | [private] |
Definition at line 142 of file Transformation.cpp.
Referenced by ApplyInverse(), and InvertTransRotMatrix().
| Vector sofa::helper::gl::Transformation::operator* | ( | Vector | v | ) | const [inline] |
| Transformation & sofa::helper::gl::Transformation::operator= | ( | const Transformation & | transform | ) |
Definition at line 76 of file Transformation.cpp.
References objectCenter, rotation, scale, and translation.
Definition at line 49 of file Transformation.h.
Referenced by ApplyWithCentring(), operator=(), and Transformation().
Definition at line 47 of file Transformation.h.
Referenced by Apply(), ApplyInverse(), sofa::gui::qt::viewer::qt::QtViewer::DrawScene(), sofa::gui::glut::SimpleGUI::DrawScene(), operator*(), operator=(), and Transformation().
Definition at line 46 of file Transformation.h.
Referenced by Apply(), ApplyInverse(), operator*(), operator=(), and Transformation().
Definition at line 45 of file Transformation.h.
Referenced by Apply(), ApplyInverse(), sofa::gui::qt::viewer::qt::QtViewer::ApplySceneTransformation(), sofa::gui::glut::SimpleGUI::ApplySceneTransformation(), sofa::gui::qt::viewer::qt::QtViewer::calcProjection(), sofa::gui::glut::SimpleGUI::calcProjection(), sofa::gui::qt::viewer::qt::QtViewer::mouseEvent(), sofa::gui::glut::SimpleGUI::mouseEvent(), operator*(), operator=(), sofa::gui::qt::viewer::qt::QtViewer::resetView(), sofa::gui::qt::viewer::qt::QtViewer::saveView(), sofa::gui::glut::SimpleGUI::saveView(), sofa::gui::glut::SimpleGUI::SwitchToPresetView(), Transformation(), and sofa::gui::qt::viewer::qt::QtViewer::wheelEvent().
1.5.7.1