First Person Shooter style view controller. More...
#include <rendering/rendering.hh>
Public Member Functions | |
FPSViewController (UserCameraPtr _camera) | |
Constructor. | |
virtual | ~FPSViewController () |
Destructor. | |
void | HandleKeyPressEvent (const std::string &_key) |
Handle a key press event. | |
void | HandleKeyReleaseEvent (const std::string &_key) |
Handle a key release event. | |
virtual void | HandleMouseEvent (const common::MouseEvent &_event) |
Handle a mouse event. | |
virtual void | Init () |
Initialize the controller. | |
virtual void | Update () |
Update the camera position. | |
Public Member Functions inherited from gazebo::rendering::ViewController | |
ViewController (UserCameraPtr _camera) | |
Constructor. | |
virtual | ~ViewController () |
Destructor. | |
std::string | GetTypeString () const |
Get the type of view controller. | |
virtual void | Init (const math::Vector3 &_focalPoint) |
Initialize with a focus point. | |
void | SetEnabled (bool _value) |
Set whether the controller is enabled. | |
Static Public Member Functions | |
static std::string | GetTypeString () |
Get the type name of this view controller. | |
Additional Inherited Members | |
Protected Attributes inherited from gazebo::rendering::ViewController | |
UserCameraPtr | camera |
Pointer to the camera to control. | |
bool | enabled |
True if enabled. | |
std::string | typeString |
Type of view controller. | |
First Person Shooter style view controller.
gazebo::rendering::FPSViewController::FPSViewController | ( | UserCameraPtr | _camera | ) |
Constructor.
[in] | Camera | to controll |
|
virtual |
Destructor.
|
static |
Get the type name of this view controller.
|
virtual |
Handle a key press event.
[in] | _key | The key that was pressed. |
Implements gazebo::rendering::ViewController.
|
virtual |
Handle a key release event.
[in] | _key | The key that was released. |
Implements gazebo::rendering::ViewController.
|
virtual |
Handle a mouse event.
[in] | _event | The mouse position. |
Implements gazebo::rendering::ViewController.
|
virtual |
Initialize the controller.
Implements gazebo::rendering::ViewController.
|
virtual |
Update the camera position.
Implements gazebo::rendering::ViewController.