ViewController Class Referenceabstract
A camera view controller. More...
#include <ViewController.hh>
Public Member Functions | |
virtual | ~ViewController () |
Destructor. More... | |
virtual void | Orbit (const math::Vector2d &_value)=0 |
Set camera orbit (rotational movement) around target point. More... | |
virtual void | Pan (const math::Vector2d &_value)=0 |
Set camera pan (translational movement) around target point. More... | |
virtual void | SetCamera (const CameraPtr &_camera)=0 |
Set the camera that will be controlled by this view controller. More... | |
virtual void | SetTarget (const math::Vector3d &_target)=0 |
Set target point for pan, zoom, oribit. More... | |
virtual void | Zoom (const double _value)=0 |
Set zoom amount. More... | |
Detailed Description
A camera view controller.
Constructor & Destructor Documentation
◆ ~ViewController()
|
virtual |
Destructor.
Member Function Documentation
◆ Orbit()
|
pure virtual |
Set camera orbit (rotational movement) around target point.
- Parameters
-
[in] _value robit amount in image plane, e.g. mouse drag delta
Implemented in OrbitViewController, and OrthoViewController.
◆ Pan()
|
pure virtual |
Set camera pan (translational movement) around target point.
- Parameters
-
[in] _value Pan amount in image plane, e.g. mouse drag delta.
Implemented in OrbitViewController, and OrthoViewController.
◆ SetCamera()
|
pure virtual |
Set the camera that will be controlled by this view controller.
- Parameters
-
[in] _camera Camera to control
Implemented in OrbitViewController, and OrthoViewController.
◆ SetTarget()
|
pure virtual |
Set target point for pan, zoom, oribit.
- Parameters
-
[in] _target Target point in world coordinates
Implemented in OrbitViewController, and OrthoViewController.
◆ Zoom()
|
pure virtual |
Set zoom amount.
- Parameters
-
[in] _value Camera zoon value, e.g. mouse scroll delta
Implemented in OrbitViewController, and OrthoViewController.
The documentation for this class was generated from the following file: