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

3D bone hierarchy + bind-pose local TRS for skeletal animation. Independent of ik::Skeleton3D (FABRIK). Script type: AnimSkeleton. 更多...

#include <AnimSkeleton.h>

Public 成员函数

 AnimSkeleton ()=default
 
 ~AnimSkeleton ()=default
 
 AnimSkeleton (const AnimSkeleton &)=delete
 
AnimSkeletonoperator= (const AnimSkeleton &)=delete
 
int addBone (const std::string &name, int parentIndex=-1)
 Append a bone. parentIndex = -1 for root.
 
int getBoneCount () const
 
std::string getBoneName (int boneIndex) const
 
int findBone (const std::string &name) const
 
int getParent (int boneIndex) const
 
void setBindPosition (int boneIndex, float x, float y, float z)
 
void setBindRotation (int boneIndex, float x, float y, float z, float w)
 
void setBindScale (int boneIndex, float x, float y, float z)
 
float getBindPositionX (int boneIndex) const
 
float getBindPositionY (int boneIndex) const
 
float getBindPositionZ (int boneIndex) const
 
float getBindRotationX (int boneIndex) const
 
float getBindRotationY (int boneIndex) const
 
float getBindRotationZ (int boneIndex) const
 
float getBindRotationW (int boneIndex) const
 
float getBindScaleX (int boneIndex) const
 
float getBindScaleY (int boneIndex) const
 
float getBindScaleZ (int boneIndex) const
 
const TransformTRSbindLocal (int boneIndex) const
 
void applyBindPose (class AnimPose *pose) const
 Fill pose locals with bind pose.
 

详细描述

3D bone hierarchy + bind-pose local TRS for skeletal animation. Independent of ik::Skeleton3D (FABRIK). Script type: AnimSkeleton.

在文件 AnimSkeleton.h14 行定义.

构造及析构函数说明

◆ AnimSkeleton() [1/2]

eve::animation::AnimSkeleton::AnimSkeleton ( )
default

◆ ~AnimSkeleton()

eve::animation::AnimSkeleton::~AnimSkeleton ( )
default

◆ AnimSkeleton() [2/2]

eve::animation::AnimSkeleton::AnimSkeleton ( const AnimSkeleton )
delete

成员函数说明

◆ addBone()

int eve::animation::AnimSkeleton::addBone ( const std::string &  name,
int  parentIndex = -1 
)

Append a bone. parentIndex = -1 for root.

返回
bone index

在文件 AnimSkeleton.cpp14 行定义.

引用了 b, findBone(), getBoneCount(), eve::animation::TransformTRS::identity() , 以及 name.

◆ applyBindPose()

◆ bindLocal()

const TransformTRS & eve::animation::AnimSkeleton::bindLocal ( int  boneIndex) const

在文件 AnimSkeleton.cpp116 行定义.

被这些函数引用 eve::animation::AnimClip::sample().

◆ findBone()

◆ getBindPositionX()

float eve::animation::AnimSkeleton::getBindPositionX ( int  boneIndex) const

在文件 AnimSkeleton.cpp75 行定义.

被这些函数引用 eve::animation::AnimImporter::exportEva().

◆ getBindPositionY()

float eve::animation::AnimSkeleton::getBindPositionY ( int  boneIndex) const

在文件 AnimSkeleton.cpp79 行定义.

被这些函数引用 eve::animation::AnimImporter::exportEva().

◆ getBindPositionZ()

float eve::animation::AnimSkeleton::getBindPositionZ ( int  boneIndex) const

在文件 AnimSkeleton.cpp83 行定义.

被这些函数引用 eve::animation::AnimImporter::exportEva().

◆ getBindRotationW()

float eve::animation::AnimSkeleton::getBindRotationW ( int  boneIndex) const

在文件 AnimSkeleton.cpp99 行定义.

被这些函数引用 eve::animation::AnimImporter::exportEva().

◆ getBindRotationX()

float eve::animation::AnimSkeleton::getBindRotationX ( int  boneIndex) const

在文件 AnimSkeleton.cpp87 行定义.

被这些函数引用 eve::animation::AnimImporter::exportEva().

◆ getBindRotationY()

float eve::animation::AnimSkeleton::getBindRotationY ( int  boneIndex) const

在文件 AnimSkeleton.cpp91 行定义.

被这些函数引用 eve::animation::AnimImporter::exportEva().

◆ getBindRotationZ()

float eve::animation::AnimSkeleton::getBindRotationZ ( int  boneIndex) const

在文件 AnimSkeleton.cpp95 行定义.

被这些函数引用 eve::animation::AnimImporter::exportEva().

◆ getBindScaleX()

float eve::animation::AnimSkeleton::getBindScaleX ( int  boneIndex) const

在文件 AnimSkeleton.cpp103 行定义.

被这些函数引用 eve::animation::AnimImporter::exportEva().

◆ getBindScaleY()

float eve::animation::AnimSkeleton::getBindScaleY ( int  boneIndex) const

在文件 AnimSkeleton.cpp107 行定义.

被这些函数引用 eve::animation::AnimImporter::exportEva().

◆ getBindScaleZ()

float eve::animation::AnimSkeleton::getBindScaleZ ( int  boneIndex) const

在文件 AnimSkeleton.cpp111 行定义.

被这些函数引用 eve::animation::AnimImporter::exportEva().

◆ getBoneCount()

◆ getBoneName()

std::string eve::animation::AnimSkeleton::getBoneName ( int  boneIndex) const

在文件 AnimSkeleton.cpp32 行定义.

引用了 name.

被这些函数引用 eve::animation::AnimImporter::exportEva().

◆ getParent()

int eve::animation::AnimSkeleton::getParent ( int  boneIndex) const

在文件 AnimSkeleton.cpp44 行定义.

引用了 parent.

被这些函数引用 eve::animation::AnimPose::computeWorld() , 以及 eve::animation::AnimImporter::exportEva().

◆ operator=()

AnimSkeleton & eve::animation::AnimSkeleton::operator= ( const AnimSkeleton )
delete

◆ setBindPosition()

void eve::animation::AnimSkeleton::setBindPosition ( int  boneIndex,
float  x,
float  y,
float  z 
)

在文件 AnimSkeleton.cpp49 行定义.

引用了 x, y , 以及 z.

◆ setBindRotation()

void eve::animation::AnimSkeleton::setBindRotation ( int  boneIndex,
float  x,
float  y,
float  z,
float  w 
)

在文件 AnimSkeleton.cpp57 行定义.

引用了 w, x, y , 以及 z.

◆ setBindScale()

void eve::animation::AnimSkeleton::setBindScale ( int  boneIndex,
float  x,
float  y,
float  z 
)

在文件 AnimSkeleton.cpp67 行定义.

引用了 x, y , 以及 z.


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