#include <CEditorRenderer.h>
Public Member Functions | |
CEditorRenderer (QGLViewer *, QCameraKeyPathEditorImpl *) | |
~CEditorRenderer () | |
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 | 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 |
QCameraKeyPathEditorImpl * | m_pCameraEditor |
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 |
CEditorRenderer::CEditorRenderer | ( | QGLViewer * | , | |
QCameraKeyPathEditorImpl * | ||||
) |
CEditorRenderer::~CEditorRenderer | ( | ) |
QGLViewer* CEditorRenderer::getViewer | ( | void | ) | [inline] |
void CEditorRenderer::MakeGlList | ( | ) |
GLuint CEditorRenderer::processHits | ( | GLint | hits, | |
GLuint | buffer[] | |||
) | [private] |
Method processes the hits using GL selection mode.
void CEditorRenderer::renderScene | ( | void | ) | [private] |
Renders this nice sphere scene.
void CEditorRenderer::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 CEditorRenderer::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 CEditorRenderer::sltInitializeGL | ( | ) | [private, slot] |
Overloads the slot for GL initialization.
void CEditorRenderer::sltManageMove | ( | QMouseEvent * | pqEvent | ) | [private, slot] |
Manages the move events in selection mode.
void CEditorRenderer::sltManageRelease | ( | QMouseEvent * | pqEvent | ) | [private, slot] |
Manages the release events in selection mode.
void CEditorRenderer::sltManageSelection | ( | QMouseEvent * | pqEvent | ) | [private, slot] |
Manages the select events in selection mode.
void CEditorRenderer::sltPaintGL | ( | ) | [private, slot] |
Overloads the slot for GL paint.
void CEditorRenderer::sltResetSelection | ( | ) | [private, slot] |
Slot to reset selection for example after the render mode has changed.
void CEditorRenderer::sltResizeGL | ( | int | w, | |
int | h | |||
) | [private, slot] |
Overloads the slot for GL resize.
bool CEditorRenderer::m_afSelected[12] [private] |
CP3D CEditorRenderer::m_cSphereCenter[12] [private] |
bool CEditorRenderer::m_fLeftButtonPressed [private] |
bool CEditorRenderer::m_fMiddleButtonPressed [private] |
bool CEditorRenderer::m_fRightButtonPressed [private] |
GLuint CEditorRenderer::m_glDispList [private] |
int CEditorRenderer::m_nMousePosX [private] |
int CEditorRenderer::m_nMousePosY [private] |
QGLViewer* CEditorRenderer::m_pViewer [private] |