GLC_Mover : Base class for all interactive manipulation. More...
#include <glc_mover.h>
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_Mover * | clone () 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_Viewport * | m_pViewport |
| The Viewport. | |
| GLC_RepMover::RepMoverInfo | m_MoverInfo |
| The mover info (passed to the rep). | |
Private Member Functions | |
| void | clearMoverRepresentation () |
| Clear mover representation. | |
GLC_Mover : Base class for all interactive manipulation.
Definition at line 43 of file glc_mover.h.
| 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] |
| 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] |
Return a clone of the mover.
Implemented in GLC_FlyMover, GLC_PanMover, GLC_SetTargetMover, GLC_TrackBallMover, GLC_TsrMover, GLC_TurnTableMover, and GLC_ZoomMover.
| virtual void GLC_Mover::ends | ( | ) | [inline, virtual] |
| virtual void GLC_Mover::init | ( | const GLC_UserInput & | userInput | ) | [pure virtual] |
Initialized the mover.
Implemented in GLC_FlyMover, GLC_PanMover, GLC_SetTargetMover, GLC_TrackBallMover, GLC_TsrMover, GLC_TurnTableMover, and GLC_ZoomMover.
| 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] |
Move the camera.
Implemented in GLC_FlyMover, GLC_PanMover, GLC_SetTargetMover, GLC_TrackBallMover, GLC_TsrMover, GLC_TurnTableMover, and GLC_ZoomMover.
| 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().
GLC_RepMover::RepMoverInfo GLC_Mover::m_MoverInfo [protected] |
The mover info (passed to the rep).
Definition at line 128 of file glc_mover.h.
Referenced by GLC_FlyMover::GLC_FlyMover(), GLC_Mover(), GLC_TrackBallMover::GLC_TrackBallMover(), GLC_FlyMover::increaseVelocity(), GLC_TrackBallMover::init(), GLC_FlyMover::init(), GLC_FlyMover::mapForFlying(), GLC_TrackBallMover::move(), GLC_FlyMover::setFlyingVelocity(), and setRepresentationsList().
GLC_Vector3d GLC_Mover::m_PreviousVector [protected] |
The previous mover value.
Definition at line 122 of file glc_mover.h.
Referenced by GLC_FlyMover::fly(), GLC_ZoomMover::init(), GLC_TurnTableMover::init(), GLC_TsrMover::init(), GLC_TrackBallMover::init(), GLC_PanMover::init(), GLC_FlyMover::init(), GLC_ZoomMover::move(), GLC_TurnTableMover::move(), GLC_TsrMover::move(), GLC_TrackBallMover::move(), GLC_PanMover::move(), and GLC_FlyMover::move().
GLC_Viewport* GLC_Mover::m_pViewport [protected] |
The Viewport.
Definition at line 125 of file glc_mover.h.
Referenced by GLC_FlyMover::fly(), GLC_ZoomMover::init(), GLC_TurnTableMover::init(), GLC_SetTargetMover::init(), GLC_PanMover::init(), GLC_FlyMover::init(), GLC_FlyMover::mapForFlying(), GLC_TrackBallMover::mapForTracking(), GLC_ZoomMover::move(), GLC_TurnTableMover::move(), GLC_TsrMover::move(), GLC_TrackBallMover::move(), GLC_PanMover::move(), GLC_FlyMover::move(), and GLC_FlyMover::timerEvent().
QList<GLC_RepMover*> GLC_Mover::m_RepMoverList [protected] |
The mover representations list.
Definition at line 119 of file glc_mover.h.
Referenced by clearMoverRepresentation(), GLC_Mover(), initRepresentation(), renderRepresentation(), GLC_TrackBallMover::setRatio(), setRepresentationsList(), and updateRepresentation().