gz/rendering/base/BaseVisual.hh
virtual GeometryPtr GeometryByIndex(unsigned int _index) const override
Get geometry at given index. If no geometry exists at given index, NULL will be returned.
Definition: gz/rendering/base/BaseVisual.hh:168
virtual GeometryStorePtr Geometries() const =0
virtual bool DetachGeometry(GeometryPtr _geometry)=0
STL class.
Definition: gz/rendering/base/BaseVisual.hh:35
virtual void RemoveGeometries() override
Remove all attached geometries from this visual.
Definition: gz/rendering/base/BaseVisual.hh:203
virtual void SetUserData(const std::string &_key, Variant _value) override
Store any custom data associated with this visual.
Definition: gz/rendering/base/BaseVisual.hh:334
Vector3< T > & Pos()
virtual std::string Name() const =0
Get name of the render-engine.
virtual RenderEngine * Engine() const =0
Get the creating render-engine of the scene.
virtual void SetVisible(bool _visible) override
Specify if this visual is visible.
Definition: gz/rendering/base/BaseVisual.hh:325
virtual unsigned int GeometryCount() const override
Get the number of geometries attached to this visual.
Definition: gz/rendering/base/BaseVisual.hh:154
virtual void PreRenderChildren() override
Definition: gz/rendering/base/BaseVisual.hh:294
virtual void SetGeometryMaterial(MaterialPtr _material, bool _unique=true) override
Set the material for all attached geometries only.
Definition: gz/rendering/base/BaseVisual.hh:254
#define ignerr
MaterialPtr material
Pointer to material assigned to this visual.
Definition: gz/rendering/base/BaseVisual.hh:106
virtual void AddGeometry(GeometryPtr _geometry) override
Add the given geometry to this visual. If the given node is already attached, no work will be done.
Definition: gz/rendering/base/BaseVisual.hh:175
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node....
Definition: gz/rendering/Scene.hh:48
std::map< std::string, Variant > userData
A map of custom key value data.
Definition: gz/rendering/base/BaseVisual.hh:109
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: gz/rendering/base/BaseVisual.hh:275
virtual void PreRenderGeometries()
Definition: gz/rendering/base/BaseVisual.hh:312
Represents a visual node in a scene graph. A Visual is the only node that can have Geometry and other...
Definition: gz/rendering/Visual.hh:36
virtual math::Pose3d LocalPose() const override
Get the local pose.
Definition: gz/rendering/base/BaseVisual.hh:126
virtual MaterialPtr Material(const std::string &_name) const =0
Get material registered under the given name. If no material is registered under the given name,...
virtual bool AttachGeometry(GeometryPtr _geometry)=0
virtual GeometryPtr RemoveGeometryByIndex(unsigned int _index) override
Remove the geometry at the given index from this visual. If the specified node is not attached this v...
Definition: gz/rendering/base/BaseVisual.hh:196
virtual void SetLocalPose(const math::Pose3d &_pose) override
Set the local pose.
Definition: gz/rendering/base/BaseVisual.hh:136
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: gz/rendering/base/BaseVisual.hh:284
virtual void SetMaterial(const std::string &_name, bool _unique=true) override
Set the material for all attached visuals and geometries. The specified material will be retrieved fr...
Definition: gz/rendering/base/BaseVisual.hh:213
T endl(T... args)
std::variant< int, float, double, std::string > Variant
Definition: gz/rendering/Visual.hh:31
BaseVisual()
Definition: gz/rendering/base/BaseVisual.hh:114
virtual Variant UserData(const std::string &_key) const override
Get custom data stored in this visual.
Definition: gz/rendering/base/BaseVisual.hh:341
virtual bool HasGeometry(ConstGeometryPtr _geometry) const override
Determine if given geometry is attached to this visual.
Definition: gz/rendering/base/BaseVisual.hh:161
virtual GeometryPtr RemoveGeometry(GeometryPtr _geometry) override
Remove the given geometry from this visual. If the given node is not a child of this visual,...
Definition: gz/rendering/base/BaseVisual.hh:185
Represents a surface material of a Geometry.
Definition: gz/rendering/Material.hh:47
virtual MaterialPtr Material() override
Get the material assigned to attached visuals and geometries.
Definition: gz/rendering/base/BaseVisual.hh:268
bool IsFinite() const
virtual void SetChildMaterial(MaterialPtr _material, bool _unique=true) override
Set the material for all attached visuals only.
Definition: gz/rendering/base/BaseVisual.hh:231
virtual ~BaseVisual()
Definition: gz/rendering/base/BaseVisual.hh:120
Quaternion< T > & Rot()