Public Member Functions | Protected Slots | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
RenderingWidget Class Reference

#include <quaternion_demo.h>

Inheritance diagram for RenderingWidget:
Inheritance graph
[legend]

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< intmIndices
 
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 22 of file quaternion_demo.h.

Member Typedef Documentation

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

Definition at line 26 of file quaternion_demo.h.

Member Enumeration Documentation

Enumerator
LerpQuaternion 
LerpEulerAngles 

Definition at line 44 of file quaternion_demo.h.

Enumerator
NavTurnAround 
NavFly 

Definition at line 39 of file quaternion_demo.h.

Enumerator
RotationStable 
RotationStandard 

Definition at line 49 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 34 of file quaternion_demo.h.

Constructor & Destructor Documentation

RenderingWidget::RenderingWidget ( )

Definition at line 197 of file quaternion_demo.cpp.

RenderingWidget::~RenderingWidget ( )
inline

Definition at line 100 of file quaternion_demo.h.

Member Function Documentation

void RenderingWidget::animate ( void  )
protectedvirtualslot

Definition at line 269 of file quaternion_demo.cpp.

QWidget * RenderingWidget::createNavigationControlWidget ( )

Definition at line 551 of file quaternion_demo.cpp.

void RenderingWidget::drawScene ( void  )
protectedvirtualslot

Definition at line 228 of file quaternion_demo.cpp.

void RenderingWidget::grabFrame ( void  )
protectedvirtualslot

Definition at line 210 of file quaternion_demo.cpp.

void RenderingWidget::initializeGL ( )
protectedvirtual

Definition at line 477 of file quaternion_demo.cpp.

void RenderingWidget::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Definition at line 312 of file quaternion_demo.cpp.

Frame RenderingWidget::lerpFrame ( float  t)
private
void RenderingWidget::mouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 401 of file quaternion_demo.cpp.

void RenderingWidget::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 363 of file quaternion_demo.cpp.

void RenderingWidget::mouseReleaseEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 395 of file quaternion_demo.cpp.

void RenderingWidget::paintGL ( )
protectedvirtual

Definition at line 457 of file quaternion_demo.cpp.

void RenderingWidget::resetCamera ( )
protectedvirtualslot

Definition at line 510 of file quaternion_demo.cpp.

void RenderingWidget::resizeGL ( int  width,
int  height 
)
protectedvirtual

Definition at line 490 of file quaternion_demo.cpp.

void RenderingWidget::setLerpMode ( int  m)
protectedvirtualslot

Definition at line 500 of file quaternion_demo.cpp.

void RenderingWidget::setNavMode ( int  m)
protectedvirtualslot

Definition at line 495 of file quaternion_demo.cpp.

void RenderingWidget::setRotationMode ( int  m)
protectedvirtualslot

Definition at line 505 of file quaternion_demo.cpp.

void RenderingWidget::setupCamera ( )
private
void RenderingWidget::stopAnimation ( )
protectedvirtualslot

Definition at line 355 of file quaternion_demo.cpp.

Member Data Documentation

float RenderingWidget::m_alpha
private

Definition at line 32 of file quaternion_demo.h.

TimeLine RenderingWidget::m_timeline
private

Definition at line 27 of file quaternion_demo.h.

QTimer RenderingWidget::m_timer
private

Definition at line 62 of file quaternion_demo.h.

bool RenderingWidget::mAnimate
private

Definition at line 31 of file quaternion_demo.h.

Camera RenderingWidget::mCamera
private

Definition at line 54 of file quaternion_demo.h.

TrackMode RenderingWidget::mCurrentTrackingMode
private

Definition at line 55 of file quaternion_demo.h.

std::vector<int> RenderingWidget::mIndices
private

Definition at line 68 of file quaternion_demo.h.

Frame RenderingWidget::mInitFrame
private

Definition at line 30 of file quaternion_demo.h.

LerpMode RenderingWidget::mLerpMode
private

Definition at line 57 of file quaternion_demo.h.

Vector2i RenderingWidget::mMouseCoords
private

Definition at line 59 of file quaternion_demo.h.

NavMode RenderingWidget::mNavMode
private

Definition at line 56 of file quaternion_demo.h.

std::vector<Vector3f> RenderingWidget::mNormals
private

Definition at line 67 of file quaternion_demo.h.

RotationMode RenderingWidget::mRotationMode
private

Definition at line 58 of file quaternion_demo.h.

Trackball RenderingWidget::mTrackball
private

Definition at line 60 of file quaternion_demo.h.

std::vector<Vector3f> RenderingWidget::mVertices
private

Definition at line 66 of file quaternion_demo.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:49