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