GLC_TsrMover : Translationn scaling and rotation interactive manipulation. More...
#include <glc_tsrmover.h>
Public Member Functions | |
| GLC_TsrMover (GLC_Viewport *, const QList< GLC_RepMover * > &repsList=QList< GLC_RepMover * >()) | |
| Default constructor. | |
| GLC_TsrMover (const GLC_TsrMover &) | |
| Copy constructor. | |
| virtual | ~GLC_TsrMover () |
| 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. | |
GLC_TsrMover : Translationn scaling and rotation interactive manipulation.
Definition at line 36 of file glc_tsrmover.h.
| GLC_TsrMover::GLC_TsrMover | ( | GLC_Viewport * | pViewport, | |
| const QList< GLC_RepMover * > & | repsList = QList<GLC_RepMover*>() | |||
| ) |
| GLC_TsrMover::GLC_TsrMover | ( | const GLC_TsrMover & | tsrMover | ) |
Copy constructor.
Definition at line 38 of file glc_tsrmover.cpp.
| GLC_TsrMover::~GLC_TsrMover | ( | ) | [virtual] |
Destructor.
Definition at line 45 of file glc_tsrmover.cpp.
| GLC_Mover * GLC_TsrMover::clone | ( | ) | const [virtual] |
Return a clone of the mover.
Implements GLC_Mover.
Definition at line 55 of file glc_tsrmover.cpp.
References GLC_TsrMover().
| void GLC_TsrMover::init | ( | const GLC_UserInput & | userInput | ) | [virtual] |
Initialized the mover.
Implements GLC_Mover.
Definition at line 66 of file glc_tsrmover.cpp.
References GLC_Mover::m_PreviousVector, GLC_UserInput::normalyzeXTouchCenter(), and GLC_UserInput::normalyzeYTouchCenter().
| bool GLC_TsrMover::move | ( | const GLC_UserInput & | userInput | ) | [virtual] |
Move the camera.
Implements GLC_Mover.
Definition at line 72 of file glc_tsrmover.cpp.
References GLC_Viewport::cameraHandle(), GLC_Viewport::compositionMatrix(), GLC_Camera::distEyeTarget(), GLC_Camera::forward(), GLC_Vector2d::getX(), GLC_Vector2d::getY(), GLC_Matrix4x4::inverted(), GLC_Vector2d::isNull(), GLC_Mover::m_PreviousVector, GLC_Mover::m_pViewport, GLC_Viewport::mapNormalyzeToOpenGLScreen(), GLC_UserInput::normalyzeXTouchCenter(), GLC_UserInput::normalyzeYTouchCenter(), GLC_Camera::pan(), GLC_Camera::rotateAround(), GLC_UserInput::rotationAngle(), GLC_UserInput::scaleFactor(), GLC_Viewport::setDistMinAndMax(), GLC_Camera::target(), GLC_Camera::translate(), GLC_UserInput::translation(), GLC_Viewport::viewHSize(), GLC_Viewport::viewTangent(), GLC_Viewport::viewVSize(), GLC_Vector3d::x(), GLC_Vector3d::y(), and GLC_Camera::zoom().