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 (const GLC_UserInput &userInput) |
Initialized the mover. | |
virtual bool | move (const GLC_UserInput &userInput) |
Move the camera. | |
Private Attributes | |
double | m_Sign |
The rotation sign. |
GLC_TurnTableMover : Turn table interactive manipulation.
Definition at line 35 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 37 of file glc_turntablemover.cpp.
GLC_TurnTableMover::~GLC_TurnTableMover | ( | ) | [virtual] |
Destructor.
Definition at line 44 of file glc_turntablemover.cpp.
GLC_Mover * GLC_TurnTableMover::clone | ( | ) | const [virtual] |
Return a clone of the mover.
Implements GLC_Mover.
Definition at line 54 of file glc_turntablemover.cpp.
References GLC_TurnTableMover().
void GLC_TurnTableMover::init | ( | const GLC_UserInput & | userInput | ) | [virtual] |
Initialized the mover.
Implements GLC_Mover.
Definition at line 65 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(), GLC_Camera::upVector(), GLC_UserInput::x(), and GLC_UserInput::y().
bool GLC_TurnTableMover::move | ( | const GLC_UserInput & | userInput | ) | [virtual] |
Move the camera.
Implements GLC_Mover.
Definition at line 84 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(), GLC_Viewport::viewVSize(), GLC_UserInput::x(), and GLC_UserInput::y().
double GLC_TurnTableMover::m_Sign [private] |
The rotation sign.
Definition at line 78 of file glc_turntablemover.h.