gz/rendering/base/BaseScene.hh
Go to the documentation of this file.
840 protected: math::Color backgroundColor;
virtual PointLightPtr CreatePointLightImpl(unsigned int _id, const std::string &_name)=0
virtual void DestroyLight(LightPtr _light, bool _recursive=false) override
std::chrono::steady_clock::duration time
Definition: gz/rendering/base/BaseScene.hh:832
virtual void DestroyVisualByIndex(unsigned int _index) override
virtual MaterialPtr Material(const std::string &_name) const override
virtual SensorStorePtr Sensors() const =0
virtual LidarVisualPtr CreateLidarVisual() override
virtual BoundingBoxCameraPtr CreateBoundingBoxCameraImpl(unsigned int _id, const std::string &_name)
Implementation for creating a BoundingBox camera.
Definition: gz/rendering/base/BaseScene.hh:637
virtual AxisVisualPtr CreateAxisVisual() override
virtual SensorPtr SensorById(unsigned int _id) const override
virtual MaterialMapPtr Materials() const =0
shared_ptr< GpuRays > GpuRaysPtr
Shared pointer to GpuRays.
Definition: gz/rendering/RenderTypes.hh:127
STL class.
virtual LightVisualPtr CreateLightVisualImpl(unsigned int _id, const std::string &_name)=0
Implementation for creating Light visual.
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
virtual math::Color BackgroundColor() const override
virtual GeometryPtr CreateConeImpl(unsigned int _id, const std::string &_name)=0
virtual RayQueryPtr CreateRayQuery() override
virtual void DestroyNodeByIndex(unsigned int _index) override
Describes how a Heightmap should be loaded.
Definition: gz/rendering/HeightmapDescriptor.hh:146
virtual SensorPtr SensorByIndex(unsigned int _index) const override
Describes how a Mesh should be loaded.
Definition: gz/rendering/MeshDescriptor.hh:44
virtual MaterialPtr CreateMaterialImpl(unsigned int _id, const std::string &_name)=0
virtual std::string Name() const override
virtual bool HasLightName(const std::string &_name) const override
virtual SensorPtr SensorByName(const std::string &_name) const override
virtual void DestroySensor(SensorPtr _sensor, bool _recursive=false) override
virtual HeightmapPtr CreateHeightmap(const HeightmapDescriptor &_desc) override
virtual bool RegisterVisual(VisualPtr _visual)
virtual VisualPtr CreateVisual() override
virtual GeometryPtr CreatePlane() override
virtual bool HasSensor(ConstSensorPtr _sensor) const override
virtual void RegisterMaterial(const std::string &_name, MaterialPtr _material) override
virtual bool IsGradientBackgroundColor() const override
virtual RenderTexturePtr CreateRenderTexture() override
virtual bool HasSensorId(unsigned int _id) const override
virtual unsigned int Id() const override
virtual JointVisualPtr CreateJointVisualImpl(unsigned int _id, const std::string &_name)=0
Implementation for creating Joint visual.
virtual RenderTexturePtr CreateRenderTextureImpl(unsigned int _id, const std::string &_name)=0
virtual InertiaVisualPtr CreateInertiaVisualImpl(unsigned int _id, const std::string &_name)=0
Implementation for creating Inertia visual.
shared_ptr< ParticleEmitter > ParticleEmitterPtr
Shared pointer to ParticleEmitter.
Definition: gz/rendering/RenderTypes.hh:215
virtual LightPtr LightByName(const std::string &_name) const override
virtual WireBoxPtr CreateWireBox() override
virtual CapsulePtr CreateCapsuleImpl(unsigned int _id, const std::string &_name)=0
Implementation for creating a capsule geometry object.
virtual RayQueryPtr CreateRayQueryImpl(unsigned int _id, const std::string &_name)=0
virtual void DestroyNode(NodePtr _node, bool _recursive=false) override
virtual unsigned int VisualCount() const override
virtual bool HasLightId(unsigned int _id) const override
virtual void DestroyNodes() override
virtual void DestroySensors() override
virtual NodePtr NodeByIndex(unsigned int _index) const override
virtual GizmoVisualPtr CreateGizmoVisual() override
virtual bool LegacyAutoGpuFlush() const override
virtual VisualPtr VisualAt(const CameraPtr &_camera, const gz::math::Vector2i &_mousePos) override
virtual void Load() override
virtual COMVisualPtr CreateCOMVisualImpl(unsigned int _id, const std::string &_name)=0
Implementation for creating CoM visual.
virtual TextPtr CreateText() override
virtual DirectionalLightPtr CreateDirectionalLightImpl(unsigned int _id, const std::string &_name)=0
virtual GeometryPtr CreateBox() override
virtual void DestroyLightByName(const std::string &_name) override
virtual bool HasLight(ConstLightPtr _light) const override
virtual DepthCameraPtr CreateDepthCamera() override
virtual void SetGradientBackgroundColor(const std::array< math::Color, 4 > &_colors) override
virtual WireBoxPtr CreateWireBoxImpl(unsigned int _id, const std::string &_name)=0
Implementation for creating a wire box geometry.
virtual InertiaVisualPtr CreateInertiaVisual() override
virtual RenderWindowPtr CreateRenderWindowImpl(unsigned int _id, const std::string &_name)=0
Render engine specific implementation for creating a render window.
virtual bool HasNode(ConstNodePtr _node) const override
virtual std::chrono::steady_clock::duration Time() const override
virtual TextPtr CreateTextImpl(unsigned int _id, const std::string &_name)
Implementation for creating a text's geometry object.
virtual GeometryPtr CreateCylinder() override
#define ignerr
virtual unsigned int NodeCount() const override
virtual bool HasNodeName(const std::string &_name) const override
virtual MarkerPtr CreateMarker() override
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node....
Definition: gz/rendering/Scene.hh:49
virtual SpotLightPtr CreateSpotLightImpl(unsigned int _id, const std::string &_name)=0
virtual SegmentationCameraPtr CreateSegmentationCameraImpl(unsigned int _id, const std::string &_name)
Implementation for creating a segmentation camera.
Definition: gz/rendering/base/BaseScene.hh:652
virtual void DestroyVisualByName(const std::string &_name) override
virtual bool IsInitialized() const override
virtual std::array< math::Color, 4 > GradientBackgroundColor() const override
virtual SegmentationCameraPtr CreateSegmentationCamera() override
virtual bool RegisterLight(LightPtr _light)
virtual GeometryPtr CreateSphere() override
virtual void Fini() override
virtual void SetSkyEnabled(bool _enabled) override
virtual LightPtr LightByIndex(unsigned int _index) const override
virtual std::string CreateObjectName(unsigned int _id, const std::string &_prefix)
virtual void Clear() override
shared_ptr< BoundingBoxCamera > BoundingBoxCameraPtr
Shared pointer to BoundingBoxCamera.
Definition: gz/rendering/RenderTypes.hh:119
virtual GeometryPtr CreateCone() override
virtual void DestroySensorByName(const std::string &_name) override
virtual common::Time SimTime() const override
virtual NodePtr NodeById(unsigned int _id) const override
virtual unsigned int CreateObjectId()
virtual LightPtr LightById(unsigned int _id) const override
virtual MeshPtr CreateMeshImpl(unsigned int _id, const std::string &_name, const MeshDescriptor &_desc)=0
virtual BoundingBoxCameraPtr CreateBoundingBoxCamera() override
virtual VisualPtr VisualByName(const std::string &_name) const override
virtual LightStorePtr Lights() const =0
virtual GeometryPtr CreatePlaneImpl(unsigned int _id, const std::string &_name)=0
virtual void UnregisterMaterials() override
STL class.
common::Time simTime
Definition: gz/rendering/base/BaseScene.hh:830
virtual void DestroyLightById(unsigned int _id) override
virtual void SetTime(const std::chrono::steady_clock::duration &_time) override
math::Color backgroundColor
Scene background color. Default should be black.
Definition: gz/rendering/base/BaseScene.hh:840
virtual bool LoadImpl()=0
virtual void PostRender() override
virtual void DestroyNodeById(unsigned int _id) override
virtual DirectionalLightPtr CreateDirectionalLight() override
virtual unsigned int LightCount() const override
virtual void DestroyLights() override
virtual GpuRaysPtr CreateGpuRays() override
virtual bool HasVisual(ConstVisualPtr _visual) const override
virtual void DestroyVisualById(unsigned int _id) override
virtual void SetBackgroundMaterial(MaterialPtr _material) override
virtual LidarVisualPtr CreateLidarVisualImpl(unsigned int _id, const std::string &_name)=0
Implementation for creating a lidar visual.
virtual ParticleEmitterPtr CreateParticleEmitter() override
shared_ptr< GizmoVisual > GizmoVisualPtr
Shared pointer to GizmoVisual.
Definition: gz/rendering/RenderTypes.hh:147
virtual void DestroyMaterials() override
virtual void DestroyVisual(VisualPtr _visual, bool _recursive=false) override
virtual ArrowVisualPtr CreateArrowVisualImpl(unsigned int _id, const std::string &_name)=0
virtual MaterialPtr BackgroundMaterial() const override
virtual VisualStorePtr Visuals() const =0
virtual void SetAmbientLight(double _r, double _g, double _b, double _a=1.0) override
virtual void DestroyNodeByName(const std::string &_name) override
virtual void Init() override
virtual CameraPtr CreateCamera() override
virtual void DestroyMaterial(MaterialPtr _material) override
virtual GpuRaysPtr CreateGpuRaysImpl(unsigned int _id, const std::string &_name)
Implementation for creating GpuRays sensor.
Definition: gz/rendering/base/BaseScene.hh:667
shared_ptr< ThermalCamera > ThermalCameraPtr
Shared pointer to ThermalCamera.
Definition: gz/rendering/RenderTypes.hh:115
virtual PointLightPtr CreatePointLight() override
virtual bool HasNodeId(unsigned int _id) const override
virtual void Destroy() override
virtual ThermalCameraPtr CreateThermalCamera() override
virtual GeometryPtr CreateBoxImpl(unsigned int _id, const std::string &_name)=0
T endl(T... args)
virtual uint8_t CameraPassCountPerGpuFlush() const override
Definition: gz/rendering/base/BaseScene.hh:37
virtual CameraPtr CreateCameraImpl(unsigned int _id, const std::string &_name)=0
virtual SpotLightPtr CreateSpotLight() override
virtual bool MaterialRegistered(const std::string &_name) const override
virtual void DestroyLightByIndex(unsigned int _index) override
virtual bool HasVisualId(unsigned int _id) const override
virtual VisualPtr VisualById(unsigned int _id) const override
virtual AxisVisualPtr CreateAxisVisualImpl(unsigned int _id, const std::string &_name)=0
virtual void DestroySensorById(unsigned int _id) override
STL namespace.
MaterialPtr backgroundMaterial
Scene background material.
Definition: gz/rendering/base/BaseScene.hh:855
virtual void DestroyVisuals() override
bool initialized
Definition: gz/rendering/base/BaseScene.hh:837
BaseScene(unsigned int _id, const std::string &_name)
virtual NodePtr NodeByName(const std::string &_name) const override
virtual ~BaseScene()
virtual bool HasVisualName(const std::string &_name) const override
virtual MeshPtr CreateMesh(const std::string &_meshName) override
virtual GridPtr CreateGrid() override
virtual bool IsLoaded() const
virtual GizmoVisualPtr CreateGizmoVisualImpl(unsigned int _id, const std::string &_name)
Implementation for creating a GizmoVisual.
Definition: gz/rendering/base/BaseScene.hh:689
virtual void DestroySensorByIndex(unsigned int _index) override
virtual CapsulePtr CreateCapsule() override
virtual ArrowVisualPtr CreateArrowVisual() override
virtual ThermalCameraPtr CreateThermalCameraImpl(unsigned int _id, const std::string &_name)
Implementation for creating a thermal camera.
Definition: gz/rendering/base/BaseScene.hh:622
virtual void SetBackgroundColor(double _r, double _g, double _b, double _a=1.0) override
std::array< math::Color, 4 > gradientBackgroundColor
The four corners of the gradient background color. Next is the description of how to interpret each v...
Definition: gz/rendering/base/BaseScene.hh:849
virtual DepthCameraPtr CreateDepthCameraImpl(unsigned int _id, const std::string &_name)=0
virtual GridPtr CreateGridImpl(unsigned int _id, const std::string &_name)=0
Implementation for creating a grid geometry object.
virtual HeightmapPtr CreateHeightmapImpl(unsigned int _id, const std::string &_name, const HeightmapDescriptor &_desc)=0
Implementation for creating a heightmap geometry.
virtual COMVisualPtr CreateCOMVisual() override
virtual bool InitImpl()=0
virtual RenderWindowPtr CreateRenderWindow() override
virtual unsigned int SensorCount() const override
virtual void UnregisterMaterial(const std::string &_name) override
Represents a surface material of a Geometry.
Definition: gz/rendering/Material.hh:47
virtual ParticleEmitterPtr CreateParticleEmitterImpl(unsigned int _id, const std::string &_name)
Implementation for creating a ParticleEmitter.
Definition: gz/rendering/base/BaseScene.hh:790
virtual GeometryPtr CreateSphereImpl(unsigned int _id, const std::string &_name)=0
virtual bool HasSensorName(const std::string &_name) const override
virtual VisualPtr CreateVisualImpl(unsigned int _id, const std::string &_name)=0
virtual MaterialPtr CreateMaterial(const std::string &_name="") override
STL class.
virtual void PreRender() override
shared_ptr< SegmentationCamera > SegmentationCameraPtr
Shared pointer to Segmentation Camera.
Definition: gz/rendering/RenderTypes.hh:123
virtual bool RegisterSensor(SensorPtr _vensor)
virtual void SetSimTime(const common::Time &_time) override
virtual GeometryPtr CreateCylinderImpl(unsigned int _id, const std::string &_name)=0
virtual VisualPtr VisualByIndex(unsigned int _index) const override
virtual LightVisualPtr CreateLightVisual() override
virtual MarkerPtr CreateMarkerImpl(unsigned int _id, const std::string &_name)=0
Implementation for creating a marker geometry object.
virtual bool SkyEnabled() const override
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
virtual JointVisualPtr CreateJointVisual() override
virtual void SetCameraPassCountPerGpuFlush(uint8_t _numPass) override
bool isGradientBackgroundColor
Whether the scene has a gradient background.
Definition: gz/rendering/base/BaseScene.hh:852
virtual void RemoveGradientBackgroundColor() override