gz/rendering/base/BaseVisual.hh
Go to the documentation of this file.
void Merge(const AxisAlignedBox &_box)
Vector3d & Max()
Vector3d & Min()
Quaternion< T > & Rot()
bool IsFinite() const
Vector3< T > & Pos()
bool IsFinite() const
Definition: gz/rendering/base/BaseVisual.hh:40
virtual bool HasGeometry(ConstGeometryPtr _geometry) const override
Determine if given geometry is attached to this visual.
Definition: gz/rendering/base/BaseVisual.hh:193
virtual void RemoveGeometries() override
Remove all attached geometries from this visual.
Definition: gz/rendering/base/BaseVisual.hh:235
virtual MaterialPtr Material() const override
Get the material assigned to attached visuals and geometries.
Definition: gz/rendering/base/BaseVisual.hh:300
virtual void SetLocalPose(const math::Pose3d &_pose) override
Set the local pose.
Definition: gz/rendering/base/BaseVisual.hh:168
virtual GeometryStorePtr Geometries() const =0
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 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 void RemoveVisibilityFlags(uint32_t _flags) override
Remove visibility flags.
Definition: gz/rendering/base/BaseVisual.hh:442
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 SetChildMaterial(MaterialPtr _material, bool _unique=true) override
Set the material for all attached visuals only.
Definition: gz/rendering/base/BaseVisual.hh:263
virtual void AddVisibilityFlags(uint32_t _flags) override
Add visibility flags.
Definition: gz/rendering/base/BaseVisual.hh:435
ignition::math::AxisAlignedBox boundingBox
The bounding box of the visual.
Definition: gz/rendering/base/BaseVisual.hh:138
virtual void SetWireframe(bool _show) override
Enable or disable wireframe.
Definition: gz/rendering/base/BaseVisual.hh:363
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
virtual ~BaseVisual()
Definition: gz/rendering/base/BaseVisual.hh:152
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
virtual void SetVisible(bool _visible) override
Specify if this visual is visible.
Definition: gz/rendering/base/BaseVisual.hh:372
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 ignition::math::AxisAlignedBox LocalBoundingBox() const override
Get the local bounding box of the visual.
Definition: gz/rendering/base/BaseVisual.hh:381
virtual math::Pose3d LocalPose() const override
Get the local pose.
Definition: gz/rendering/base/BaseVisual.hh:158
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 ignition::math::AxisAlignedBox BoundingBox() const override
Get the bounding box in world frame coordinates.
Definition: gz/rendering/base/BaseVisual.hh:410
virtual bool DetachGeometry(GeometryPtr _geometry)=0
virtual unsigned int GeometryCount() const override
Get the number of geometries attached to this visual.
Definition: gz/rendering/base/BaseVisual.hh:186
virtual void SetGeometryMaterial(MaterialPtr _material, bool _unique=true) override
Set the material for all attached geometries only.
Definition: gz/rendering/base/BaseVisual.hh:286
virtual bool Wireframe() const override
Get whether wireframe is enabled for this visual.
Definition: gz/rendering/base/BaseVisual.hh:356
virtual void SetMaterial(MaterialPtr _material, bool _unique=true) override
Set the material for all attached visuals and geometries.
Definition: gz/rendering/base/BaseVisual.hh:253
virtual void PreRenderGeometries()
Definition: gz/rendering/base/BaseVisual.hh:343
BaseVisual()
Definition: gz/rendering/base/BaseVisual.hh:146
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
virtual void SetVisibilityFlags(uint32_t _flags) override
Set visibility flags.
Definition: gz/rendering/base/BaseVisual.hh:449
MaterialPtr material
Pointer to material assigned to this visual.
Definition: gz/rendering/base/BaseVisual.hh:132
virtual bool AttachGeometry(GeometryPtr _geometry)=0
virtual void PreRenderChildren() override
Definition: gz/rendering/base/BaseVisual.hh:325
Represents a surface material of a Geometry.
Definition: gz/rendering/Material.hh:49
virtual std::string Name() const =0
Get name of the render-engine.
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node....
Definition: gz/rendering/Scene.hh:50
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 RenderEngine * Engine() const =0
Get the creating render-engine of the scene.
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:35
T empty(T... args)
T endl(T... args)
#define ignerr
#define IGN_VISIBILITY_ALL
Render everything visibility mask.
Definition: gz/rendering/RenderTypes.hh:26