15 #ifndef OSGANIMATION_VERTEX_INFLUENCE
16 #define OSGANIMATION_VERTEX_INFLUENCE 1
19 #include <osgAnimation/Export>
33 const std::string&
getName()
const {
return _name;}
34 void setName(
const std::string& name) { _name = name;}
61 BoneWeight(
const std::string& name,
float weight) : _boneName(name), _weight(weight) {}
77 void setBones(BoneWeightList& bones) { _bones = bones;}
78 const BoneWeightList&
getBones()
const {
return _bones;}
80 const std::vector<int>&
getVertexes()
const {
return _vertexes;}
90 void buildVertex2BoneList();
91 void buildUniqVertexSetToBoneSetList();
94 const VertexIndexToBoneWeightMap& getVertexToBoneList()
const;
const UniqVertexSetToBoneSetList & getUniqVertexSetToBoneSetList() const
#define OSGANIMATION_EXPORT
std::vector< VertexInfluence > BoneToVertexList
BoneWeight(const std::string &name, float weight)
bool operator==(const BoneWeight &b) const
VertexIndexToBoneWeightMap _vertex2Bones
std::vector< int > _vertexes
std::vector< int > & getVertexes()
const std::vector< int > & getVertexes() const
void setName(const std::string &name)
BoneToVertexList _bone2Vertexes
META_Object(osgAnimation, VertexInfluenceMap)
const std::string & getName() const
const std::string & getBoneName() const
std::vector< VertexIndexWeight > VertexList
std::vector< UniqVertexSetToBoneSet > UniqVertexSetToBoneSetList
void setWeight(float weight)
std::map< int, BoneWeightList > VertexIndexToBoneWeightMap
const BoneWeightList & getBones() const
void setBones(BoneWeightList &bones)
UniqVertexSetToBoneSetList _uniqVertexSetToBoneSet
std::vector< BoneWeight > BoneWeightList
std::pair< int, float > VertexIndexWeight
VertexInfluenceMap(const osgAnimation::VertexInfluenceMap &, const osg::CopyOp &)