Base class for view controllers. More...
#include <rendering/rendering.hh>

Public Member Functions | |
| ViewController (UserCameraPtr _camera) | |
| Constructor. | |
| virtual | ~ViewController () |
| Destructor. | |
| std::string | GetTypeString () const |
| Get the type of view controller. | |
| virtual void | HandleKeyPressEvent (const std::string &_key)=0 |
| Handle a key press event. | |
| virtual void | HandleKeyReleaseEvent (const std::string &_key)=0 |
| Handle a key release event. | |
| virtual void | HandleMouseEvent (const common::MouseEvent &_event)=0 |
| Handle a mouse event. | |
| virtual void | Init ()=0 |
| Initialize the view controller. | |
| virtual void | Init (const math::Vector3 &_focalPoint) |
| Initialize with a focus point. | |
| void | SetEnabled (bool _value) |
| Set whether the controller is enabled. | |
| virtual void | Update ()=0 |
| Update the controller, which should update the position of the Camera. | |
Protected Attributes | |
| UserCameraPtr | camera |
| Pointer to the camera to control. | |
| bool | enabled |
| True if enabled. | |
| std::string | typeString |
| Type of view controller. | |
Base class for view controllers.
| gazebo::rendering::ViewController::ViewController | ( | UserCameraPtr | _camera | ) |
Constructor.
| [in] | _camera | The user camera to controll. |
|
virtual |
Destructor.
| std::string gazebo::rendering::ViewController::GetTypeString | ( | ) | const |
Get the type of view controller.
|
pure virtual |
Handle a key press event.
| [in] | _key | The key that was pressed. |
Implemented in gazebo::rendering::OrbitViewController, and gazebo::rendering::FPSViewController.
|
pure virtual |
Handle a key release event.
| [in] | _key | The key that was released. |
Implemented in gazebo::rendering::OrbitViewController, and gazebo::rendering::FPSViewController.
|
pure virtual |
Handle a mouse event.
| [in] | _event | The mouse position. |
Implemented in gazebo::rendering::OrbitViewController, and gazebo::rendering::FPSViewController.
|
pure virtual |
Initialize the view controller.
Implemented in gazebo::rendering::OrbitViewController, and gazebo::rendering::FPSViewController.
|
virtual |
Initialize with a focus point.
| [in] | _focalPoint | The point to look at. |
Reimplemented in gazebo::rendering::OrbitViewController.
| void gazebo::rendering::ViewController::SetEnabled | ( | bool | _value | ) |
Set whether the controller is enabled.
| [in] | _value | True if the controller is enabled. |
|
pure virtual |
Update the controller, which should update the position of the Camera.
Implemented in gazebo::rendering::OrbitViewController, and gazebo::rendering::FPSViewController.
|
protected |
Pointer to the camera to control.
|
protected |
True if enabled.
|
protected |
Type of view controller.