GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Protected Member Functions | Private Member Functions | Private Attributes | List of all members
GLC_FlyMover Class Reference

GLC_FlyMover : Fly Mode interactive manipulation. More...

#include <glc_flymover.h>

+ Inheritance diagram for GLC_FlyMover:

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 (const GLC_UserInput &userInput)
 Initialized the mover.
 
virtual bool move (const GLC_UserInput &userInput)
 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
 
- Public Member Functions inherited from GLC_Mover
 GLC_Mover (GLC_Viewport *, const QList< GLC_RepMover * > &)
 Default constructor.
 
 GLC_Mover (const GLC_Mover &)
 Copy constructor.
 
virtual ~GLC_Mover ()
 Destructor.
 
void setRepresentationsList (const QList< GLC_RepMover * > &)
 Set the mover representation list.
 
void initRepresentation ()
 Init representation.
 
void updateRepresentation ()
 Update representation.
 
void renderRepresentation ()
 Mover representations list display.
 

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
 

Additional Inherited Members

- Signals inherited from GLC_Mover
void updated ()
 Signal sent if the view as been updated.
 
- Protected Attributes inherited from GLC_Mover
QList< GLC_RepMover * > m_RepMoverList
 The mover representations list.
 
GLC_Vector3d m_PreviousVector
 The previous mover value.
 
GLC_Viewportm_pViewport
 The Viewport.
 
GLC_RepMover::RepMoverInfo m_MoverInfo
 The mover info (passed to the rep)
 

Detailed Description

GLC_FlyMover : Fly Mode interactive manipulation.

Definition at line 34 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 39 of file glc_flymover.cpp.

GLC_FlyMover::~GLC_FlyMover ( )
virtual

Destructor.

Definition at line 49 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 61 of file glc_flymover.cpp.

References GLC_FlyMover().

void GLC_FlyMover::ends ( )
virtual

Ends this mover.

Reimplemented from GLC_Mover.

Definition at line 95 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 64 of file glc_flymover.h.

void GLC_FlyMover::increaseVelocity ( double  factor)

increase the flying velocity

Definition at line 107 of file glc_flymover.cpp.

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

void GLC_FlyMover::init ( const GLC_UserInput userInput)
virtual
GLC_Vector3d GLC_FlyMover::mapForFlying ( double  x,
double  y 
)
private
bool GLC_FlyMover::move ( const GLC_UserInput userInput)
virtual
void GLC_FlyMover::setFlyingVelocity ( double  velocity)

Set the flying velocity.

Definition at line 101 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 83 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 60 of file glc_flymover.h.

References glc::PI.

Member Data Documentation

int GLC_FlyMover::m_TimerId
private

The timer id.

Definition at line 115 of file glc_flymover.h.

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

int GLC_FlyMover::m_TimerInterval
private

the timer interval

Definition at line 118 of file glc_flymover.h.

Referenced by init(), and timerEvent().

double GLC_FlyMover::m_TurnRate
private

THe turning rate.

Definition at line 112 of file glc_flymover.h.

Referenced by mapForFlying().

double GLC_FlyMover::m_Velocity
private

fly velocity

Definition at line 121 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:

©2005-2013 Laurent Ribon