22 #ifndef _RENDERENGINE_HH_
23 #define _RENDERENGINE_HH_
93 public:
ScenePtr CreateScene(
const std::string &_name,
94 bool _enableVisualizations,
95 bool _isServer =
false);
99 public:
void RemoveScene(
const std::string &_name);
105 public:
ScenePtr GetScene(
const std::string &_name=
"");
111 public:
ScenePtr GetScene(
unsigned int _index);
115 public:
unsigned int GetSceneCount()
const;
120 public:
void AddResourcePath(
const std::string &_uri);
125 public: RenderPathType GetRenderPathType()
const;
131 #if OGRE_VERSION_MAJOR > 1 || OGRE_VERSION_MINOR >= 9
132 public: Ogre::OverlaySystem *GetOverlaySystem()
const;
139 private:
bool CreateContext();
142 private:
void LoadPlugins();
145 private:
void SetupResources();
148 private:
void SetupRenderSystem();
151 private:
void PreRender();
154 private:
void Render();
157 private:
void PostRender();
160 private:
void CheckSystemCapabilities();
166 private: std::vector< ScenePtr > scenes;
169 private: Ogre::LogManager *logManager;
182 private:
bool headless;
185 private:
bool initialized;
188 private: std::vector<event::ConnectionPtr> connections;
200 #if OGRE_VERSION_MAJOR > 1 || OGRE_VERSION_MINOR >= 9
201 private: Ogre::OverlaySystem *overlaySystem;
Adaptor to Ogre3d.
Definition: RenderEngine.hh:55
Ogre::Root * root
Pointer to the root scene node.
Definition: RenderEngine.hh:163
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:59
void * dummyDisplay
Pointer to the dummy display.Used for gui-less operation.
Definition: RenderEngine.hh:175
void * dummyContext
GLX context used to render the scenes.Used for gui-less operation.
Definition: RenderEngine.hh:179
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:52
boost::shared_ptr< WindowManager > WindowManagerPtr
Definition: RenderTypes.hh:148
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:72
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:172
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48