#include <Trackball.h>

Public Member Functions | |
| Trackball () | |
| ~Trackball () | |
| void | SetQuaternion (sofa::defaulttype::Quaternion Q) |
| sofa::defaulttype::Quaternion | GetQuaternion (void) |
| void | ComputeQuaternion (double p1x, double p1y, double p2x, double p2y) |
| void | AxisToQuat (double a[3], double phi, double q[4]) |
Private Attributes | |
| sofa::defaulttype::Quaternion | _quat |
Definition at line 91 of file Trackball.h.
| sofa::helper::gl::Trackball::Trackball | ( | ) |
| sofa::helper::gl::Trackball::~Trackball | ( | ) |
Definition at line 111 of file Trackball.cpp.
| void sofa::helper::gl::Trackball::AxisToQuat | ( | double | a[3], | |
| double | phi, | |||
| double | q[4] | |||
| ) |
| void sofa::helper::gl::Trackball::ComputeQuaternion | ( | double | p1x, | |
| double | p1y, | |||
| double | p2x, | |||
| double | p2y | |||
| ) |
Definition at line 148 of file Trackball.cpp.
References _quat, sofa::helper::Quater< Real >::axisToQuat(), cross(), sofa::defaulttype::Vec< N, real >::norm(), sofa::helper::gl::tb_project_to_sphere(), and TRACKBALLSIZE.
Referenced by sofa::gui::qt::viewer::qt::QtViewer::ApplyMouseInteractorTransformation(), sofa::gui::glut::SimpleGUI::ApplyMouseInteractorTransformation(), sofa::gui::qt::viewer::qt::QtViewer::ApplySceneTransformation(), sofa::gui::glut::SimpleGUI::ApplySceneTransformation(), sofa::gui::qt::viewer::qt::QtViewer::mouseEvent(), sofa::gui::glut::SimpleGUI::mouseEvent(), sofa::gui::qt::viewer::qt::QtViewer::QtViewer(), and sofa::gui::glut::SimpleGUI::SimpleGUI().
| Quaternion sofa::helper::gl::Trackball::GetQuaternion | ( | void | ) |
Definition at line 115 of file Trackball.cpp.
References _quat.
Referenced by sofa::gui::qt::viewer::qt::QtViewer::ApplyMouseInteractorTransformation(), sofa::gui::glut::SimpleGUI::ApplyMouseInteractorTransformation(), sofa::gui::qt::viewer::qt::QtViewer::ApplySceneTransformation(), sofa::gui::glut::SimpleGUI::ApplySceneTransformation(), sofa::gui::qt::viewer::qt::QtViewer::mouseEvent(), sofa::gui::glut::SimpleGUI::mouseEvent(), sofa::gui::qt::viewer::qt::QtViewer::QtViewer(), and sofa::gui::glut::SimpleGUI::SimpleGUI().
| void sofa::helper::gl::Trackball::SetQuaternion | ( | sofa::defaulttype::Quaternion | Q | ) |
Definition at line 115 of file Trackball.h.
Referenced by ComputeQuaternion(), GetQuaternion(), SetQuaternion(), and Trackball().
1.5.7.1