Go to the documentation of this file.
17 #ifndef GZ_RENDERING_OGRE2_OGRE2SCENE_HH_
18 #define GZ_RENDERING_OGRE2_OGRE2SCENE_HH_
26 #include "gz/rendering/ogre2/Export.hh"
38 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
53 public:
virtual void Fini()
override;
59 public:
virtual VisualPtr RootVisual()
const override;
62 public:
virtual math::Color AmbientLight()
const override;
65 public:
virtual void SetAmbientLight(
const math::Color &_color)
override;
68 public:
virtual void PreRender()
override;
71 public:
virtual void Clear()
override;
74 public:
virtual void Destroy()
override;
78 public:
virtual Ogre::SceneManager *OgreSceneManager()
const;
86 public:
void SetShadowsDirty(
bool _dirty);
92 public:
bool ShadowsDirty()
const;
96 protected:
virtual bool LoadImpl()
override;
99 protected:
virtual bool InitImpl()
override;
103 unsigned int _id,
const std::string &_name)
override;
106 protected:
virtual PointLightPtr CreatePointLightImpl(
unsigned int _id,
110 protected:
virtual SpotLightPtr CreateSpotLightImpl(
unsigned int _id,
114 protected:
virtual CameraPtr CreateCameraImpl(
unsigned int _id,
118 protected:
virtual DepthCameraPtr CreateDepthCameraImpl(
unsigned int _id,
123 unsigned int _id,
const std::string &_name)
override;
126 protected:
virtual GpuRaysPtr CreateGpuRaysImpl(
unsigned int _id,
130 protected:
virtual VisualPtr CreateVisualImpl(
unsigned int _id,
134 protected:
virtual ArrowVisualPtr CreateArrowVisualImpl(
unsigned int _id,
138 protected:
virtual AxisVisualPtr CreateAxisVisualImpl(
unsigned int _id,
142 protected:
virtual GizmoVisualPtr CreateGizmoVisualImpl(
unsigned int _id,
146 protected:
virtual GeometryPtr CreateBoxImpl(
unsigned int _id,
150 protected:
virtual GeometryPtr CreateConeImpl(
unsigned int _id,
154 protected:
virtual GeometryPtr CreateCylinderImpl(
unsigned int _id,
158 protected:
virtual GeometryPtr CreatePlaneImpl(
unsigned int _id,
162 protected:
virtual GeometryPtr CreateSphereImpl(
unsigned int _id,
169 protected:
virtual MeshPtr CreateMeshImpl(
unsigned int _id,
173 protected:
virtual MeshPtr CreateMeshImpl(
unsigned int _id,
178 protected:
virtual GridPtr CreateGridImpl(
unsigned int _id,
182 protected:
virtual MarkerPtr CreateMarkerImpl(
unsigned int _id,
186 protected:
virtual TextPtr CreateTextImpl(
unsigned int _id,
189 protected:
virtual MaterialPtr CreateMaterialImpl(
unsigned int _id,
193 unsigned int _id,
const std::string &_name)
override;
197 unsigned int _id,
const std::string &_name)
override;
201 unsigned int _id,
const std::string &_name)
override;
223 private:
void CreateContext();
226 private:
void CreateRootVisual();
229 private:
void CreateMeshFactory();
232 private:
void CreateStores();
256 protected: Ogre::SceneManager *ogreSceneManager =
nullptr;
Definition: gz/rendering/ogre/OgreCamera.hh:27
Describes how a Mesh should be loaded.
Definition: gz/rendering/MeshDescriptor.hh:44
Ogre2LightStorePtr lights
A list of ogre lights.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:250
Ogre2VisualStorePtr visuals
A list of ogre visuals.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:247
Ogre2 render engine class. A singleton class that manages the underlying ogre2 render engine,...
Definition: gz/rendering/ogre2/Ogre2RenderEngine.hh:74
Ogre2SensorStorePtr sensors
A list of ogre sensors, e.g. cameras.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:244
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:41
Ogre2MeshFactoryPtr meshFactory
Mesh factory for generating ogre meshes.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:241
Ogre2VisualPtr rootVisual
Root visual in the scene.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:238
Definition: gz/rendering/base/BaseScene.hh:37
An abstract interface to a concrete render-engine. A RenderEngine is responsible for initializing a r...
Definition: gz/rendering/RenderEngine.hh:36
Ogre2MaterialMapPtr materials
A list of ogre materials.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:253