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:200
virtual GeometryStorePtr Geometries() const =0
virtual bool DetachGeometry(GeometryPtr _geometry)=0
STL class.
virtual void AddVisibilityFlags(uint32_t _flags) override
Add visibility flags.
Definition: gz/rendering/base/BaseVisual.hh:435
Definition: gz/rendering/base/BaseVisual.hh:37
virtual void SetWireframe(bool _show) override
Enable or disable wireframe.
Definition: gz/rendering/base/BaseVisual.hh:363
2D or 3D Bounding box. It stores the position / orientation / size info of the box and its label
Definition: gz/rendering/BoundingBox.hh:41
virtual void RemoveGeometries() override
Remove all attached geometries from this visual.
Definition: gz/rendering/base/BaseVisual.hh:235
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:372
bool IsFinite() const
virtual unsigned int GeometryCount() const override
Get the number of geometries attached to this visual.
Definition: gz/rendering/base/BaseVisual.hh:186
virtual void PreRenderChildren() override
Definition: gz/rendering/base/BaseVisual.hh:325
virtual void SetGeometryMaterial(MaterialPtr _material, bool _unique=true) override
Set the material for all attached geometries only.
Definition: gz/rendering/base/BaseVisual.hh:286
#define ignerr
MaterialPtr material
Pointer to material assigned to this visual.
Definition: gz/rendering/base/BaseVisual.hh:132
virtual ignition::math::AxisAlignedBox LocalBoundingBox() const override
Get the local bounding box of the visual.
Definition: gz/rendering/base/BaseVisual.hh:381
virtual ignition::math::AxisAlignedBox BoundingBox() const override
Get the bounding box in world frame coordinates.
Definition: gz/rendering/base/BaseVisual.hh:410
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:207
virtual void SetVisibilityFlags(uint32_t _flags) override
Set visibility flags.
Definition: gz/rendering/base/BaseVisual.hh:449
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node....
Definition: gz/rendering/Scene.hh:49
uint32_t visibilityFlags
Visual's visibility flags.
Definition: gz/rendering/base/BaseVisual.hh:135
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:307
virtual void PreRenderGeometries()
Definition: gz/rendering/base/BaseVisual.hh:343
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:33
Vector3d & Max()
#define IGN_VISIBILITY_ALL
Render everything visibility mask.
Definition: gz/rendering/RenderTypes.hh:26
virtual math::Pose3d LocalPose() const override
Get the local pose.
Definition: gz/rendering/base/BaseVisual.hh:158
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:228
virtual void SetLocalPose(const math::Pose3d &_pose) override
Set the local pose.
Definition: gz/rendering/base/BaseVisual.hh:168
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:315
virtual uint32_t VisibilityFlags() const override
Get visibility flags.
Definition: gz/rendering/base/BaseVisual.hh:473
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:245
T endl(T... args)
virtual VisualPtr Clone(const std::string &_name, NodePtr _newParent) const override
Clone the visual (and its children) with a new name.
Definition: gz/rendering/base/BaseVisual.hh:480
bool wireframe
True if wireframe mode is enabled else false.
Definition: gz/rendering/base/BaseVisual.hh:141
BaseVisual()
Definition: gz/rendering/base/BaseVisual.hh:146
T empty(T... args)
Vector3d & Min()
virtual MaterialPtr Material() const override
Get the material assigned to attached visuals and geometries.
Definition: gz/rendering/base/BaseVisual.hh:300
virtual bool HasGeometry(ConstGeometryPtr _geometry) const override
Determine if given geometry is attached to this visual.
Definition: gz/rendering/base/BaseVisual.hh:193
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:217
Represents a surface material of a Geometry.
Definition: gz/rendering/Material.hh:47
bool IsFinite() const
void Merge(const AxisAlignedBox &_box)
virtual void SetChildMaterial(MaterialPtr _material, bool _unique=true) override
Set the material for all attached visuals only.
Definition: gz/rendering/base/BaseVisual.hh:263
virtual void RemoveVisibilityFlags(uint32_t _flags) override
Remove visibility flags.
Definition: gz/rendering/base/BaseVisual.hh:442
ignition::math::AxisAlignedBox boundingBox
The bounding box of the visual.
Definition: gz/rendering/base/BaseVisual.hh:138
virtual ~BaseVisual()
Definition: gz/rendering/base/BaseVisual.hh:152
Quaternion< T > & Rot()
virtual bool Wireframe() const override
Get whether wireframe is enabled for this visual.
Definition: gz/rendering/base/BaseVisual.hh:356