- gazebo
- rendering
- UserCamera
A camera used for user visualization of a scene. More...
#include <UserCamera.hh>

Public Member Functions | |
| UserCamera (const std::string &_name, Scene *_scene) | |
| Constructor. | |
| virtual | ~UserCamera () |
| Destructor. | |
| void | Load (sdf::ElementPtr _sdf) |
| Load the user camera. | |
| void | Load () |
| Load the camera with default parmeters. | |
| void | Init () |
| Initialize. | |
| virtual void | Update () |
| Render the camera. | |
| virtual void | PostRender () |
| Post render. | |
| void | Fini () |
| Finialize. | |
| void | HandleMouseEvent (const common::MouseEvent &_evt) |
| Hande a mouse event. | |
| void | HandleKeyPressEvent (const std::string &_key) |
| void | HandleKeyReleaseEvent (const std::string &_key) |
| void | SetViewController (const std::string &_type) |
| Set view controller. | |
| void | SetViewController (const std::string &_type, const math::Vector3 &_pos) |
| Set view controller. | |
| void | Resize (unsigned int _w, unsigned int _h) |
| Resize the camera. | |
| void | SetViewportDimensions (float _x, float _y, float _w, float _h) |
| Set the dimensions of the viewport. | |
| float | GetAvgFPS () const |
| Get the average frames per second. | |
| float | GetTriangleCount () const |
| Get the triangle count. | |
| void | MoveToVisual (VisualPtr _visual) |
| Move the camera to focus on a scene node. | |
| void | MoveToVisual (const std::string &_visualName) |
| bool | MoveToPosition (const math::Vector3 &_end, double _pitch, double _yaw, double _time) |
| bool | MoveToPositions (const std::vector< math::Pose > &_pts, double _time, boost::function< void()> _onComplete) |
| virtual void | SetRenderTarget (Ogre::RenderTarget *_target) |
| Set to true to enable rendering. | |
| GUIOverlay * | GetGUIOverlay () |
| Get the GUI overlay. | |
| void | EnableViewController (bool _value) const |
| Set whether the view controller is enabled. | |
Protected Member Functions | |
| virtual bool | AttachToVisualImpl (VisualPtr _visual, bool _inheritOrientation, double _minDist=0, double _maxDist=0) |
| Set the camera to be attached to a scene node. | |
| virtual bool | TrackVisualImpl (VisualPtr _visual) |
| Set the camera to track a scene node. | |
A camera used for user visualization of a scene.
1.7.5.1