#include <quaternion_demo.h>
Public Member Functions | |
QWidget * | createNavigationControlWidget () |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | RenderingWidget () |
~RenderingWidget () | |
Protected Slots | |
virtual void | animate (void) |
virtual void | drawScene (void) |
virtual void | grabFrame (void) |
virtual void | resetCamera () |
virtual void | setLerpMode (int) |
virtual void | setNavMode (int) |
virtual void | setRotationMode (int) |
virtual void | stopAnimation () |
Protected Member Functions | |
virtual void | initializeGL () |
virtual void | keyPressEvent (QKeyEvent *e) |
virtual void | mouseMoveEvent (QMouseEvent *e) |
virtual void | mousePressEvent (QMouseEvent *e) |
virtual void | mouseReleaseEvent (QMouseEvent *e) |
virtual void | paintGL () |
virtual void | resizeGL (int width, int height) |
Private Types | |
enum | LerpMode { LerpQuaternion, LerpEulerAngles } |
enum | NavMode { NavTurnAround, NavFly } |
enum | RotationMode { RotationStable, RotationStandard } |
typedef std::map< float, Frame > | TimeLine |
enum | TrackMode { TM_NO_TRACK =0, TM_ROTATE_AROUND, TM_ZOOM, TM_LOCAL_ROTATE, TM_FLY_Z, TM_FLY_PAN } |
Private Member Functions | |
Frame | lerpFrame (float t) |
void | setupCamera () |
Private Attributes | |
float | m_alpha |
TimeLine | m_timeline |
QTimer | m_timer |
bool | mAnimate |
Camera | mCamera |
TrackMode | mCurrentTrackingMode |
std::vector< int > | mIndices |
Frame | mInitFrame |
LerpMode | mLerpMode |
Vector2i | mMouseCoords |
NavMode | mNavMode |
std::vector< Vector3f > | mNormals |
RotationMode | mRotationMode |
Trackball | mTrackball |
std::vector< Vector3f > | mVertices |
Definition at line 22 of file quaternion_demo.h.
|
private |
Definition at line 26 of file quaternion_demo.h.
|
private |
Enumerator | |
---|---|
LerpQuaternion | |
LerpEulerAngles |
Definition at line 44 of file quaternion_demo.h.
|
private |
Enumerator | |
---|---|
NavTurnAround | |
NavFly |
Definition at line 39 of file quaternion_demo.h.
|
private |
Enumerator | |
---|---|
RotationStable | |
RotationStandard |
Definition at line 49 of file quaternion_demo.h.
|
private |
Enumerator | |
---|---|
TM_NO_TRACK | |
TM_ROTATE_AROUND | |
TM_ZOOM | |
TM_LOCAL_ROTATE | |
TM_FLY_Z | |
TM_FLY_PAN |
Definition at line 34 of file quaternion_demo.h.
RenderingWidget::RenderingWidget | ( | ) |
Definition at line 197 of file quaternion_demo.cpp.
|
inline |
Definition at line 100 of file quaternion_demo.h.
|
protectedvirtualslot |
Definition at line 269 of file quaternion_demo.cpp.
QWidget * RenderingWidget::createNavigationControlWidget | ( | ) |
Definition at line 551 of file quaternion_demo.cpp.
|
protectedvirtualslot |
Definition at line 228 of file quaternion_demo.cpp.
|
protectedvirtualslot |
Definition at line 210 of file quaternion_demo.cpp.
|
protectedvirtual |
Definition at line 477 of file quaternion_demo.cpp.
|
protectedvirtual |
Definition at line 312 of file quaternion_demo.cpp.
|
private |
|
protectedvirtual |
Definition at line 401 of file quaternion_demo.cpp.
|
protectedvirtual |
Definition at line 363 of file quaternion_demo.cpp.
|
protectedvirtual |
Definition at line 395 of file quaternion_demo.cpp.
|
protectedvirtual |
Definition at line 457 of file quaternion_demo.cpp.
|
protectedvirtualslot |
Definition at line 510 of file quaternion_demo.cpp.
Definition at line 490 of file quaternion_demo.cpp.
|
protectedvirtualslot |
Definition at line 500 of file quaternion_demo.cpp.
|
protectedvirtualslot |
Definition at line 495 of file quaternion_demo.cpp.
|
protectedvirtualslot |
Definition at line 505 of file quaternion_demo.cpp.
|
private |
|
protectedvirtualslot |
Definition at line 355 of file quaternion_demo.cpp.
|
private |
Definition at line 32 of file quaternion_demo.h.
|
private |
Definition at line 27 of file quaternion_demo.h.
|
private |
Definition at line 62 of file quaternion_demo.h.
|
private |
Definition at line 31 of file quaternion_demo.h.
|
private |
Definition at line 54 of file quaternion_demo.h.
|
private |
Definition at line 55 of file quaternion_demo.h.
|
private |
Definition at line 68 of file quaternion_demo.h.
|
private |
Definition at line 30 of file quaternion_demo.h.
|
private |
Definition at line 57 of file quaternion_demo.h.
|
private |
Definition at line 59 of file quaternion_demo.h.
|
private |
Definition at line 56 of file quaternion_demo.h.
|
private |
Definition at line 67 of file quaternion_demo.h.
|
private |
Definition at line 58 of file quaternion_demo.h.
|
private |
Definition at line 60 of file quaternion_demo.h.
|
private |
Definition at line 66 of file quaternion_demo.h.