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 | |
| AnimPose & | operator= (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). | |
| TransformTRS & | local (int boneIndex) |
| const TransformTRS & | local (int boneIndex) const |
| const TransformTRS & | world (int boneIndex) const |
详细描述
Evaluated local (and optional world) pose for an AnimSkeleton. Script type: AnimPose.
在文件 AnimPose.h 第 15 行定义.
构造及析构函数说明
◆ AnimPose() [1/3]
|
default |
◆ AnimPose() [2/3]
|
explicit |
在文件 AnimPose.cpp 第 42 行定义.
引用了 resize().
◆ ~AnimPose()
|
default |
◆ AnimPose() [3/3]
|
delete |
成员函数说明
◆ blendFrom()
在文件 AnimPose.cpp 第 62 行定义.
引用了 a, b, eve::animation::blendTRS(), getBoneCount() , 以及 resize().
被这些函数引用 eve::animation::AnimPlayer::update(), eve::animation::AnimStateMachine::update() , 以及 eve::animation::MotionMatcher::update().
◆ 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.cpp 第 151 行定义.
引用了 getBoneCount(), eve::animation::AnimSkeleton::getBoneCount(), eve::animation::AnimSkeleton::getParent() , 以及 parent.
◆ copyFrom()
| void eve::animation::AnimPose::copyFrom | ( | const AnimPose * | other | ) |
◆ getBoneCount()
|
inline |
在文件 AnimPose.h 第 25 行定义.
被这些函数引用 blendFrom(), computeWorld(), eve::animation::AnimTrail::sampleBoneOffset() , 以及 eve::animation::ControlPose::update().
◆ getLocalPositionX()
| float eve::animation::AnimPose::getLocalPositionX | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 110 行定义.
引用了 px.
◆ getLocalPositionY()
| float eve::animation::AnimPose::getLocalPositionY | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 114 行定义.
◆ getLocalPositionZ()
| float eve::animation::AnimPose::getLocalPositionZ | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 118 行定义.
◆ getLocalRotationW()
| float eve::animation::AnimPose::getLocalRotationW | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 134 行定义.
◆ getLocalRotationX()
| float eve::animation::AnimPose::getLocalRotationX | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 122 行定义.
◆ getLocalRotationY()
| float eve::animation::AnimPose::getLocalRotationY | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 126 行定义.
◆ getLocalRotationZ()
| float eve::animation::AnimPose::getLocalRotationZ | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 130 行定义.
◆ getLocalScaleX()
| float eve::animation::AnimPose::getLocalScaleX | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 138 行定义.
◆ getLocalScaleY()
| float eve::animation::AnimPose::getLocalScaleY | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 142 行定义.
◆ getLocalScaleZ()
| float eve::animation::AnimPose::getLocalScaleZ | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 146 行定义.
◆ getWorldMatrix()
| void eve::animation::AnimPose::getWorldMatrix | ( | int | boneIndex, |
| float * | out16 | ||
| ) | const |
Write 16 floats (column-major) into out16 (must not be null).
在文件 AnimPose.cpp 第 211 行定义.
引用了 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.cpp 第 202 行定义.
引用了 eve::animation::Mat4::fromTRS() , 以及 eve::animation::Mat4::m.
◆ getWorldPositionX()
| float eve::animation::AnimPose::getWorldPositionX | ( | int | boneIndex | ) | const |
◆ getWorldPositionY()
| float eve::animation::AnimPose::getWorldPositionY | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 172 行定义.
◆ getWorldPositionZ()
| float eve::animation::AnimPose::getWorldPositionZ | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 176 行定义.
◆ getWorldRotationW()
| float eve::animation::AnimPose::getWorldRotationW | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 192 行定义.
◆ getWorldRotationX()
| float eve::animation::AnimPose::getWorldRotationX | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 180 行定义.
◆ getWorldRotationY()
| float eve::animation::AnimPose::getWorldRotationY | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 184 行定义.
◆ getWorldRotationZ()
| float eve::animation::AnimPose::getWorldRotationZ | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 188 行定义.
◆ local() [1/2]
| TransformTRS & eve::animation::AnimPose::local | ( | int | boneIndex | ) |
◆ local() [2/2]
| const TransformTRS & eve::animation::AnimPose::local | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 79 行定义.
◆ operator=()
◆ resize()
| void eve::animation::AnimPose::resize | ( | int | boneCount | ) |
在文件 AnimPose.cpp 第 44 行定义.
引用了 eve::animation::TransformTRS::identity().
被这些函数引用 eve::animation::AnimPlayer::AnimPlayer(), AnimPose(), eve::animation::AnimStateMachine::AnimStateMachine(), eve::animation::AnimSkeleton::applyBindPose(), blendFrom(), eve::animation::MotionDatabase::MotionDatabase(), eve::animation::MotionMatcher::MotionMatcher() , 以及 eve::animation::AnimClip::sample().
◆ setLocalPosition()
| void eve::animation::AnimPose::setLocalPosition | ( | int | boneIndex, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
在文件 AnimPose.cpp 第 84 行定义.
◆ setLocalRotation()
| void eve::animation::AnimPose::setLocalRotation | ( | int | boneIndex, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | w | ||
| ) |
◆ setLocalScale()
| void eve::animation::AnimPose::setLocalScale | ( | int | boneIndex, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
在文件 AnimPose.cpp 第 102 行定义.
◆ world()
| const TransformTRS & eve::animation::AnimPose::world | ( | int | boneIndex | ) | const |
在文件 AnimPose.cpp 第 197 行定义.
该类的文档由以下文件生成:
- src/modules/animation/AnimPose.h
- src/modules/animation/AnimPose.cpp