#include <gl_trackball.h>
Public Types | |
typedef math_types::real_type | real_type |
typedef OpenTissue::utility::trackball::Trackball < real_type > | trackball_type |
typedef math_types::vector3_type | vector3_type |
typedef math_types::matrix3x3_type | matrix3x3_type |
typedef math_types::quaternion_type | quaternion_type |
typedef trackball_type::gl_transform_type | gl_transform_type |
Public Member Functions | |
matrix3x3_type const & | get_current_rotation () |
gl_transform_type const & | get_gl_current_transform () |
matrix3x3_type const & | get_incremental_rotation () const |
TrackBall () | |
void | mouse_down (real_type const &sx, real_type const &sy) |
void | mouse_up (real_type const &sx, real_type const &sy) |
void | mouse_move (real_type const &sx, real_type const &sy) |
Protected Member Functions | |
void | normalize (real_type const &sx, real_type const &sy, real_type &nx, real_type &ny) |
Protected Attributes | |
real_type | m_radius |
trackball_type | m_trackball |
gl_transform_type | m_trackball_matrix |
Trackball rotation, stored in column major form. |
Higher-Level OpenGL Trackball Implementation.
typedef trackball_type::gl_transform_type OpenTissue::gl::TrackBall< math_types >::gl_transform_type |
typedef math_types::matrix3x3_type OpenTissue::gl::TrackBall< math_types >::matrix3x3_type |
Reimplemented in OpenTissue::gl::Camera< math_types >.
typedef math_types::quaternion_type OpenTissue::gl::TrackBall< math_types >::quaternion_type |
typedef math_types::real_type OpenTissue::gl::TrackBall< math_types >::real_type |
Reimplemented in OpenTissue::gl::Camera< math_types >.
typedef OpenTissue::utility::trackball::Trackball<real_type> OpenTissue::gl::TrackBall< math_types >::trackball_type |
typedef math_types::vector3_type OpenTissue::gl::TrackBall< math_types >::vector3_type |
Reimplemented in OpenTissue::gl::Camera< math_types >.
OpenTissue::gl::TrackBall< math_types >::TrackBall | ( | ) | [inline] |
matrix3x3_type const& OpenTissue::gl::TrackBall< math_types >::get_current_rotation | ( | ) | [inline] |
gl_transform_type const& OpenTissue::gl::TrackBall< math_types >::get_gl_current_transform | ( | ) | [inline] |
matrix3x3_type const& OpenTissue::gl::TrackBall< math_types >::get_incremental_rotation | ( | ) | const [inline] |
void OpenTissue::gl::TrackBall< math_types >::mouse_down | ( | real_type const & | sx, | |
real_type const & | sy | |||
) | [inline] |
void OpenTissue::gl::TrackBall< math_types >::mouse_move | ( | real_type const & | sx, | |
real_type const & | sy | |||
) | [inline] |
void OpenTissue::gl::TrackBall< math_types >::mouse_up | ( | real_type const & | sx, | |
real_type const & | sy | |||
) | [inline] |
void OpenTissue::gl::TrackBall< math_types >::normalize | ( | real_type const & | sx, | |
real_type const & | sy, | |||
real_type & | nx, | |||
real_type & | ny | |||
) | [inline, protected] |
real_type OpenTissue::gl::TrackBall< math_types >::m_radius [protected] |
trackball_type OpenTissue::gl::TrackBall< math_types >::m_trackball [protected] |
gl_transform_type OpenTissue::gl::TrackBall< math_types >::m_trackball_matrix [protected] |
Trackball rotation, stored in column major form.