gz/rendering/base/BaseMesh.hh
STL class.
virtual bool HasSkeleton() const override
Check whether the mesh has skeleton.
Definition: gz/rendering/base/BaseMesh.hh:147
virtual unsigned int SubMeshCount() const override
Get the sub-mesh count.
Definition: gz/rendering/base/BaseMesh.hh:170
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: gz/rendering/base/BaseMesh.hh:259
virtual MaterialPtr Material() const override
Get the currently assigned material.
Definition: gz/rendering/base/BaseMesh.hh:321
bool ownsMaterial
Flag to indicate whether or not this submesh should be responsible for destroying the material.
Definition: gz/rendering/base/BaseMesh.hh:125
virtual bool HasSubMeshName(const std::string &_name) const override
Determine if has sub-mesh with given name.
Definition: gz/rendering/base/BaseMesh.hh:184
Definition: gz/rendering/base/BaseMesh.hh:95
MaterialPtr material
Pointer to currently assigned material.
Definition: gz/rendering/base/BaseMesh.hh:90
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node....
Definition: gz/rendering/Scene.hh:48
MaterialPtr material
Pointer to currently assigned material.
Definition: gz/rendering/base/BaseMesh.hh:128
Represents a collection of mesh geometries.
Definition: gz/rendering/Mesh.hh:35
virtual SubMeshPtr SubMeshByIndex(unsigned int _index) const override
Get sub-mesh at given index.
Definition: gz/rendering/base/BaseMesh.hh:198
BaseSubMesh()
Definition: gz/rendering/base/BaseMesh.hh:272
virtual SubMeshPtr SubMeshByName(const std::string &_name) const override
Get sub-mesh with given name.
Definition: gz/rendering/base/BaseMesh.hh:191
virtual SubMeshStorePtr SubMeshes() const =0
virtual void PreRender()=0
Prepare this object and any of its children for rendering. This should be called for each object in a...
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/BaseMesh.hh:244
Definition: gz/rendering/base/BaseMesh.hh:34
STL class.
virtual ~BaseMesh()
Definition: gz/rendering/base/BaseMesh.hh:141
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 std::map< std::string, math::Matrix4d > SkeletonLocalTransforms() const override
Get the skeleton local transforms.
Definition: gz/rendering/base/BaseMesh.hh:155
virtual void SetMaterial(const std::string &_name, bool _unique=true) override
Set the materials of this SubMesh. The specified material will be retrieved from the parent Scene....
Definition: gz/rendering/base/BaseMesh.hh:295
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/BaseMesh.hh:328
virtual void SetMaterial(const std::string &_name, bool _unique=true) override
Set the materials of this Geometry. The specified material will be retrieved from the parent Scene....
Definition: gz/rendering/base/BaseMesh.hh:214
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: gz/rendering/base/BaseMesh.hh:284
virtual ~BaseSubMesh()
Definition: gz/rendering/base/BaseMesh.hh:278
bool ownsMaterial
Flag to indicate whether or not this mesh should be responsible for destroying the material.
Definition: gz/rendering/base/BaseMesh.hh:87
virtual void SetSkeletonLocalTransforms(const std::map< std::string, math::Matrix4d > &_tfs) override
Set transforms for the skeleton.
Definition: gz/rendering/base/BaseMesh.hh:163
shared_ptr< Material > MaterialPtr
Shared pointer to Material.
Definition: gz/rendering/RenderTypes.hh:143
Represents a surface material of a Geometry.
Definition: gz/rendering/Material.hh:47
virtual bool HasSubMesh(ConstSubMeshPtr _subMesh) const override
Determine if has given sub-mesh.
Definition: gz/rendering/base/BaseMesh.hh:177
virtual void SetMaterialImpl(MaterialPtr _material)=0
Engine implementation for setting the material of this SubMesh.
virtual MaterialPtr Material() const override
Get the material of this geometry.
Definition: gz/rendering/base/BaseMesh.hh:205
virtual void DestroyMaterial(MaterialPtr _material)=0
Unregister and destroy a material.