GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Signals | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
GLC_Mover Class Referenceabstract

GLC_Mover : Base class for all interactive manipulation. More...

#include <glc_mover.h>

+ Inheritance diagram for GLC_Mover:

Signals

void updated ()
 Signal sent if the view as been updated.
 

Public Member Functions

 GLC_Mover (GLC_Viewport *, const QList< GLC_RepMover * > &)
 Default constructor.
 
 GLC_Mover (const GLC_Mover &)
 Copy constructor.
 
virtual ~GLC_Mover ()
 Destructor.
 
Get Functions
virtual GLC_Moverclone () const =0
 Return a clone of the mover.
 
Set Functions
virtual void init (const GLC_UserInput &userInput)=0
 Initialized the mover.
 
virtual bool move (const GLC_UserInput &userInput)=0
 Move the camera.
 
virtual void ends ()
 Ends this mover.
 
void setRepresentationsList (const QList< GLC_RepMover * > &)
 Set the mover representation list.
 
void initRepresentation ()
 Init representation.
 
void updateRepresentation ()
 Update representation.
 
OpenGL Functions
void renderRepresentation ()
 Mover representations list display.
 

Protected Attributes

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)
 

Private Member Functions

void clearMoverRepresentation ()
 Clear mover representation.
 

Detailed Description

GLC_Mover : Base class for all interactive manipulation.

Definition at line 43 of file glc_mover.h.

Constructor & Destructor Documentation

GLC_Mover::GLC_Mover ( GLC_Viewport pViewport,
const QList< GLC_RepMover * > &  repsList 
)

Default constructor.

Definition at line 28 of file glc_mover.cpp.

References m_MoverInfo, and m_RepMoverList.

GLC_Mover::GLC_Mover ( const GLC_Mover mover)

Copy constructor.

Definition at line 43 of file glc_mover.cpp.

References m_MoverInfo, and m_RepMoverList.

GLC_Mover::~GLC_Mover ( )
virtual

Destructor.

Definition at line 58 of file glc_mover.cpp.

References clearMoverRepresentation().

Member Function Documentation

void GLC_Mover::clearMoverRepresentation ( )
private

Clear mover representation.

Definition at line 120 of file glc_mover.cpp.

References m_RepMoverList.

Referenced by setRepresentationsList(), and ~GLC_Mover().

virtual GLC_Mover* GLC_Mover::clone ( ) const
pure virtual
virtual void GLC_Mover::ends ( )
inlinevirtual

Ends this mover.

Reimplemented in GLC_FlyMover.

Definition at line 79 of file glc_mover.h.

virtual void GLC_Mover::init ( const GLC_UserInput userInput)
pure virtual
void GLC_Mover::initRepresentation ( )

Init representation.

Definition at line 81 of file glc_mover.cpp.

References m_RepMoverList.

Referenced by GLC_TrackBallMover::init().

virtual bool GLC_Mover::move ( const GLC_UserInput userInput)
pure virtual
void GLC_Mover::renderRepresentation ( )

Mover representations list display.

Definition at line 106 of file glc_mover.cpp.

References m_RepMoverList.

void GLC_Mover::setRepresentationsList ( const QList< GLC_RepMover * > &  listOfRep)

Set the mover representation list.

Definition at line 68 of file glc_mover.cpp.

References clearMoverRepresentation(), m_MoverInfo, and m_RepMoverList.

void GLC_Mover::updated ( )
signal

Signal sent if the view as been updated.

Referenced by GLC_FlyMover::timerEvent().

void GLC_Mover::updateRepresentation ( )

Update representation.

Definition at line 91 of file glc_mover.cpp.

References m_RepMoverList.

Referenced by GLC_FlyMover::mapForFlying(), and GLC_TrackBallMover::move().

Member Data Documentation

GLC_RepMover::RepMoverInfo GLC_Mover::m_MoverInfo
protected
GLC_Vector3d GLC_Mover::m_PreviousVector
protected
GLC_Viewport* GLC_Mover::m_pViewport
protected
QList<GLC_RepMover*> GLC_Mover::m_RepMoverList
protected

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

©2005-2013 Laurent Ribon