gz/rendering/Mesh.hh
STL class.
virtual std::map< std::string, math::Matrix4d > SkeletonLocalTransforms() const =0
Get the skeleton local transforms.
Describes how a Mesh should be loaded.
Definition: gz/rendering/MeshDescriptor.hh:44
virtual const MeshDescriptor & Descriptor() const =0
Get the mesh's mesh descriptor.
virtual bool HasSkeleton() const =0
Check whether the mesh has skeleton.
virtual void SetDescriptor(const MeshDescriptor &_desc)=0
Set the mesh's mesh descriptor.
virtual ~SubMesh()
Deconstructor.
Definition: gz/rendering/Mesh.hh:140
virtual bool HasSubMeshName(const std::string &_name) const =0
Determine if has sub-mesh with given name.
virtual SubMeshPtr SubMeshByIndex(unsigned int _index) const =0
Get sub-mesh at given index.
Represents a collection of mesh geometries.
Definition: gz/rendering/Mesh.hh:37
virtual void SetSkeletonLocalTransforms(const std::map< std::string, math::Matrix4d > &_tfs)=0
Set transforms for the skeleton.
virtual std::unordered_map< std::string, float > SkeletonWeights() const =0
Get skeleton node weight.
virtual SubMeshPtr SubMeshByName(const std::string &_name) const =0
Get sub-mesh with given name.
virtual unsigned int SubMeshCount() const =0
Get the sub-mesh count.
STL class.
virtual bool HasSubMesh(ConstSubMeshPtr _subMesh) const =0
Determine if has given sub-mesh.
virtual void SetSkeletonAnimationEnabled(const std::string &_name, bool _enabled, bool _loop=true, float _weight=1.0)=0
Set whether a skeleton animation should be enabled or not.
virtual void SetMaterial(const std::string &_name, bool _unique=true)=0
Set the materials of this SubMesh. The specified material will be retrieved from the parent Scene....
Represents an object present in the scene graph. This includes sub-meshes, materials,...
Definition: gz/rendering/Object.hh:34
virtual bool SkeletonAnimationEnabled(const std::string &_name) const =0
Get whether a skeleton animation is enabled or not.
Represents a surface material of a Geometry.
Definition: gz/rendering/Material.hh:47
virtual void UpdateSkeletonAnimation(std::chrono::steady_clock::duration _time)=0
Play the active skeleton animation to the specified time.
STL class.
Represents a geometric shape to be rendered.
Definition: gz/rendering/Geometry.hh:34
virtual MaterialPtr Material() const =0
Get the currently assigned material.
virtual void SetSkeletonWeights(const std::unordered_map< std::string, float > &_weights)=0
Set skeleton node weight.