Go to the documentation of this file.
17 #ifndef _GAZEBO_RENDERING_RENDERENGINE_HH_
18 #define _GAZEBO_RENDERING_RENDERENGINE_HH_
43 class RenderEnginePrivate;
90 public:
ScenePtr CreateScene(
const std::string &_name,
91 bool _enableVisualizations,
92 bool _isServer =
false);
96 public:
void RemoveScene(
const std::string &_name);
102 public:
ScenePtr GetScene(
const std::string &_name=
"");
108 public:
ScenePtr GetScene(
unsigned int _index);
112 public:
unsigned int SceneCount()
const;
117 public:
void AddResourcePath(
const std::string &_uri);
122 public: RenderPathType GetRenderPathType()
const;
130 public: Ogre::Root *Root()
const;
134 public: std::vector<unsigned int> FSAALevels()
const;
136 #if OGRE_VERSION_MAJOR > 1 || OGRE_VERSION_MINOR >= 9
137 public: Ogre::OverlaySystem *OverlaySystem()
const;
145 private:
bool CreateContext();
148 private:
void LoadPlugins();
151 private:
void SetupResources();
154 private:
void SetupRenderSystem();
157 private:
void PreRender();
160 private:
void Render();
163 private:
void PostRender();
166 private:
void CheckSystemCapabilities();
183 private: std::unique_ptr<RenderEnginePrivate> dataPtr;
Definition: JointMaker.hh:39
void Fini()
Tears down the rendering engine.
Forward declarations for the common classes.
Definition: Animation.hh:26
std::vector< unsigned int > FSAALevels() const
Get a list of all supported FSAA levels for this render system.
Count of the rendering path enums.
Definition: RenderEngine.hh:67
Singleton template class.
Definition: SingletonT.hh:33
RenderPathType GetRenderPathType() const
Get the type of rendering path to use.
RenderPathType
The type of rendering path used by the rendering engine.
Definition: RenderEngine.hh:56
WindowManagerPtr GetWindowManager() const
Get a pointer to the window manager.
Ogre::Root * Root() const
Get a pointer to the Ogre root object.
Adaptor to Ogre3d.
Definition: RenderEngine.hh:52
void RemoveScene(const std::string &_name)
Remove a scene.
Most basic rendering, with least fidelity.
Definition: RenderEngine.hh:61
ScenePtr CreateScene(const std::string &_name, bool _enableVisualizations, bool _isServer=false)
Create a scene.
unsigned int SceneCount() const
Get the number of scenes.
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:82
ScenePtr GetScene(const std::string &_name="")
Get a scene by name.
void * dummyContext
GLX context used to render the scenes.Used for gui-less operation.
Definition: RenderEngine.hh:176
uint64_t dummyWindowId
ID for a dummy window. Used for gui-less operation.
Definition: RenderEngine.hh:169
Utilizes deferred rendering. Best fidelity.
Definition: RenderEngine.hh:65
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
void * dummyDisplay
Pointer to the dummy display.Used for gui-less operation.
Definition: RenderEngine.hh:172
void AddResourcePath(const std::string &_uri)
Add a new path for Ogre to search for resources.
No rendering is done.
Definition: RenderEngine.hh:59
boost::shared_ptr< WindowManager > WindowManagerPtr
Definition: RenderTypes.hh:186
void Init()
Initialize Ogre. Load must happen before Init.
void Load()
Load the parameters for Ogre. Load must happen before Init.
Utilizes the RTT shader system.
Definition: RenderEngine.hh:63