First Person Shooter style view controller. More...
#include <rendering/rendering.hh>
Inherits ViewController.
Public Member Functions | |
FPSViewController (UserCameraPtr _camera) | |
Constructor. More... | |
virtual | ~FPSViewController () |
Destructor. More... | |
std::string | GetTypeString () const |
Get the type of view controller. 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 | Init (const math::Vector3 &_focalPoint, const double _yaw=0, const double _pitch=0) GAZEBO_DEPRECATED(8.0) |
Initialize with a focus point. More... | |
virtual void | Init (const ignition::math::Vector3d &_focalPoint, const double _yaw=0, const double _pitch=0) |
Initialize with a focus point. More... | |
virtual void | Resize (const unsigned int _width, const unsigned int _height) |
Called by the UserCamera when a resize event occurs. More... | |
void | SetEnabled (bool _value) |
Set whether the controller is enabled. More... | |
virtual void | Update () |
Update the camera position. More... | |
Static Public Member Functions | |
static std::string | GetTypeString () |
Get the type name of this view controller. More... | |
Protected Attributes | |
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.
|
explicit |
Constructor.
[in] | Camera | to controll |
|
virtual |
Destructor.
|
static |
Get the type name of this view controller.
|
inherited |
Get the type of view controller.
|
virtual |
|
virtual |
Handle a key release event.
[in] | _key | The key that was released. |
Implements ViewController.
|
virtual |
|
virtual |
Initialize the controller.
Implements ViewController.
|
virtualinherited |
Initialize with a focus point.
[in] | _focalPoint | The point to look at. |
[in] | _yaw | Initial yaw angle. |
[in] | _pitch | Initial pitch angle. |
Reimplemented in OrbitViewController, and OrthoViewController.
|
virtualinherited |
Initialize with a focus point.
[in] | _focalPoint | The point to look at. |
[in] | _yaw | Initial yaw angle. |
[in] | _pitch | Initial pitch angle. |
Reimplemented in OrbitViewController, and OrthoViewController.
|
virtualinherited |
Called by the UserCamera when a resize event occurs.
[in] | _width | New width |
[in] | _height | New height |
Reimplemented in OrthoViewController.
|
inherited |
Set whether the controller is enabled.
[in] | _value | True if the controller is enabled. |
|
virtual |
Update the camera position.
Implements ViewController.
|
protectedinherited |
Pointer to the camera to control.
|
protectedinherited |
True if enabled.
|
protectedinherited |
Type of view controller.