$search
#include <glWidget.h>
Public Slots | |
void | redraw () |
Public Member Functions | |
double | getCamDistance () |
double | getCamPan () |
double | getCamTilt () |
GLWidget (QGLFormat glFormat=QGLFormat(QGL::DoubleBuffer), QWidget *parent=0) | |
QSize | minimumSizeHint () const |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mousePressEvent (QMouseEvent *event) |
virtual void | mouseReleaseEvent (QMouseEvent *event) |
void | pickPoint (int mouse_x, int mouse_y, double *scene_x, double *scene_y) |
void | recenter (void) |
void | requestRedraw (void) |
void | setCameraParams (double zoomSensitivity_, double rotateSensitivity_, double moveSensitivity_, double minZoomRange_, double cameraFov_, double minClipRange_, double maxClipRange_) |
void | setDisplayFunction (DisplayFunction func) |
void | setInitialCameraPos (float pan, float tilt, float range, float xOffset, float yOffset, float zOffset) |
void | setMotionFunction (MotionFunction func) |
void | setMouseFunction (MouseFunction func) |
QSize | sizeHint () const |
~GLWidget () | |
Protected Member Functions | |
void | activate2DMode () |
void | activate3DMode () |
void | init3DMode (int w, int h, double &fovY, double &zNear, double &zFar) |
virtual void | initializeGL () |
void | moveCamera (double dx, double dy) |
virtual void | paintGL () |
virtual void | resizeGL (int width, int height) |
void | rotateCamera (double dx, double dy) |
void | zoomCamera (double dy) |
Protected Attributes | |
float | ambientLight [4] |
double | cameraFov |
cameraPose_t | cameraPose |
float | diffuseLight [4] |
double | fps |
bool | gl_initialized_ |
int | lastMouseX |
int | lastMouseY |
float | lightPosition [4] |
double | maxClipRange |
double | minClipRange |
double | minZoomRange |
double | moveSensitivity |
bool | refresh_required |
double | rotateSensitivity |
float | specularLight [4] |
QTimer | timer |
DisplayFunction | userDisplayFunction |
KeyboardFunction | userKeyboardFunction |
MotionFunction | userMotionFunction |
MouseFunction | userMouseFunction |
int | windowHeight |
int | windowID |
int | windowWidth |
double | zoomSensitivity |
Static Private Attributes | |
static const float | ambientLightDefault [4] = {0, 0, 0, 0} |
static const float | diffuseLightDefault [4] = {1, 1, 1, 1} |
static const float | lightPositionDefault [4] = {0, 0, 100, 0} |
static const float | specularLightDefault [4] = {1, 1, 1, 1} |
Definition at line 85 of file glWidget.h.
vlr::GLWidget::GLWidget | ( | QGLFormat | glFormat = QGLFormat(QGL::DoubleBuffer) , |
|
QWidget * | parent = 0 | |||
) |
Definition at line 51 of file glWidget.cpp.
vlr::GLWidget::~GLWidget | ( | ) |
Definition at line 82 of file glWidget.cpp.
void vlr::GLWidget::activate2DMode | ( | ) | [protected] |
Definition at line 227 of file glWidget.cpp.
void vlr::GLWidget::activate3DMode | ( | ) | [protected] |
Definition at line 209 of file glWidget.cpp.
double vlr::GLWidget::getCamDistance | ( | ) | [inline] |
Definition at line 134 of file glWidget.h.
double vlr::GLWidget::getCamPan | ( | ) | [inline] |
Definition at line 135 of file glWidget.h.
double vlr::GLWidget::getCamTilt | ( | ) | [inline] |
Definition at line 136 of file glWidget.h.
void vlr::GLWidget::init3DMode | ( | int | w, | |
int | h, | |||
double & | fovY, | |||
double & | zNear, | |||
double & | zFar | |||
) | [protected] |
Definition at line 198 of file glWidget.cpp.
void vlr::GLWidget::initializeGL | ( | void | ) | [protected, virtual] |
Reimplemented in vlr::DisplayGL.
Definition at line 164 of file glWidget.cpp.
QSize vlr::GLWidget::minimumSizeHint | ( | ) | const |
Definition at line 84 of file glWidget.cpp.
void vlr::GLWidget::mouseMoveEvent | ( | QMouseEvent * | event | ) | [virtual] |
Reimplemented in vlr::DisplayGL.
Definition at line 267 of file glWidget.cpp.
void vlr::GLWidget::mousePressEvent | ( | QMouseEvent * | event | ) | [virtual] |
Reimplemented in vlr::DisplayGL.
Definition at line 260 of file glWidget.cpp.
void vlr::GLWidget::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [virtual] |
Reimplemented in vlr::DisplayGL.
Definition at line 265 of file glWidget.cpp.
void vlr::GLWidget::moveCamera | ( | double | dx, | |
double | dy | |||
) | [protected] |
Definition at line 130 of file glWidget.cpp.
void vlr::GLWidget::paintGL | ( | void | ) | [protected, virtual] |
Reimplemented in vlr::DisplayGL.
Definition at line 109 of file glWidget.cpp.
void vlr::GLWidget::pickPoint | ( | int | mouse_x, | |
int | mouse_y, | |||
double * | scene_x, | |||
double * | scene_y | |||
) |
Definition at line 243 of file glWidget.cpp.
void vlr::GLWidget::recenter | ( | void | ) |
Definition at line 236 of file glWidget.cpp.
void vlr::GLWidget::redraw | ( | ) | [slot] |
Definition at line 190 of file glWidget.cpp.
void vlr::GLWidget::requestRedraw | ( | void | ) |
Definition at line 188 of file glWidget.cpp.
void vlr::GLWidget::resizeGL | ( | int | width, | |
int | height | |||
) | [protected, virtual] |
Definition at line 94 of file glWidget.cpp.
void vlr::GLWidget::rotateCamera | ( | double | dx, | |
double | dy | |||
) | [protected] |
Definition at line 115 of file glWidget.cpp.
void vlr::GLWidget::setCameraParams | ( | double | zoomSensitivity_, | |
double | rotateSensitivity_, | |||
double | moveSensitivity_, | |||
double | minZoomRange_, | |||
double | cameraFov_, | |||
double | minClipRange_, | |||
double | maxClipRange_ | |||
) |
Definition at line 140 of file glWidget.cpp.
void vlr::GLWidget::setDisplayFunction | ( | DisplayFunction | func | ) |
Definition at line 182 of file glWidget.cpp.
void vlr::GLWidget::setInitialCameraPos | ( | float | pan, | |
float | tilt, | |||
float | range, | |||
float | xOffset, | |||
float | yOffset, | |||
float | zOffset | |||
) |
Definition at line 154 of file glWidget.cpp.
void vlr::GLWidget::setMotionFunction | ( | MotionFunction | func | ) |
Definition at line 186 of file glWidget.cpp.
void vlr::GLWidget::setMouseFunction | ( | MouseFunction | func | ) |
Definition at line 184 of file glWidget.cpp.
QSize vlr::GLWidget::sizeHint | ( | ) | const |
Definition at line 89 of file glWidget.cpp.
void vlr::GLWidget::zoomCamera | ( | double | dy | ) | [protected] |
Definition at line 124 of file glWidget.cpp.
float vlr::GLWidget::ambientLight[4] [protected] |
Definition at line 158 of file glWidget.h.
const float vlr::GLWidget::ambientLightDefault = {0, 0, 0, 0} [static, private] |
Definition at line 165 of file glWidget.h.
double vlr::GLWidget::cameraFov [protected] |
Definition at line 106 of file glWidget.h.
cameraPose_t vlr::GLWidget::cameraPose [protected] |
Definition at line 94 of file glWidget.h.
float vlr::GLWidget::diffuseLight[4] [protected] |
Definition at line 159 of file glWidget.h.
const float vlr::GLWidget::diffuseLightDefault = {1, 1, 1, 1} [static, private] |
Definition at line 166 of file glWidget.h.
double vlr::GLWidget::fps [protected] |
Definition at line 93 of file glWidget.h.
bool vlr::GLWidget::gl_initialized_ [protected] |
Definition at line 162 of file glWidget.h.
int vlr::GLWidget::lastMouseX [protected] |
Definition at line 95 of file glWidget.h.
int vlr::GLWidget::lastMouseY [protected] |
Definition at line 95 of file glWidget.h.
float vlr::GLWidget::lightPosition[4] [protected] |
Definition at line 161 of file glWidget.h.
const float vlr::GLWidget::lightPositionDefault = {0, 0, 100, 0} [static, private] |
Definition at line 168 of file glWidget.h.
double vlr::GLWidget::maxClipRange [protected] |
Definition at line 108 of file glWidget.h.
double vlr::GLWidget::minClipRange [protected] |
Definition at line 107 of file glWidget.h.
double vlr::GLWidget::minZoomRange [protected] |
Definition at line 105 of file glWidget.h.
double vlr::GLWidget::moveSensitivity [protected] |
Definition at line 104 of file glWidget.h.
bool vlr::GLWidget::refresh_required [protected] |
Definition at line 157 of file glWidget.h.
double vlr::GLWidget::rotateSensitivity [protected] |
Definition at line 103 of file glWidget.h.
float vlr::GLWidget::specularLight[4] [protected] |
Definition at line 160 of file glWidget.h.
const float vlr::GLWidget::specularLightDefault = {1, 1, 1, 1} [static, private] |
Definition at line 167 of file glWidget.h.
QTimer vlr::GLWidget::timer [protected] |
Definition at line 90 of file glWidget.h.
DisplayFunction vlr::GLWidget::userDisplayFunction [protected] |
Definition at line 97 of file glWidget.h.
KeyboardFunction vlr::GLWidget::userKeyboardFunction [protected] |
Definition at line 98 of file glWidget.h.
MotionFunction vlr::GLWidget::userMotionFunction [protected] |
Definition at line 100 of file glWidget.h.
MouseFunction vlr::GLWidget::userMouseFunction [protected] |
Definition at line 99 of file glWidget.h.
int vlr::GLWidget::windowHeight [protected] |
Definition at line 92 of file glWidget.h.
int vlr::GLWidget::windowID [protected] |
Definition at line 91 of file glWidget.h.
int vlr::GLWidget::windowWidth [protected] |
Definition at line 92 of file glWidget.h.
double vlr::GLWidget::zoomSensitivity [protected] |
Definition at line 102 of file glWidget.h.