SourceForge Logo
P.I.G.A.L.E.
1.3.9
Public Implementation of a Graph Algorithm
Library and Editor

H. de Fraysseix      P. Ossona de Mendez

GLControlWidget Class Reference

Inheritance diagram for GLControlWidget:

Inheritance graph
[legend]

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

GLControlWidget ( QWidget *  parent,
QGLWidget *  share = 0 
)


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]

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]

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]

Reimplemented in GLWindow.


Member Data Documentation

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]


Generated on Thu Jan 31 16:51:48 2008 for Pigale by  doxygen 1.5.4