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

Class to mangage render windows. More...

#include <rendering/rendering.hh>

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

Public Member Functions

int CreateWindow (const std::string &_ogreHandle, uint32_t _width, uint32_t _height)
 Create a window.
 
void Fini ()
 Shutdown all the windows.
 
float GetAvgFPS (uint32_t _id)
 Get the average FPS.
 
uint32_t GetTriangleCount (uint32_t _id)
 Get the triangle count.
 
Ogre::RenderWindow * GetWindow (uint32_t _id)
 Get the render window associated with the given id.
 
void Moved (uint32_t _id)
 Tells Ogre the window has moved, and needs updating.
 
void Resize (uint32_t _id, int _width, int _height)
 Resize a window.
 
void SetCamera (int _windowId, CameraPtr _camera)
 Attach a camera to a window.
 

Additional Inherited Members

- Static Public Member Functions inherited from SingletonT< T >
static T * Instance ()
 Get an instance of the singleton.
 
- Protected Member Functions inherited from SingletonT< T >
 SingletonT ()
 Constructor.
 
virtual ~SingletonT ()
 Destructor.
 

Detailed Description

Class to mangage render windows.

Member Function Documentation

int gazebo::rendering::WindowManager::CreateWindow ( const std::string &  _ogreHandle,
uint32_t  _width,
uint32_t  _height 
)

Create a window.

Parameters
[in]_ogreHandleString representing the ogre window handle.
[in]_widthWith of the window in pixels.
[in]_heightHeight of the window in pixels.
void gazebo::rendering::WindowManager::Fini ( )

Shutdown all the windows.

float gazebo::rendering::WindowManager::GetAvgFPS ( uint32_t  _id)

Get the average FPS.

Parameters
[in]_idID of the window.
Returns
The frames per second.
uint32_t gazebo::rendering::WindowManager::GetTriangleCount ( uint32_t  _id)

Get the triangle count.

Parameters
[in]_idID of the window.
Returns
The triangle count.
Ogre::RenderWindow* gazebo::rendering::WindowManager::GetWindow ( uint32_t  _id)

Get the render window associated with the given id.

Parameters
[in]_idID of the window.
Returns
Pointer to the render window, NULL if the id is invalid.
void gazebo::rendering::WindowManager::Moved ( uint32_t  _id)

Tells Ogre the window has moved, and needs updating.

Parameters
[in]_idID of the window.
void gazebo::rendering::WindowManager::Resize ( uint32_t  _id,
int  _width,
int  _height 
)

Resize a window.

Parameters
[in]_idId of the window to resize.
[in]_widthNew width of the window.
[in]_heightNew height of the window.
void gazebo::rendering::WindowManager::SetCamera ( int  _windowId,
CameraPtr  _camera 
)

Attach a camera to a window.

Parameters
[in]_windowIdId of the window to add the camera to.
[in]_cameraPointer to the camera to attach.

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