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

Evaluated local (and optional world) pose for an AnimSkeleton. Script type: AnimPose. 更多...

#include <AnimPose.h>

Public 成员函数

 AnimPose ()=default
 
 AnimPose (int boneCount)
 
 ~AnimPose ()=default
 
 AnimPose (const AnimPose &)=delete
 
AnimPoseoperator= (const AnimPose &)=delete
 
void resize (int boneCount)
 
int getBoneCount () const
 
void copyFrom (const AnimPose *other)
 
void blendFrom (const AnimPose *a, const AnimPose *b, float t)
 
void setLocalPosition (int boneIndex, float x, float y, float z)
 
void setLocalRotation (int boneIndex, float x, float y, float z, float w)
 
void setLocalScale (int boneIndex, float x, float y, float z)
 
float getLocalPositionX (int boneIndex) const
 
float getLocalPositionY (int boneIndex) const
 
float getLocalPositionZ (int boneIndex) const
 
float getLocalRotationX (int boneIndex) const
 
float getLocalRotationY (int boneIndex) const
 
float getLocalRotationZ (int boneIndex) const
 
float getLocalRotationW (int boneIndex) const
 
float getLocalScaleX (int boneIndex) const
 
float getLocalScaleY (int boneIndex) const
 
float getLocalScaleZ (int boneIndex) const
 
void computeWorld (const AnimSkeleton *skeleton)
 Compute world transforms from local pose + skeleton hierarchy. World values readable via getWorld* after this call.
 
float getWorldPositionX (int boneIndex) const
 
float getWorldPositionY (int boneIndex) const
 
float getWorldPositionZ (int boneIndex) const
 
float getWorldRotationX (int boneIndex) const
 
float getWorldRotationY (int boneIndex) const
 
float getWorldRotationZ (int boneIndex) const
 
float getWorldRotationW (int boneIndex) const
 
float getWorldMatrixElement (int boneIndex, int elementIndex) const
 Column-major 4x4 world matrix for boneIndex after computeWorld(). elementIndex in [0, 15]. Used by CPU skinning (AnimSkin).
 
void getWorldMatrix (int boneIndex, float *out16) const
 Write 16 floats (column-major) into out16 (must not be null).
 
TransformTRSlocal (int boneIndex)
 
const TransformTRSlocal (int boneIndex) const
 
const TransformTRSworld (int boneIndex) const
 

详细描述

Evaluated local (and optional world) pose for an AnimSkeleton. Script type: AnimPose.

在文件 AnimPose.h15 行定义.

构造及析构函数说明

◆ AnimPose() [1/3]

eve::animation::AnimPose::AnimPose ( )
default

◆ AnimPose() [2/3]

eve::animation::AnimPose::AnimPose ( int  boneCount)
explicit

在文件 AnimPose.cpp42 行定义.

引用了 resize().

◆ ~AnimPose()

eve::animation::AnimPose::~AnimPose ( )
default

◆ AnimPose() [3/3]

eve::animation::AnimPose::AnimPose ( const AnimPose )
delete

成员函数说明

◆ blendFrom()

void eve::animation::AnimPose::blendFrom ( const AnimPose a,
const AnimPose b,
float  t 
)

◆ computeWorld()

void eve::animation::AnimPose::computeWorld ( const AnimSkeleton skeleton)

Compute world transforms from local pose + skeleton hierarchy. World values readable via getWorld* after this call.

在文件 AnimPose.cpp151 行定义.

引用了 getBoneCount(), eve::animation::AnimSkeleton::getBoneCount(), eve::animation::AnimSkeleton::getParent() , 以及 parent.

◆ copyFrom()

◆ getBoneCount()

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

◆ getLocalPositionX()

float eve::animation::AnimPose::getLocalPositionX ( int  boneIndex) const

在文件 AnimPose.cpp110 行定义.

引用了 px.

◆ getLocalPositionY()

float eve::animation::AnimPose::getLocalPositionY ( int  boneIndex) const

在文件 AnimPose.cpp114 行定义.

◆ getLocalPositionZ()

float eve::animation::AnimPose::getLocalPositionZ ( int  boneIndex) const

在文件 AnimPose.cpp118 行定义.

◆ getLocalRotationW()

float eve::animation::AnimPose::getLocalRotationW ( int  boneIndex) const

在文件 AnimPose.cpp134 行定义.

◆ getLocalRotationX()

float eve::animation::AnimPose::getLocalRotationX ( int  boneIndex) const

在文件 AnimPose.cpp122 行定义.

◆ getLocalRotationY()

float eve::animation::AnimPose::getLocalRotationY ( int  boneIndex) const

在文件 AnimPose.cpp126 行定义.

◆ getLocalRotationZ()

float eve::animation::AnimPose::getLocalRotationZ ( int  boneIndex) const

在文件 AnimPose.cpp130 行定义.

◆ getLocalScaleX()

float eve::animation::AnimPose::getLocalScaleX ( int  boneIndex) const

在文件 AnimPose.cpp138 行定义.

◆ getLocalScaleY()

float eve::animation::AnimPose::getLocalScaleY ( int  boneIndex) const

在文件 AnimPose.cpp142 行定义.

◆ getLocalScaleZ()

float eve::animation::AnimPose::getLocalScaleZ ( int  boneIndex) const

在文件 AnimPose.cpp146 行定义.

◆ getWorldMatrix()

void eve::animation::AnimPose::getWorldMatrix ( int  boneIndex,
float *  out16 
) const

Write 16 floats (column-major) into out16 (must not be null).

在文件 AnimPose.cpp211 行定义.

引用了 eve::animation::Mat4::fromTRS() , 以及 eve::animation::Mat4::m.

◆ getWorldMatrixElement()

float eve::animation::AnimPose::getWorldMatrixElement ( int  boneIndex,
int  elementIndex 
) const

Column-major 4x4 world matrix for boneIndex after computeWorld(). elementIndex in [0, 15]. Used by CPU skinning (AnimSkin).

在文件 AnimPose.cpp202 行定义.

引用了 eve::animation::Mat4::fromTRS() , 以及 eve::animation::Mat4::m.

◆ getWorldPositionX()

float eve::animation::AnimPose::getWorldPositionX ( int  boneIndex) const

在文件 AnimPose.cpp168 行定义.

引用了 px.

被这些函数引用 eve::animation::AnimTrail::sampleBoneOffset().

◆ getWorldPositionY()

float eve::animation::AnimPose::getWorldPositionY ( int  boneIndex) const

在文件 AnimPose.cpp172 行定义.

被这些函数引用 eve::animation::AnimTrail::sampleBoneOffset().

◆ getWorldPositionZ()

float eve::animation::AnimPose::getWorldPositionZ ( int  boneIndex) const

在文件 AnimPose.cpp176 行定义.

被这些函数引用 eve::animation::AnimTrail::sampleBoneOffset().

◆ getWorldRotationW()

float eve::animation::AnimPose::getWorldRotationW ( int  boneIndex) const

在文件 AnimPose.cpp192 行定义.

◆ getWorldRotationX()

float eve::animation::AnimPose::getWorldRotationX ( int  boneIndex) const

在文件 AnimPose.cpp180 行定义.

◆ getWorldRotationY()

float eve::animation::AnimPose::getWorldRotationY ( int  boneIndex) const

在文件 AnimPose.cpp184 行定义.

◆ getWorldRotationZ()

float eve::animation::AnimPose::getWorldRotationZ ( int  boneIndex) const

在文件 AnimPose.cpp188 行定义.

◆ local() [1/2]

TransformTRS & eve::animation::AnimPose::local ( int  boneIndex)

◆ local() [2/2]

const TransformTRS & eve::animation::AnimPose::local ( int  boneIndex) const

在文件 AnimPose.cpp79 行定义.

◆ operator=()

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

◆ resize()

◆ setLocalPosition()

void eve::animation::AnimPose::setLocalPosition ( int  boneIndex,
float  x,
float  y,
float  z 
)

在文件 AnimPose.cpp84 行定义.

引用了 x, y , 以及 z.

◆ setLocalRotation()

void eve::animation::AnimPose::setLocalRotation ( int  boneIndex,
float  x,
float  y,
float  z,
float  w 
)

在文件 AnimPose.cpp92 行定义.

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

◆ setLocalScale()

void eve::animation::AnimPose::setLocalScale ( int  boneIndex,
float  x,
float  y,
float  z 
)

在文件 AnimPose.cpp102 行定义.

引用了 x, y , 以及 z.

◆ world()

const TransformTRS & eve::animation::AnimPose::world ( int  boneIndex) const

在文件 AnimPose.cpp197 行定义.

被这些函数引用 eve::animation::AnimSkin::skinPositions().


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