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

GLC_MoverController : Control activation of interactive manipulation mover. More...

#include <glc_movercontroller.h>

+ Inheritance diagram for GLC_MoverController:

Public Types

enum  MoverType {
  Pan = 1, Zoom = 2, TrackBall = 3, Target = 4,
  TurnTable = 5, Fly = 6, TSR = 7
}
 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_MoveractiveMover () const
 Return a handle on the current mover.
 
GLC_MovergetMover (const int id) const
 Return the mover of the given id.
 
Set Functions
GLC_MoverControlleroperator= (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, const GLC_UserInput &userInput)
 Set the specified mover as active.
 
void setNoMover ()
 Set no mover as active.
 
bool move (const GLC_UserInput &userInput)
 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.
 

Detailed Description

GLC_MoverController : Control activation of interactive manipulation mover.

Definition at line 42 of file glc_movercontroller.h.

Member Typedef Documentation

typedef QHash<const int, GLC_Mover*> GLC_MoverController::MoverHash

The mover hash table.

Definition at line 47 of file glc_movercontroller.h.

Member Enumeration Documentation

Standard mover Id.

Enumerator
Pan 
Zoom 
TrackBall 
Target 
TurnTable 
Fly 
TSR 

Definition at line 50 of file glc_movercontroller.h.

Constructor & Destructor Documentation

GLC_MoverController::GLC_MoverController ( )

Default Constructor.

Definition at line 28 of file glc_movercontroller.cpp.

GLC_MoverController::GLC_MoverController ( const GLC_MoverController controller)

Copy Constructor.

Definition at line 38 of file glc_movercontroller.cpp.

References m_MoverHash.

GLC_MoverController::~GLC_MoverController ( )
virtual

Destructor.

Definition at line 52 of file glc_movercontroller.cpp.

References m_MoverHash.

Member Function Documentation

GLC_Mover* GLC_MoverController::activeMover ( ) const
inline

Return a handle on the current mover.

Definition at line 86 of file glc_movercontroller.h.

int GLC_MoverController::activeMoverId ( ) const
inline

Return the active mover id.

Definition at line 82 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 130 of file glc_movercontroller.h.

GLC_Mover* GLC_MoverController::getMover ( const int  id) const
inline

Return the mover of the given id.

Definition at line 90 of file glc_movercontroller.h.

bool GLC_MoverController::hasActiveMover ( ) const
inline

Return true if there is an active mover.

Definition at line 78 of file glc_movercontroller.h.

bool GLC_MoverController::move ( const GLC_UserInput userInput)
inline

Move with the active mover.

Definition at line 116 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,
const GLC_UserInput userInput 
)

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().

Member Data Documentation

int GLC_MoverController::m_ActiveMoverId
private

The active mover id.

Definition at line 148 of file glc_movercontroller.h.

Referenced by operator=(), removeMover(), setActiveMover(), and setNoMover().

MoverHash GLC_MoverController::m_MoverHash
private

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

©2005-2013 Laurent Ribon