Public Member Functions | Protected Slots | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
RenderingWidget Class Reference

#include <quaternion_demo.h>

List of all members.

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, FrameTimeLine
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

Detailed Description

Definition at line 37 of file quaternion_demo.h.


Member Typedef Documentation

typedef std::map<float,Frame> RenderingWidget::TimeLine [private]

Definition at line 41 of file quaternion_demo.h.


Member Enumeration Documentation

enum RenderingWidget::LerpMode [private]
Enumerator:
LerpQuaternion 
LerpEulerAngles 

Definition at line 59 of file quaternion_demo.h.

enum RenderingWidget::NavMode [private]
Enumerator:
NavTurnAround 
NavFly 

Definition at line 54 of file quaternion_demo.h.

Enumerator:
RotationStable 
RotationStandard 

Definition at line 64 of file quaternion_demo.h.

Enumerator:
TM_NO_TRACK 
TM_ROTATE_AROUND 
TM_ZOOM 
TM_LOCAL_ROTATE 
TM_FLY_Z 
TM_FLY_PAN 

Definition at line 49 of file quaternion_demo.h.


Constructor & Destructor Documentation

Definition at line 212 of file quaternion_demo.cpp.

Definition at line 115 of file quaternion_demo.h.


Member Function Documentation

void RenderingWidget::animate ( void  ) [protected, virtual, slot]

Definition at line 284 of file quaternion_demo.cpp.

Definition at line 566 of file quaternion_demo.cpp.

void RenderingWidget::drawScene ( void  ) [protected, virtual, slot]

Definition at line 243 of file quaternion_demo.cpp.

void RenderingWidget::grabFrame ( void  ) [protected, virtual, slot]

Definition at line 225 of file quaternion_demo.cpp.

void RenderingWidget::initializeGL ( ) [protected, virtual]

Definition at line 492 of file quaternion_demo.cpp.

void RenderingWidget::keyPressEvent ( QKeyEvent *  e) [protected, virtual]

Definition at line 327 of file quaternion_demo.cpp.

Frame RenderingWidget::lerpFrame ( float  t) [private]
void RenderingWidget::mouseMoveEvent ( QMouseEvent *  e) [protected, virtual]

Definition at line 416 of file quaternion_demo.cpp.

void RenderingWidget::mousePressEvent ( QMouseEvent *  e) [protected, virtual]

Definition at line 378 of file quaternion_demo.cpp.

void RenderingWidget::mouseReleaseEvent ( QMouseEvent *  e) [protected, virtual]

Definition at line 410 of file quaternion_demo.cpp.

void RenderingWidget::paintGL ( ) [protected, virtual]

Definition at line 472 of file quaternion_demo.cpp.

void RenderingWidget::resetCamera ( ) [protected, virtual, slot]

Definition at line 525 of file quaternion_demo.cpp.

void RenderingWidget::resizeGL ( int  width,
int  height 
) [protected, virtual]

Definition at line 505 of file quaternion_demo.cpp.

void RenderingWidget::setLerpMode ( int  m) [protected, virtual, slot]

Definition at line 515 of file quaternion_demo.cpp.

void RenderingWidget::setNavMode ( int  m) [protected, virtual, slot]

Definition at line 510 of file quaternion_demo.cpp.

void RenderingWidget::setRotationMode ( int  m) [protected, virtual, slot]

Definition at line 520 of file quaternion_demo.cpp.

void RenderingWidget::setupCamera ( ) [private]
void RenderingWidget::stopAnimation ( ) [protected, virtual, slot]

Definition at line 370 of file quaternion_demo.cpp.


Member Data Documentation

float RenderingWidget::m_alpha [private]

Definition at line 47 of file quaternion_demo.h.

Definition at line 42 of file quaternion_demo.h.

QTimer RenderingWidget::m_timer [private]

Definition at line 77 of file quaternion_demo.h.

bool RenderingWidget::mAnimate [private]

Definition at line 46 of file quaternion_demo.h.

Definition at line 69 of file quaternion_demo.h.

Definition at line 70 of file quaternion_demo.h.

Definition at line 83 of file quaternion_demo.h.

Definition at line 45 of file quaternion_demo.h.

Definition at line 72 of file quaternion_demo.h.

Vector2i RenderingWidget::mMouseCoords [private]

Definition at line 74 of file quaternion_demo.h.

Definition at line 71 of file quaternion_demo.h.

Definition at line 82 of file quaternion_demo.h.

Definition at line 73 of file quaternion_demo.h.

Definition at line 75 of file quaternion_demo.h.

Definition at line 81 of file quaternion_demo.h.


The documentation for this class was generated from the following files:


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:34:24