GLC_TurnTableMover : Turn table interactive manipulation. More...
#include <glc_turntablemover.h>
Public Member Functions | |
| GLC_TurnTableMover (GLC_Viewport *, const QList< GLC_RepMover * > &repsList=QList< GLC_RepMover * >()) | |
| Default constructor. | |
| GLC_TurnTableMover (const GLC_TurnTableMover &) | |
| Copy constructor. | |
| virtual | ~GLC_TurnTableMover () |
| Destructor. | |
Get Functions | |
| virtual GLC_Mover * | clone () const |
| Return a clone of the mover. | |
Set Functions | |
| virtual void | init (QMouseEvent *e) |
| Initialized the mover. | |
| virtual bool | move (QMouseEvent *e) |
| Move the camera. | |
Private Attributes | |
| double | m_Sign |
| The rotation sign. | |
GLC_TurnTableMover : Turn table interactive manipulation.
Definition at line 37 of file glc_turntablemover.h.
| GLC_TurnTableMover::GLC_TurnTableMover | ( | GLC_Viewport * | pViewport, | |
| const QList< GLC_RepMover * > & | repsList = QList<GLC_RepMover*>() | |||
| ) |
| GLC_TurnTableMover::GLC_TurnTableMover | ( | const GLC_TurnTableMover & | mover | ) |
Copy constructor.
Definition at line 39 of file glc_turntablemover.cpp.
| GLC_TurnTableMover::~GLC_TurnTableMover | ( | ) | [virtual] |
Destructor.
Definition at line 46 of file glc_turntablemover.cpp.
| GLC_Mover * GLC_TurnTableMover::clone | ( | ) | const [virtual] |
Return a clone of the mover.
Implements GLC_Mover.
Definition at line 56 of file glc_turntablemover.cpp.
References GLC_TurnTableMover().
| void GLC_TurnTableMover::init | ( | QMouseEvent * | e | ) | [virtual] |
Initialized the mover.
Implements GLC_Mover.
Definition at line 67 of file glc_turntablemover.cpp.
References GLC_Viewport::cameraHandle(), GLC_Camera::defaultUpVector(), GLC_Mover::m_PreviousVector, GLC_Mover::m_pViewport, m_Sign, GLC_Camera::setUpCam(), GLC_Vector3d::setVect(), and GLC_Camera::upVector().
| bool GLC_TurnTableMover::move | ( | QMouseEvent * | e | ) | [virtual] |
Move the camera.
Implements GLC_Mover.
Definition at line 86 of file glc_turntablemover.cpp.
References GLC_Viewport::cameraHandle(), GLC_Camera::defaultUpVector(), GLC_Camera::forward(), GLC_Vector3d::isNull(), GLC_Mover::m_PreviousVector, GLC_Mover::m_pViewport, m_Sign, GLC_Camera::rotateAroundTarget(), GLC_Vector3d::setVect(), GLC_Camera::upVector(), GLC_Viewport::viewHSize(), and GLC_Viewport::viewVSize().
double GLC_TurnTableMover::m_Sign [private] |
The rotation sign.
Definition at line 80 of file glc_turntablemover.h.