#include <trackball.h>
Public Member Functions | |
void | getRotationMatrix (float(&rot)[MATRIX_SIZE]) |
TrackBall & | operator= (const TrackBall &rhs) |
void | reset () |
void | start (int s_x, int s_y) |
TrackBall () | |
TrackBall (const TrackBall ©) | |
void | update (int s_x, int s_y) |
~TrackBall () | |
Private Member Functions | |
void | getPointFromScreenPoint (int s_x, int s_y, float &x, float &y, float &z) |
Private Attributes | |
float | origin_x_ |
the original mouse screen coordinates converted to a 3d point | |
float | origin_y_ |
float | origin_z_ |
boost::math::quaternion< float > | quat_ |
the quaternion representing the current orientation of the trackball | |
float | radius_sqr_ |
the radius of the trackball squared |
Definition at line 47 of file trackball.h.
Definition at line 46 of file trackball.cpp.
TrackBall::TrackBall | ( | const TrackBall & | copy | ) |
Definition at line 52 of file trackball.cpp.
Definition at line 59 of file trackball.cpp.
void TrackBall::getPointFromScreenPoint | ( | int | s_x, |
int | s_y, | ||
float & | x, | ||
float & | y, | ||
float & | z | ||
) | [private] |
Definition at line 223 of file trackball.cpp.
void TrackBall::getRotationMatrix | ( | float(&) | rot[MATRIX_SIZE] | ) |
Definition at line 177 of file trackball.cpp.
Definition at line 65 of file trackball.cpp.
void TrackBall::reset | ( | ) |
Definition at line 217 of file trackball.cpp.
void TrackBall::start | ( | int | s_x, |
int | s_y | ||
) |
Definition at line 76 of file trackball.cpp.
void TrackBall::update | ( | int | s_x, |
int | s_y | ||
) |
Definition at line 136 of file trackball.cpp.
float TrackBall::origin_x_ [private] |
the original mouse screen coordinates converted to a 3d point
Definition at line 72 of file trackball.h.
float TrackBall::origin_y_ [private] |
Definition at line 72 of file trackball.h.
float TrackBall::origin_z_ [private] |
Definition at line 72 of file trackball.h.
boost::math::quaternion<float> TrackBall::quat_ [private] |
the quaternion representing the current orientation of the trackball
Definition at line 69 of file trackball.h.
float TrackBall::radius_sqr_ [private] |
the radius of the trackball squared
Definition at line 75 of file trackball.h.