
| GLControlWidget | ( | QWidget * | parent, | |
| QGLWidget * | share = 0 | |||
| ) |
| void transform | ( | ) | [virtual] |
apply geometric transform as defined by the translation, rotation and scale values
| void setXRotation | ( | double | degrees | ) | [slot] |
defines the rotation along the X axis
| void setYRotation | ( | double | degrees | ) | [slot] |
defines the rotation along the Y axis
| void setZRotation | ( | double | degrees | ) | [slot] |
defines the rotation along the Z axis
| void setScale | ( | double | s | ) | [slot] |
defines the zoom factor
| void setXTrans | ( | double | x | ) | [slot] |
defines the translation along the X axis
| void setYTrans | ( | double | y | ) | [slot] |
defines the translation along the Y axis
| void setZTrans | ( | double | z | ) | [slot] |
defines the translation along the Z axis
| void setRotationImpulse | ( | double | x, | |
| double | y, | |||
| double | z | |||
| ) | [virtual, slot] |
defines the rotation steps
| void setTranslationImpulse | ( | double | x, | |
| double | y, | |||
| double | z | |||
| ) | [virtual, slot] |
defines the translation steps
| void setAnimationDelay | ( | int | ms | ) | [protected] |
| void mousePressEvent | ( | QMouseEvent * | e | ) | [protected] |
record the mouse position
| void mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected] |
record the mouse position
| void mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected] |
Rotates or translate the picture.
| void mouseDoubleClickEvent | ( | QMouseEvent * | ) | [protected] |
stops or starts automatic rotation
| void wheelEvent | ( | QWheelEvent * | e | ) | [protected] |
used to set the zoom factor
| void keyPressEvent | ( | QKeyEvent * | k | ) | [protected] |
used to set the zoom factor
| void showEvent | ( | QShowEvent * | e | ) | [protected] |
| void hideEvent | ( | QHideEvent * | e | ) | [protected] |
| void animate | ( | ) | [protected, virtual, slot] |
Reimplemented in GLWindow.
GLfloat xRot [protected] |
GLfloat yRot [protected] |
GLfloat zRot [protected] |
GLfloat xTrans [protected] |
GLfloat yTrans [protected] |
GLfloat zTrans [protected] |
GLfloat scale [protected] |
bool animation [protected] |
bool wasAnimated [private] |
QPoint oldPos [private] |
QTimer* timer [private] |
int delay [private] |
1.5.4