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