载入中...
搜索中...
未找到
eve::animation::AnimBoneMask类 参考

Per-bone weights used by override and additive animation layers. 更多...

#include <AnimLayerMixer.h>

Public 成员函数

 AnimBoneMask (AnimSkeleton *skeleton)
 Create a zero-weight mask for a skeleton; the skeleton is not owned.
 
void setAll (float weight)
 Set every bone to the same clamped weight.
 
bool setBoneWeight (int boneIndex, float weight)
 Set one bone's clamped weight.
 
bool setBoneWeightByName (const std::string &boneName, float weight)
 Set a named bone's clamped weight.
 
bool setBoneAndChildren (const std::string &boneName, float weight)
 Set a bone and all descendants to the same clamped weight.
 
float getBoneWeight (int boneIndex) const
 Return one bone's weight, or zero for an invalid index.
 
int getBoneCount () const
 Return the number of bones represented by this mask.
 
AnimSkeleton * getSkeleton () const
 Return the non-owned skeleton used by this mask.
 

详细描述

Per-bone weights used by override and additive animation layers.

在文件 AnimLayerMixer.h 第 20 行定义.

构造及析构函数说明

◆ AnimBoneMask()

eve::animation::AnimBoneMask::AnimBoneMask ( AnimSkeleton *  skeleton)
explicit

Create a zero-weight mask for a skeleton; the skeleton is not owned.

在文件 AnimLayerMixer.cpp 第 37 行定义.

引用了 eve::animation::AnimSkeleton::getBoneCount().

成员函数说明

◆ getBoneCount()

int eve::animation::AnimBoneMask::getBoneCount ( ) const
inline

Return the number of bones represented by this mask.

在文件 AnimLayerMixer.h 第 36 行定义.

被这些函数引用 getBoneWeight() , 以及 setBoneWeight().

◆ getBoneWeight()

float eve::animation::AnimBoneMask::getBoneWeight ( int  boneIndex) const

Return one bone's weight, or zero for an invalid index.

在文件 AnimLayerMixer.cpp 第 67 行定义.

引用了 getBoneCount().

◆ getSkeleton()

AnimSkeleton * eve::animation::AnimBoneMask::getSkeleton ( ) const
inline

Return the non-owned skeleton used by this mask.

在文件 AnimLayerMixer.h 第 38 行定义.

◆ setAll()

void eve::animation::AnimBoneMask::setAll ( float  weight)

Set every bone to the same clamped weight.

在文件 AnimLayerMixer.cpp 第 42 行定义.

引用了 eve::animation::clampf() , 以及 weight.

◆ setBoneAndChildren()

bool eve::animation::AnimBoneMask::setBoneAndChildren ( const std::string &  boneName,
float  weight 
)

◆ setBoneWeight()

bool eve::animation::AnimBoneMask::setBoneWeight ( int  boneIndex,
float  weight 
)

Set one bone's clamped weight.

在文件 AnimLayerMixer.cpp 第 44 行定义.

引用了 eve::animation::clampf(), getBoneCount() , 以及 weight.

被这些函数引用 setBoneWeightByName().

◆ setBoneWeightByName()

bool eve::animation::AnimBoneMask::setBoneWeightByName ( const std::string &  boneName,
float  weight 
)

Set a named bone's clamped weight.

在文件 AnimLayerMixer.cpp 第 50 行定义.

引用了 eve::animation::AnimSkeleton::findBone(), setBoneWeight() , 以及 weight.


该类的文档由以下文件生成: