17 #ifndef GZ_RENDERING_OGRE_OGRESCENE_HH_
18 #define GZ_RENDERING_OGRE_OGRESCENE_HH_
23 #include "gz/rendering/ogre/Export.hh"
37 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
46 public:
virtual void Fini()
override;
50 public:
virtual VisualPtr RootVisual()
const override;
52 public:
virtual math::Color AmbientLight()
const override;
54 public:
virtual void SetAmbientLight(
const math::Color &_color)
override;
56 public:
virtual void SetBackgroundColor(
60 public:
virtual void SetGradientBackgroundColor(
64 public:
virtual void RemoveGradientBackgroundColor()
override;
66 public:
virtual void PreRender()
override;
68 public:
virtual void Clear()
override;
70 public:
virtual void Destroy()
override;
72 public:
virtual Ogre::SceneManager *OgreSceneManager()
const;
74 protected:
virtual bool LoadImpl()
override;
76 protected:
virtual bool InitImpl()
override;
79 unsigned int _id,
const std::string &_name)
override;
82 protected:
virtual COMVisualPtr CreateCOMVisualImpl(
unsigned int _id,
87 unsigned int _id,
const std::string &_name)
override;
90 protected:
virtual JointVisualPtr CreateJointVisualImpl(
unsigned int _id,
93 protected:
virtual LightVisualPtr CreateLightVisualImpl(
unsigned int _id,
96 protected:
virtual PointLightPtr CreatePointLightImpl(
unsigned int _id,
99 protected:
virtual SpotLightPtr CreateSpotLightImpl(
unsigned int _id,
102 protected:
virtual CameraPtr CreateCameraImpl(
unsigned int _id,
107 const unsigned int _id,
112 const unsigned int _id,
117 const unsigned int _id,
120 protected:
virtual GpuRaysPtr CreateGpuRaysImpl(
121 const unsigned int _id,
124 protected:
virtual VisualPtr CreateVisualImpl(
unsigned int _id,
127 protected:
virtual ArrowVisualPtr CreateArrowVisualImpl(
unsigned int _id,
130 protected:
virtual AxisVisualPtr CreateAxisVisualImpl(
unsigned int _id,
134 protected:
virtual GizmoVisualPtr CreateGizmoVisualImpl(
unsigned int _id,
137 protected:
virtual GeometryPtr CreateBoxImpl(
unsigned int _id,
140 protected:
virtual GeometryPtr CreateConeImpl(
unsigned int _id,
143 protected:
virtual GeometryPtr CreateCylinderImpl(
unsigned int _id,
146 protected:
virtual GeometryPtr CreatePlaneImpl(
unsigned int _id,
149 protected:
virtual GeometryPtr CreateSphereImpl(
unsigned int _id,
152 protected:
virtual MeshPtr CreateMeshImpl(
unsigned int _id,
155 protected:
virtual MeshPtr CreateMeshImpl(
167 protected:
virtual CapsulePtr CreateCapsuleImpl(
unsigned int _id,
170 protected:
virtual GridPtr CreateGridImpl(
175 protected:
virtual MarkerPtr CreateMarkerImpl(
180 protected:
virtual LidarVisualPtr CreateLidarVisualImpl(
unsigned int _id,
184 protected:
virtual WireBoxPtr CreateWireBoxImpl(
unsigned int _id,
188 protected:
virtual TextPtr CreateTextImpl(
unsigned int _id,
191 protected:
virtual MaterialPtr CreateMaterialImpl(
unsigned int _id,
195 unsigned int _id,
const std::string &_name)
override;
199 unsigned int _id,
const std::string &_name)
override;
202 unsigned int _id,
const std::string &_name)
override;
206 unsigned int _id,
const std::string &_name)
override;
225 protected:
unsigned int CreateObjectId()
override;
229 public:
void ClearMaterialsCache(
const std::string &_name);
231 private:
void CreateContext();
233 private:
void CreateRootVisual();
235 private:
void CreateMeshFactory();
237 private:
void CreateStores();