GLC_FlyMover Class Reference

GLC_FlyMover : Fly Mode interactive manipulation. More...

#include <glc_flymover.h>

Inheritance diagram for GLC_FlyMover:
GLC_Mover

List of all members.

Public Member Functions

Constructor / Destructor

 GLC_FlyMover (GLC_Viewport *, const QList< GLC_RepMover * > &repsList=QList< GLC_RepMover * >())
 Default constructor.
 GLC_FlyMover (const GLC_FlyMover &flyMover)
 Copy constructor.
virtual ~GLC_FlyMover ()
 Destructor.
Get Functions

virtual GLC_Moverclone () const
 Return a clone of the mover.
double turningRate () const
 Return the turning rate in degres.
double flyingVelocity () const
 Return the flying velocity.
Set Functions

virtual void init (QMouseEvent *e)
 Initialized the mover.
virtual bool move (QMouseEvent *e)
 Move the camera.
virtual void ends ()
 Ends this mover.
void setMaximumTurnRate (double turnRate)
 Set the maximum turning rate in degre.
void setFlyingVelocity (double velocity)
 Set the flying velocity.
void increaseVelocity (double factor)
 increase the flying velocity

Protected Member Functions

void timerEvent (QTimerEvent *)

Private Member Functions

GLC_Vector3d mapForFlying (double x, double y)
 Map the position of mouse for the fly mode.
void fly ()
 Fly.

Private Attributes

double m_TurnRate
 THe turning rate.
int m_TimerId
 The timer id.
int m_TimerInterval
 the timer interval
double m_Velocity
 fly velocity

Detailed Description

GLC_FlyMover : Fly Mode interactive manipulation.

Definition at line 36 of file glc_flymover.h.


Constructor & Destructor Documentation

GLC_FlyMover::GLC_FlyMover ( GLC_Viewport pViewport,
const QList< GLC_RepMover * > &  repsList = QList<GLC_RepMover*>() 
)
GLC_FlyMover::GLC_FlyMover ( const GLC_FlyMover flyMover  ) 

Copy constructor.

Definition at line 41 of file glc_flymover.cpp.

GLC_FlyMover::~GLC_FlyMover (  )  [virtual]

Destructor.

Definition at line 51 of file glc_flymover.cpp.

References m_TimerId.


Member Function Documentation

GLC_Mover * GLC_FlyMover::clone (  )  const [virtual]

Return a clone of the mover.

Implements GLC_Mover.

Definition at line 63 of file glc_flymover.cpp.

References GLC_FlyMover().

void GLC_FlyMover::ends (  )  [virtual]

Ends this mover.

Reimplemented from GLC_Mover.

Definition at line 97 of file glc_flymover.cpp.

References m_TimerId.

void GLC_FlyMover::fly (  )  [private]
double GLC_FlyMover::flyingVelocity (  )  const [inline]

Return the flying velocity.

Definition at line 66 of file glc_flymover.h.

void GLC_FlyMover::increaseVelocity ( double  factor  ) 

increase the flying velocity

Definition at line 109 of file glc_flymover.cpp.

References GLC_RepMover::RepMoverInfo::m_DoubleInfo, GLC_Mover::m_MoverInfo, and m_Velocity.

void GLC_FlyMover::init ( QMouseEvent *  e  )  [virtual]
GLC_Vector3d GLC_FlyMover::mapForFlying ( double  x,
double  y 
) [private]
bool GLC_FlyMover::move ( QMouseEvent *  e  )  [virtual]
void GLC_FlyMover::setFlyingVelocity ( double  velocity  ) 

Set the flying velocity.

Definition at line 103 of file glc_flymover.cpp.

References GLC_RepMover::RepMoverInfo::m_DoubleInfo, GLC_Mover::m_MoverInfo, and m_Velocity.

void GLC_FlyMover::setMaximumTurnRate ( double  turnRate  )  [inline]

Set the maximum turning rate in degre.

Definition at line 85 of file glc_flymover.h.

void GLC_FlyMover::timerEvent ( QTimerEvent *   )  [protected]
double GLC_FlyMover::turningRate (  )  const [inline]

Return the turning rate in degres.

Definition at line 62 of file glc_flymover.h.

References glc::PI.


Member Data Documentation

int GLC_FlyMover::m_TimerId [private]

The timer id.

Definition at line 117 of file glc_flymover.h.

Referenced by ends(), init(), and ~GLC_FlyMover().

the timer interval

Definition at line 120 of file glc_flymover.h.

Referenced by init(), and timerEvent().

double GLC_FlyMover::m_TurnRate [private]

THe turning rate.

Definition at line 114 of file glc_flymover.h.

Referenced by mapForFlying().

double GLC_FlyMover::m_Velocity [private]

fly velocity

Definition at line 123 of file glc_flymover.h.

Referenced by GLC_FlyMover(), increaseVelocity(), init(), setFlyingVelocity(), and timerEvent().


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

SourceForge.net Logo

©2005 Laurent Ribon