#include <arcball.h>
List of all members.
Detailed Description
The ArcBall class defines tools for rotating and viewing three-dimensional images.
When viewing three-dimensional objects there are many different ways to choose a viewpoint. The basic principle is to create a sphere around a chosen object and then, by choosing a point on that sphere, drag that point to a different location and have the object rotate in a way defined by a rotation around the arc-ball.
Rotations are mapped onto a quaternion.
Constructor & Destructor Documentation
ArcBall::~ArcBall |
( |
) |
[inline] |
Member Function Documentation
void ArcBall::click |
( |
QVector2D |
mousePt ) |
|
void ArcBall::drag |
( |
QVector2D |
mousePt ) |
|
QQuaternion ArcBall::get_quaternion |
( |
QVector3D |
v1, |
|
|
QVector3D |
v2 |
|
) |
| |
QVector3D ArcBall::mapToSphere |
( |
QVector2D |
mousePt ) |
[inline, protected] |
void ArcBall::set_bounds |
( |
int |
width, |
|
|
int |
height |
|
) |
| [inline] |
Set the bounds to this width and this height.
Member Data Documentation
The documentation for this class was generated from the following file: