22 #ifndef _RENDERENGINE_HH_
23 #define _RENDERENGINE_HH_
94 public:
ScenePtr CreateScene(
const std::string &_name,
95 bool _enableVisualizations,
96 bool _isServer =
false);
100 public:
void RemoveScene(
const std::string &_name);
106 public:
ScenePtr GetScene(
const std::string &_name=
"");
112 public:
ScenePtr GetScene(
unsigned int _index);
116 public:
unsigned int GetSceneCount()
const;
121 public:
void AddResourcePath(
const std::string &_uri);
126 public: RenderPathType GetRenderPathType()
const;
132 #if OGRE_VERSION_MAJOR > 1 || OGRE_VERSION_MINOR >= 9
133 public: Ogre::OverlaySystem *GetOverlaySystem()
const;
140 private:
bool CreateContext();
143 private:
void LoadPlugins();
146 private:
void SetupResources();
149 private:
void SetupRenderSystem();
152 private:
void PreRender();
155 private:
void Render();
158 private:
void PostRender();
161 private:
void CheckSystemCapabilities();
167 private: std::vector< ScenePtr > scenes;
170 private: Ogre::LogManager *logManager;
183 private:
bool headless;
186 private:
bool initialized;
189 private: std::vector<event::ConnectionPtr> connections;
201 #if OGRE_VERSION_MAJOR > 1 || OGRE_VERSION_MINOR >= 9
202 private: Ogre::OverlaySystem *overlaySystem;
Adaptor to Ogre3d.
Definition: RenderEngine.hh:56
Ogre::Root * root
Pointer to the root scene node.
Definition: RenderEngine.hh:164
Forward declarations for transport.
Singleton template class.
Definition: SingletonT.hh:33
RenderPathType
The type of rendering path used by the rendering engine.
Definition: RenderEngine.hh:60
#define GZ_RENDERING_VISIBLE
Definition: system.hh:241
void * dummyDisplay
Pointer to the dummy display.Used for gui-less operation.
Definition: RenderEngine.hh:176
void * dummyContext
GLX context used to render the scenes.Used for gui-less operation.
Definition: RenderEngine.hh:180
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
boost::shared_ptr< WindowManager > WindowManagerPtr
Definition: RenderTypes.hh:175
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:79
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
uint64_t dummyWindowId
ID for a dummy window. Used for gui-less operation.
Definition: RenderEngine.hh:173