GLC_MoverController : Control activation of interactive manipulation mover. More...
#include <glc_movercontroller.h>
Public Types | |
| enum | MoverType { Pan = 1, Zoom = 2, TrackBall = 3, Target = 4, TurnTable = 5, Fly = 6 } |
Standard mover Id. More... | |
| typedef QHash< const int, GLC_Mover * > | MoverHash |
| The mover hash table. | |
Signals | |
| void | repaintNeeded () |
| Signal emitted if the view as to be repaint. | |
Public Member Functions | |
| GLC_MoverController () | |
| Default Constructor. | |
| GLC_MoverController (const GLC_MoverController &) | |
| Copy Constructor. | |
| virtual | ~GLC_MoverController () |
| Destructor. | |
Get Functions | |
| bool | hasActiveMover () const |
| Return true if there is an active mover. | |
| int | activeMoverId () const |
| Return the active mover id. | |
| GLC_Mover * | activeMover () const |
| Return a handle on the current mover. | |
Set Functions | |
| GLC_MoverController & | operator= (const GLC_MoverController &) |
| Assign another mover controller. | |
| void | addMover (GLC_Mover *, const int) |
| Add a mover to the controller. | |
| void | removeMover (const int) |
| Remove mover from the controller. | |
| void | setActiveMover (const int id, QMouseEvent *e) |
| Set the specified mover as active. | |
| void | setNoMover () |
| Set no mover as active. | |
| bool | move (QMouseEvent *e) |
| Move with the active mover. | |
OpenGL Functions | |
| void | drawActiveMoverRep () |
| Mover representations list display. | |
Private Attributes | |
| int | m_ActiveMoverId |
| The active mover id. | |
| MoverHash | m_MoverHash |
| Hash table of mover. | |
GLC_MoverController : Control activation of interactive manipulation mover.
Definition at line 44 of file glc_movercontroller.h.
| typedef QHash<const int, GLC_Mover*> GLC_MoverController::MoverHash |
The mover hash table.
Definition at line 49 of file glc_movercontroller.h.
Standard mover Id.
Definition at line 52 of file glc_movercontroller.h.
| GLC_MoverController::GLC_MoverController | ( | ) |
Default Constructor.
Definition at line 30 of file glc_movercontroller.cpp.
| GLC_MoverController::GLC_MoverController | ( | const GLC_MoverController & | controller | ) |
| GLC_MoverController::~GLC_MoverController | ( | ) | [virtual] |
| GLC_Mover* GLC_MoverController::activeMover | ( | ) | const [inline] |
Return a handle on the current mover.
Definition at line 87 of file glc_movercontroller.h.
| int GLC_MoverController::activeMoverId | ( | ) | const [inline] |
Return the active mover id.
Definition at line 83 of file glc_movercontroller.h.
| void GLC_MoverController::addMover | ( | GLC_Mover * | pMover, | |
| const int | id | |||
| ) |
Add a mover to the controller.
Definition at line 97 of file glc_movercontroller.cpp.
References m_MoverHash.
Referenced by GLC_Factory::createDefaultMoverController().
| void GLC_MoverController::drawActiveMoverRep | ( | ) | [inline] |
Mover representations list display.
Definition at line 127 of file glc_movercontroller.h.
| bool GLC_MoverController::hasActiveMover | ( | ) | const [inline] |
Return true if there is an active mover.
Definition at line 79 of file glc_movercontroller.h.
| bool GLC_MoverController::move | ( | QMouseEvent * | e | ) | [inline] |
Move with the active mover.
Definition at line 113 of file glc_movercontroller.h.
| GLC_MoverController & GLC_MoverController::operator= | ( | const GLC_MoverController & | controller | ) |
Assign another mover controller.
Definition at line 68 of file glc_movercontroller.cpp.
References m_ActiveMoverId, and m_MoverHash.
| void GLC_MoverController::removeMover | ( | const int | id | ) |
Remove mover from the controller.
Definition at line 104 of file glc_movercontroller.cpp.
References m_ActiveMoverId, and m_MoverHash.
| void GLC_MoverController::repaintNeeded | ( | ) | [signal] |
Signal emitted if the view as to be repaint.
Referenced by setActiveMover(), and setNoMover().
| void GLC_MoverController::setActiveMover | ( | const int | id, | |
| QMouseEvent * | e | |||
| ) |
Set the specified mover as active.
Definition at line 114 of file glc_movercontroller.cpp.
References m_ActiveMoverId, m_MoverHash, and repaintNeeded().
| void GLC_MoverController::setNoMover | ( | ) |
Set no mover as active.
Definition at line 122 of file glc_movercontroller.cpp.
References m_ActiveMoverId, m_MoverHash, and repaintNeeded().
int GLC_MoverController::m_ActiveMoverId [private] |
The active mover id.
Definition at line 145 of file glc_movercontroller.h.
Referenced by operator=(), removeMover(), setActiveMover(), and setNoMover().
MoverHash GLC_MoverController::m_MoverHash [private] |
Hash table of mover.
Definition at line 148 of file glc_movercontroller.h.
Referenced by addMover(), GLC_MoverController(), operator=(), removeMover(), setActiveMover(), setNoMover(), and ~GLC_MoverController().