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::OrbitViewController Class Reference

Orbit view controller. More...

#include <OrbitViewController.hh>

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

Public Member Functions

 OrbitViewController (UserCameraPtr _camera)
 Constructor. More...
 
virtual ~OrbitViewController ()
 Destructor. More...
 
math::Vector3 GetFocalPoint () const
 Get the focal point. More...
 
virtual 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)
 Initialze the controller with a focal point. More...
 
void SetDistance (float _d)
 Set the distance to the focal point. More...
 
void SetFocalPoint (const math::Vector3 &_fp)
 Set the focal point. More...
 
virtual void Update ()
 Update. 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...
 
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...
 

Detailed Description

Orbit view controller.

Constructor & Destructor Documentation

gazebo::rendering::OrbitViewController::OrbitViewController ( UserCameraPtr  _camera)

Constructor.

Parameters
[in]_cameraPointer to the camera to control.
virtual gazebo::rendering::OrbitViewController::~OrbitViewController ( )
virtual

Destructor.

Member Function Documentation

math::Vector3 gazebo::rendering::OrbitViewController::GetFocalPoint ( ) const

Get the focal point.

Returns
The focal point
static std::string gazebo::rendering::OrbitViewController::GetTypeString ( )
static

Get the type name of this view controller.

Returns
The view controller name: "orbit".
virtual void gazebo::rendering::OrbitViewController::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::OrbitViewController::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::OrbitViewController::HandleMouseEvent ( const common::MouseEvent _event)
virtual

Handle a mouse event.

Parameters
[in]_eventThe mouse event.

Implements gazebo::rendering::ViewController.

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

Initialize the controller.

Implements gazebo::rendering::ViewController.

virtual void gazebo::rendering::OrbitViewController::Init ( const math::Vector3 _focalPoint)
virtual

Initialze the controller with a focal point.

Parameters
[in]_focalPointPoint to look at.

Reimplemented from gazebo::rendering::ViewController.

void gazebo::rendering::OrbitViewController::SetDistance ( float  _d)

Set the distance to the focal point.

Parameters
[in]_dThe distance from the focal point.
void gazebo::rendering::OrbitViewController::SetFocalPoint ( const math::Vector3 _fp)

Set the focal point.

Parameters
[in]_fpThe focal point
virtual void gazebo::rendering::OrbitViewController::Update ( )
virtual

Update.

Implements gazebo::rendering::ViewController.


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