Adaptor to Ogre3d. More...
#include <rendering/rendering.hh>
Public Types | |
enum | RenderPathType { NONE = 0, VERTEX = 1, FORWARD = 2, DEFERRED = 3, RENDER_PATH_COUNT } |
The type of rendering path used by the rendering engine. More... | |
Public Member Functions | |
void | AddResourcePath (const std::string &_uri) |
Add a new path for Ogre to search for resources. More... | |
ScenePtr | CreateScene (const std::string &_name, bool _enableVisualizations, bool _isServer=false) |
Create a scene. More... | |
void | Fini () |
Tears down the rendering engine. More... | |
RenderPathType | GetRenderPathType () const |
Get the type of rendering path to use. More... | |
ScenePtr | GetScene (const std::string &_name="") |
Get a scene by name. More... | |
ScenePtr | GetScene (unsigned int _index) |
Get a scene by index. More... | |
unsigned int | GetSceneCount () const |
Get the number of scenes. More... | |
WindowManagerPtr | GetWindowManager () const |
Get a pointer to the window manager. More... | |
void | Init () |
Initialize Ogre. Load must happen before Init. More... | |
void | Load () |
Load the parameters for Ogre. Load must happen before Init. More... | |
void | RemoveScene (const std::string &_name) |
Remove a scene. More... | |
Public Attributes | |
Ogre::Root * | root |
Pointer to the root scene node. More... | |
Protected Attributes | |
void * | dummyContext |
GLX context used to render the scenes.Used for gui-less operation. More... | |
void * | dummyDisplay |
Pointer to the dummy display.Used for gui-less operation. More... | |
uint64_t | dummyWindowId |
ID for a dummy window. Used for gui-less operation. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SingletonT< RenderEngine > | |
static RenderEngine * | Instance () |
Get an instance of the singleton. More... | |
Protected Member Functions inherited from SingletonT< RenderEngine > | |
SingletonT () | |
Constructor. More... | |
virtual | ~SingletonT () |
Destructor. More... | |
Adaptor to Ogre3d.
Provides the interface to load, initialize the rendering engine.
void gazebo::rendering::RenderEngine::AddResourcePath | ( | const std::string & | _uri | ) |
ScenePtr gazebo::rendering::RenderEngine::CreateScene | ( | const std::string & | _name, |
bool | _enableVisualizations, | ||
bool | _isServer = false |
||
) |
Create a scene.
[in] | _name | The name of the scene. |
[in] | _enableVisualizations | True enables visualization elements such as laser lines. |
void gazebo::rendering::RenderEngine::Fini | ( | ) |
Tears down the rendering engine.
RenderPathType gazebo::rendering::RenderEngine::GetRenderPathType | ( | ) | const |
Get the type of rendering path to use.
This is automatically determined based on the computers capabilities
ScenePtr gazebo::rendering::RenderEngine::GetScene | ( | const std::string & | _name = "" | ) |
Get a scene by name.
[in] | _name | Name of the scene to retreive. |
ScenePtr gazebo::rendering::RenderEngine::GetScene | ( | unsigned int | _index | ) |
Get a scene by index.
The index should be between 0 and GetSceneCount().
[in] | _index | The index of the scene. |
unsigned int gazebo::rendering::RenderEngine::GetSceneCount | ( | ) | const |
Get the number of scenes.
WindowManagerPtr gazebo::rendering::RenderEngine::GetWindowManager | ( | ) | const |
Get a pointer to the window manager.
void gazebo::rendering::RenderEngine::Init | ( | ) |
Initialize Ogre. Load must happen before Init.
void gazebo::rendering::RenderEngine::Load | ( | ) |
Load the parameters for Ogre. Load must happen before Init.
void gazebo::rendering::RenderEngine::RemoveScene | ( | const std::string & | _name | ) |
Remove a scene.
[in] | _name | The name of the scene to remove. |
|
protected |
GLX context used to render the scenes.Used for gui-less operation.
|
protected |
Pointer to the dummy display.Used for gui-less operation.
|
protected |
ID for a dummy window. Used for gui-less operation.
Ogre::Root* gazebo::rendering::RenderEngine::root |
Pointer to the root scene node.