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