All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
gazebo::rendering::FPSViewController Class Reference

First Person Shooter style view controller. More...

#include <rendering/rendering.hh>

Inheritance diagram for gazebo::rendering::FPSViewController:
Inheritance graph
[legend]

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.
 

Detailed Description

First Person Shooter style view controller.

Constructor & Destructor Documentation

gazebo::rendering::FPSViewController::FPSViewController ( UserCameraPtr  _camera)

Constructor.

Parameters
[in]Camerato controll
virtual gazebo::rendering::FPSViewController::~FPSViewController ( )
virtual

Destructor.

Member Function Documentation

static std::string gazebo::rendering::FPSViewController::GetTypeString ( )
static

Get the type name of this view controller.

Returns
The name of the controller type: "fps"
void gazebo::rendering::FPSViewController::HandleKeyPressEvent ( const std::string &  _key)
virtual

Handle a key press event.

Parameters
[in]_keyThe key that was pressed.

Implements gazebo::rendering::ViewController.

void gazebo::rendering::FPSViewController::HandleKeyReleaseEvent ( const std::string &  _key)
virtual

Handle a key release event.

Parameters
[in]_keyThe key that was released.

Implements gazebo::rendering::ViewController.

virtual void gazebo::rendering::FPSViewController::HandleMouseEvent ( const common::MouseEvent _event)
virtual

Handle a mouse event.

Parameters
[in]_eventThe mouse position.

Implements gazebo::rendering::ViewController.

virtual void gazebo::rendering::FPSViewController::Init ( )
virtual

Initialize the controller.

Implements gazebo::rendering::ViewController.

virtual void gazebo::rendering::FPSViewController::Update ( )
virtual

Update the camera position.

Implements gazebo::rendering::ViewController.


The documentation for this class was generated from the following file: