Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

OpenTissue::gl::TrackBall< math_types > Class Template Reference

#include <gl_trackball.h>

Inheritance diagram for OpenTissue::gl::TrackBall< math_types >:
OpenTissue::gl::Camera< math_types >

List of all members.

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.

Detailed Description

template<typename math_types>
class OpenTissue::gl::TrackBall< math_types >

Higher-Level OpenGL Trackball Implementation.


Member Typedef Documentation


Constructor & Destructor Documentation

template<typename math_types>
OpenTissue::gl::TrackBall< math_types >::TrackBall (  )  [inline]

Member Function Documentation

template<typename math_types>
matrix3x3_type const& OpenTissue::gl::TrackBall< math_types >::get_current_rotation (  )  [inline]
template<typename math_types>
gl_transform_type const& OpenTissue::gl::TrackBall< math_types >::get_gl_current_transform (  )  [inline]
template<typename math_types>
matrix3x3_type const& OpenTissue::gl::TrackBall< math_types >::get_incremental_rotation (  )  const [inline]
template<typename math_types>
void OpenTissue::gl::TrackBall< math_types >::mouse_down ( real_type const &  sx,
real_type const &  sy 
) [inline]
template<typename math_types>
void OpenTissue::gl::TrackBall< math_types >::mouse_move ( real_type const &  sx,
real_type const &  sy 
) [inline]
template<typename math_types>
void OpenTissue::gl::TrackBall< math_types >::mouse_up ( real_type const &  sx,
real_type const &  sy 
) [inline]
template<typename math_types>
void OpenTissue::gl::TrackBall< math_types >::normalize ( real_type const &  sx,
real_type const &  sy,
real_type nx,
real_type ny 
) [inline, protected]

Member Data Documentation

template<typename math_types>
real_type OpenTissue::gl::TrackBall< math_types >::m_radius [protected]
template<typename math_types>
trackball_type OpenTissue::gl::TrackBall< math_types >::m_trackball [protected]
template<typename math_types>
gl_transform_type OpenTissue::gl::TrackBall< math_types >::m_trackball_matrix [protected]

Trackball rotation, stored in column major form.


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