Logo Search packages:      
Sourcecode: qantenna version File versions  Download package

GLWidget Class Reference

#include <glwidget.h>

List of all members.


Detailed Description

This class inherits from QGLWidget, and it is used to diaplay the OGL view in the program. It also takes cares of some events, wich it then passes to the class camera.

Definition at line 34 of file glwidget.h.


Public Slots

void makeCurrentGLWidget ()

Signals

void rebuildLists ()
void RenderSurface ()
void setStatus (QString status, int timeout=2000)

Public Member Functions

 GLWidget (QWidget *parent=0)
void makeGrid (GLfloat z, GLfloat size, GLfloat radio)
void renderGrid ()
void setFileRender (bool newVal)
QPixmap snapshot (int width, int height)

Protected Member Functions

void grabInput ()
void initializeGL ()
void keyPressEvent (QKeyEvent *event)
void keyReleaseEvent (QKeyEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void mousePressEvent (QMouseEvent *event)
int movingCount ()
 Number of true elements of movingTo[].
void paintGL ()
void releaseInput ()
void resizeGL (int width, int height)
void stopMoving ()
 make movingTo false
void wheelEvent (QWheelEvent *event)

Private Slots

void sceneTimerEvent ()

Private Attributes

Camera camera
 Camera.
bool fileRender
QPoint grabPos
GLuint gridList
 A list index for the grid.
QPoint lastPos
bool mouseGrabbed
bool movedWhileGrabbed
 Did the camera moved while the input was grabbed.
bool movingTo [movingDirections]
QTimer * sceneTimer

Static Private Attributes

static const int movingDirections = 4
 Key state (WDSA).
static const float sensibility = 0.1
 Mouse Grabbing information.
static const int timerDelay = 13
static const float zoomStep = 0.1
 Step for changing camera.rhoOrbit (with the mouse wheel).

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index