WindowManager Class Reference

Class to mangage render windows. More...

#include <rendering/rendering.hh>

Public Member Functions

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

Detailed Description

Class to mangage render windows.

Constructor & Destructor Documentation

§ WindowManager()

Constructor.

§ ~WindowManager()

virtual ~WindowManager ( )
virtual

Destructor.

Member Function Documentation

§ AvgFPS()

float AvgFPS ( const uint32_t  _id) const

Get the average FPS.

Parameters
[in]_idID of the window.
Returns
The frames per second.

§ CreateWindow()

int 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.

§ Fini()

void Fini ( )

Shutdown all the windows.

§ GetAvgFPS()

float GetAvgFPS ( uint32_t  _id)

Get the average FPS.

Parameters
[in]_idID of the window.
Returns
The frames per second.
Deprecated:
See AvgFPS()

§ GetTriangleCount()

uint32_t GetTriangleCount ( uint32_t  _id)

Get the triangle count.

Parameters
[in]_idID of the window.
Returns
The triangle count.
Deprecated:
See TriangleCount()

§ GetWindow()

Ogre::RenderWindow* 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.
Deprecated:
See Window()

§ Moved()

void Moved ( uint32_t  _id)

Tells Ogre the window has moved, and needs updating.

Parameters
[in]_idID of the window.

§ Resize()

void 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.

§ SetCamera()

void 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.

§ TriangleCount()

uint32_t TriangleCount ( const uint32_t  _id) const

Get the triangle count.

Parameters
[in]_idID of the window.
Returns
The triangle count.

§ Window()

Ogre::RenderWindow* Window ( const uint32_t  _id) const

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.

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