GLC_ZoomMover : Zoom interactive manipulation. More...
#include <glc_zoommover.h>
Public Member Functions | |
| GLC_ZoomMover (GLC_Viewport *, const QList< GLC_RepMover * > &repsList=QList< GLC_RepMover * >()) | |
| Default constructor. | |
| GLC_ZoomMover (const GLC_ZoomMover &) | |
| Copy constructor. | |
| virtual | ~GLC_ZoomMover () |
| Destructor. | |
Get Functions | |
| double | maxZoomFactor () const |
| Return the maximum zoom factor. | |
| 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. | |
| void | setMaxZoomFactor (const double factor) |
| Set the maximum zoom factor. | |
Private Attributes | |
| double | m_MaxZoomFactor |
| The maximum zoom factor. | |
GLC_ZoomMover : Zoom interactive manipulation.
Definition at line 34 of file glc_zoommover.h.
| GLC_ZoomMover::GLC_ZoomMover | ( | GLC_Viewport * | pViewport, | |
| const QList< GLC_RepMover * > & | repsList = QList<GLC_RepMover*>() | |||
| ) |
| GLC_ZoomMover::GLC_ZoomMover | ( | const GLC_ZoomMover & | mover | ) |
Copy constructor.
Definition at line 35 of file glc_zoommover.cpp.
| GLC_ZoomMover::~GLC_ZoomMover | ( | ) | [virtual] |
Destructor.
Definition at line 42 of file glc_zoommover.cpp.
| GLC_Mover * GLC_ZoomMover::clone | ( | ) | const [virtual] |
Return a clone of the mover.
Implements GLC_Mover.
Definition at line 53 of file glc_zoommover.cpp.
References GLC_ZoomMover().
| void GLC_ZoomMover::init | ( | const GLC_UserInput & | userInput | ) | [virtual] |
Initialized the mover.
Implements GLC_Mover.
Definition at line 63 of file glc_zoommover.cpp.
References GLC_Mover::m_PreviousVector, GLC_Mover::m_pViewport, GLC_Vector3d::setY(), GLC_Viewport::viewVSize(), and GLC_UserInput::y().
| double GLC_ZoomMover::maxZoomFactor | ( | ) | const [inline] |
Return the maximum zoom factor.
Definition at line 53 of file glc_zoommover.h.
| bool GLC_ZoomMover::move | ( | const GLC_UserInput & | userInput | ) | [virtual] |
Move the camera.
Implements GLC_Mover.
Definition at line 71 of file glc_zoommover.cpp.
References GLC_Viewport::cameraHandle(), m_MaxZoomFactor, GLC_Mover::m_PreviousVector, GLC_Mover::m_pViewport, GLC_Vector3d::setY(), GLC_Viewport::viewVSize(), GLC_Vector3d::y(), GLC_UserInput::y(), and GLC_Camera::zoom().
| void GLC_ZoomMover::setMaxZoomFactor | ( | const double | factor | ) | [inline] |
Set the maximum zoom factor.
Definition at line 73 of file glc_zoommover.h.
double GLC_ZoomMover::m_MaxZoomFactor [private] |