OrthoViewController Class Reference
Orthographic view controller. More...
#include <OrthoViewController.hh>
Public Member Functions | |
OrthoViewController () | |
Constructor. More... | |
OrthoViewController (const CameraPtr &_camera) | |
Constructor. More... | |
virtual | ~OrthoViewController () |
Destructor. More... | |
virtual CameraPtr | Camera () const |
Get the camera that is controlled by this view controller. More... | |
virtual void | Orbit (const math::Vector2d &_value) |
Set camera orbit (rotational movement) around target point. More... | |
virtual void | Pan (const math::Vector2d &_value) |
Set camera pan (translational movement) around target point. More... | |
virtual void | SetCamera (const CameraPtr &_camera) |
Set the camera that will be controlled by this view controller. More... | |
virtual void | SetTarget (const math::Vector3d &_target) |
Set target point for pan, zoom, oribit. More... | |
virtual const math::Vector3d & | Target () const |
Get target point for pan, zoom, oribit. More... | |
virtual void | Zoom (const double _value) |
Set zoom amount. More... | |
Public Member Functions inherited from ViewController | |
virtual | ~ViewController () |
Deconstructor. More... | |
Public Attributes | |
std::unique_ptr< OrthoViewControllerPrivate > | dataPtr |
Private data pointer. More... | |
Detailed Description
Orthographic view controller.
Constructor & Destructor Documentation
◆ OrthoViewController() [1/2]
Constructor.
◆ OrthoViewController() [2/2]
|
explicit |
Constructor.
- Parameters
-
[in] _camera Pointer to the camera to control.
◆ ~OrthoViewController()
|
virtual |
Destructor.
Member Function Documentation
◆ Camera()
Get the camera that is controlled by this view controller.
- Returns
- Camera being controlled
◆ Orbit()
|
virtual |
Set camera orbit (rotational movement) around target point.
- Parameters
-
[in] _value robit amount in image plane, e.g. mouse drag delta
Implements ViewController.
◆ Pan()
|
virtual |
Set camera pan (translational movement) around target point.
- Parameters
-
[in] _value Pan amount in image plane, e.g. mouse drag delta.
Implements ViewController.
◆ SetCamera()
|
virtual |
Set the camera that will be controlled by this view controller.
- Parameters
-
[in] _camera Camera to control
Implements ViewController.
◆ SetTarget()
|
virtual |
Set target point for pan, zoom, oribit.
- Parameters
-
[in] _target Target point in world coordinates
Implements ViewController.
◆ Target()
|
virtual |
Get target point for pan, zoom, oribit.
- Returns
- target point in world coordinates
◆ Zoom()
|
virtual |
Set zoom amount.
- Parameters
-
[in] _value Camera zoon value, e.g. mouse scroll delta
Implements ViewController.
Member Data Documentation
◆ dataPtr
std::unique_ptr<OrthoViewControllerPrivate> dataPtr |
Private data pointer.
The documentation for this class was generated from the following file: