SourceForge Logo
GLControlWidget Class Reference
Inheritance diagram for GLControlWidget:
List of all members.
Detailed Description
This class handles the user inputs to perform rotations, translations and zoom. It derives from QGLWidget, the Qt class allowing OpenGL operations
Public Slots
Public Member Functions
Protected Slots
Protected Member Functions
Protected Attributes
Private Attributes
Constructor & Destructor Documentation
Member Function Documentation
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]
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]
set the speed of automatic rotation
Reimplemented in GLWindow.
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]
restore automatic rotation
Reimplemented in GLWindow.
void hideEvent
(
QHideEvent *
e
)
[protected]
stops automatic rotation
Reimplemented in GLWindow.
void animate
(
)
[protected, virtual, slot]
Member Data Documentation
GLfloat
scale [protected]
Generated on Thu Jan 31 16:51:48 2008 for Pigale by
doxygen 1.5.4