#include <CPlayerRenderer.h>
Public Member Functions | |
CPlayerRenderer (QGLViewer *) | |
~CPlayerRenderer () | |
QGLViewer * | getViewer (void) |
void | MakeGlList () |
Private Slots | |
void | sltInitializeGL () |
void | sltResizeGL (int w, int h) |
void | sltPaintGL () |
void | sltManageSelection (QMouseEvent *pqEvent) |
void | sltManageRelease (QMouseEvent *pqEvent) |
void | sltManageMove (QMouseEvent *pqEvent) |
void | sltCatchKey (int) |
void | sltResetSelection () |
Private Member Functions | |
GLuint | processHits (GLint hits, GLuint buffer[]) |
void | renderScene (void) |
void | renderSolidSphere (const CP3D &cCenter, float radius, int n1, int n2, float lw=2.5) |
void | renderWireSphere (const CP3D &cCenter, float radius, int n1, int n2, float lw=2.5) |
Private Attributes | |
QGLViewer * | m_pViewer |
GLuint | m_glDispList |
bool | m_afSelected [12] |
bool | m_fLeftButtonPressed |
bool | m_fMiddleButtonPressed |
bool | m_fRightButtonPressed |
CP3D | m_cSphereCenter [12] |
int | m_nMousePosX |
int | m_nMousePosY |
|
|
|
|
|
|
|
|
|
Method processes the hits using GL selection mode. |
|
Renders this nice sphere scene. |
|
Renders a solid sphere at the given location with given radius. |
|
Renders a wire sphere at the given location with given radius. |
|
New slot which catches any key signal emitted by the viewer. |
|
Overloads the slot for GL initialization. |
|
Manages the move events in selection mode. |
|
Manages the release events in selection mode. |
|
Manages the select events in selection mode. |
|
Overloads the slot for GL paint. |
|
Slot to reset selection for example after the render mode has changed. |
|
Overloads the slot for GL resize. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|