BaseVisual.hh
Go to the documentation of this file.
virtual void RemoveVisibilityFlags(uint32_t _flags) override
Remove visibility flags.
Definition: BaseVisual.hh:424
#define IGN_VISIBILITY_ALL
Render everything visibility mask.
Definition: RenderTypes.hh:26
std::map< std::string, Variant > userData
A map of custom key value data.
Definition: BaseVisual.hh:132
virtual uint32_t VisibilityFlags() const override
Get visibility flags.
Definition: BaseVisual.hh:455
bool IsFinite() const
const Vector3d & Max() const
virtual ignition::math::AxisAlignedBox BoundingBox() const override
Get the bounding box in world frame coordinates.
Definition: BaseVisual.hh:392
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: BaseVisual.hh:214
virtual void AddVisibilityFlags(uint32_t _flags) override
Add visibility flags.
Definition: BaseVisual.hh:417
virtual unsigned int GeometryCount() const override
Get the number of geometries attached to this visual.
Definition: BaseVisual.hh:183
T endl(T... args)
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: BaseVisual.hh:225
Definition: BaseStorage.hh:88
ignition::math::AxisAlignedBox boundingBox
The bounding box of the visual.
Definition: BaseVisual.hh:138
virtual math::Pose3d LocalPose() const override
Get the local pose.
Definition: BaseVisual.hh:155
virtual void SetLocalPose(const math::Pose3d &_pose) override
Set the local pose.
Definition: BaseVisual.hh:165
STL class.
virtual void PreRenderGeometries()
Definition: BaseVisual.hh:341
virtual void SetVisibilityFlags(uint32_t _flags) override
Set visibility flags.
Definition: BaseVisual.hh:431
virtual bool HasGeometry(ConstGeometryPtr _geometry) const override
Determine if given geometry is attached to this visual.
Definition: BaseVisual.hh:190
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node...
Definition: Scene.hh:49
virtual void RemoveGeometries() override
Remove all attached geometries from this visual.
Definition: BaseVisual.hh:232
void Merge(const AxisAlignedBox &_box)
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: BaseVisual.hh:304
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: BaseVisual.hh:204
T dynamic_pointer_cast(T... args)
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: BaseVisual.hh:242
virtual RenderEngine * Engine() const =0
Get the creating render-engine of the scene.
const Quaternion< T > & Rot() const
virtual void SetVisible(bool _visible) override
Specify if this visual is visible.
Definition: BaseVisual.hh:354
Definition: BaseVisual.hh:37
Represents a visual node in a scene graph. A Visual is the only node that can have Geometry and other...
Definition: Visual.hh:37
virtual ignition::math::AxisAlignedBox LocalBoundingBox() const override
Get the local bounding box of the visual.
Definition: BaseVisual.hh:363
virtual Variant UserData(const std::string &_key) const override
Get custom data stored in this visual.
Definition: BaseVisual.hh:469
virtual std::string Name() const =0
Get name of the render-engine.
MaterialPtr material
Pointer to material assigned to this visual.
Definition: BaseVisual.hh:129
#define ignerr
const Vector3< T > & Pos() const
virtual void PreRenderChildren() override
Definition: BaseVisual.hh:323
virtual void SetUserData(const std::string &_key, Variant _value) override
Store any custom data associated with this visual.
Definition: BaseVisual.hh:462
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: BaseVisual.hh:197
std::variant< int, float, double, std::string > Variant
Definition: Visual.hh:32
virtual MaterialPtr Material() override
Get the material assigned to attached visuals and geometries.
Definition: BaseVisual.hh:297
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: BaseVisual.hh:313
const Vector3d & Min() const
Represents a surface material of a Geometry.
Definition: Material.hh:47
virtual void SetGeometryMaterial(MaterialPtr _material, bool _unique=true) override
Set the material for all attached geometries only.
Definition: BaseVisual.hh:283
virtual void SetChildMaterial(MaterialPtr _material, bool _unique=true) override
Set the material for all attached visuals only.
Definition: BaseVisual.hh:260
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...
bool IsFinite() const