|
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | Trackball () |
| Default constructor.
|
|
| Trackball (const Eigen::Vector2d &_center, double _radius) |
| Constructor.
|
|
void | startBall (double _x, double _y) |
| Set the starting position to the project of (x,y) on the trackball.
|
|
void | updateBall (double _x, double _y) |
| Update the current rotation to rotate from mStartPos to the projection of (x,y) on trackball, then update mStartPos.
|
|
void | applyGLRotation () |
| Apply the current rotation to openGL env.
|
|
void | draw (int _winWidth, int _winHeight) |
| Draw the trackball on screen.
|
|
void | setTrackball (const Eigen::Vector2d &_center, const double _radius) |
|
void | setCenter (const Eigen::Vector2d &_center) |
|
void | setRadius (const double _radius) |
|
void | setQuaternion (const Eigen::Quaterniond &_q) |
|
Eigen::Quaterniond | getCurrQuat () const |
|
Eigen::Matrix3d | getRotationMatrix () const |
|
Eigen::Vector2d | getCenter () const |
|
double | getRadius () const |
|
The documentation for this class was generated from the following files: