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

◆ TimeLine

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

Definition at line 26 of file quaternion_demo.h.

Member Enumeration Documentation

◆ LerpMode

Enumerator
LerpQuaternion 
LerpEulerAngles 

Definition at line 44 of file quaternion_demo.h.

◆ NavMode

Enumerator
NavTurnAround 
NavFly 

Definition at line 39 of file quaternion_demo.h.

◆ RotationMode

Enumerator
RotationStable 
RotationStandard 

Definition at line 49 of file quaternion_demo.h.

◆ TrackMode

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::RenderingWidget ( )

Definition at line 197 of file quaternion_demo.cpp.

◆ ~RenderingWidget()

RenderingWidget::~RenderingWidget ( )
inline

Definition at line 100 of file quaternion_demo.h.

Member Function Documentation

◆ animate

void RenderingWidget::animate ( void  )
protectedvirtualslot

Definition at line 269 of file quaternion_demo.cpp.

◆ createNavigationControlWidget()

QWidget * RenderingWidget::createNavigationControlWidget ( )

Definition at line 551 of file quaternion_demo.cpp.

◆ drawScene

void RenderingWidget::drawScene ( void  )
protectedvirtualslot

Definition at line 228 of file quaternion_demo.cpp.

◆ grabFrame

void RenderingWidget::grabFrame ( void  )
protectedvirtualslot

Definition at line 210 of file quaternion_demo.cpp.

◆ initializeGL()

void RenderingWidget::initializeGL ( )
protectedvirtual

Definition at line 477 of file quaternion_demo.cpp.

◆ keyPressEvent()

void RenderingWidget::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Definition at line 312 of file quaternion_demo.cpp.

◆ lerpFrame()

Frame RenderingWidget::lerpFrame ( float  t)
private

◆ mouseMoveEvent()

void RenderingWidget::mouseMoveEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 401 of file quaternion_demo.cpp.

◆ mousePressEvent()

void RenderingWidget::mousePressEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 363 of file quaternion_demo.cpp.

◆ mouseReleaseEvent()

void RenderingWidget::mouseReleaseEvent ( QMouseEvent *  e)
protectedvirtual

Definition at line 395 of file quaternion_demo.cpp.

◆ paintGL()

void RenderingWidget::paintGL ( )
protectedvirtual

Definition at line 457 of file quaternion_demo.cpp.

◆ resetCamera

void RenderingWidget::resetCamera ( )
protectedvirtualslot

Definition at line 510 of file quaternion_demo.cpp.

◆ resizeGL()

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

Definition at line 490 of file quaternion_demo.cpp.

◆ setLerpMode

void RenderingWidget::setLerpMode ( int  m)
protectedvirtualslot

Definition at line 500 of file quaternion_demo.cpp.

◆ setNavMode

void RenderingWidget::setNavMode ( int  m)
protectedvirtualslot

Definition at line 495 of file quaternion_demo.cpp.

◆ setRotationMode

void RenderingWidget::setRotationMode ( int  m)
protectedvirtualslot

Definition at line 505 of file quaternion_demo.cpp.

◆ setupCamera()

void RenderingWidget::setupCamera ( )
private

◆ stopAnimation

void RenderingWidget::stopAnimation ( )
protectedvirtualslot

Definition at line 355 of file quaternion_demo.cpp.

Member Data Documentation

◆ m_alpha

float RenderingWidget::m_alpha
private

Definition at line 32 of file quaternion_demo.h.

◆ m_timeline

TimeLine RenderingWidget::m_timeline
private

Definition at line 27 of file quaternion_demo.h.

◆ m_timer

QTimer RenderingWidget::m_timer
private

Definition at line 62 of file quaternion_demo.h.

◆ mAnimate

bool RenderingWidget::mAnimate
private

Definition at line 31 of file quaternion_demo.h.

◆ mCamera

Camera RenderingWidget::mCamera
private

Definition at line 54 of file quaternion_demo.h.

◆ mCurrentTrackingMode

TrackMode RenderingWidget::mCurrentTrackingMode
private

Definition at line 55 of file quaternion_demo.h.

◆ mIndices

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

Definition at line 68 of file quaternion_demo.h.

◆ mInitFrame

Frame RenderingWidget::mInitFrame
private

Definition at line 30 of file quaternion_demo.h.

◆ mLerpMode

LerpMode RenderingWidget::mLerpMode
private

Definition at line 57 of file quaternion_demo.h.

◆ mMouseCoords

Vector2i RenderingWidget::mMouseCoords
private

Definition at line 59 of file quaternion_demo.h.

◆ mNavMode

NavMode RenderingWidget::mNavMode
private

Definition at line 56 of file quaternion_demo.h.

◆ mNormals

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

Definition at line 67 of file quaternion_demo.h.

◆ mRotationMode

RotationMode RenderingWidget::mRotationMode
private

Definition at line 58 of file quaternion_demo.h.

◆ mTrackball

Trackball RenderingWidget::mTrackball
private

Definition at line 60 of file quaternion_demo.h.

◆ mVertices

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 Tue Jul 4 2023 02:41:03