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 | |
| AnimSkeleton & | operator= (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 TransformTRS & | bindLocal (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.h 第 14 行定义.
构造及析构函数说明
◆ AnimSkeleton() [1/2]
|
default |
◆ ~AnimSkeleton()
|
default |
◆ AnimSkeleton() [2/2]
|
delete |
成员函数说明
◆ addBone()
| int eve::animation::AnimSkeleton::addBone | ( | const std::string & | name, |
| int | parentIndex = -1 |
||
| ) |
Append a bone. parentIndex = -1 for root.
- 返回
- bone index
在文件 AnimSkeleton.cpp 第 14 行定义.
引用了 b, findBone(), getBoneCount(), eve::animation::TransformTRS::identity() , 以及 name.
◆ applyBindPose()
| void eve::animation::AnimSkeleton::applyBindPose | ( | class AnimPose * | pose | ) | const |
Fill pose locals with bind pose.
在文件 AnimSkeleton.cpp 第 121 行定义.
引用了 getBoneCount(), eve::animation::AnimPose::local() , 以及 eve::animation::AnimPose::resize().
被这些函数引用 eve::animation::AnimPlayer::AnimPlayer(), eve::animation::AnimStateMachine::AnimStateMachine(), eve::animation::ControlPose::ControlPose(), eve::animation::MotionMatcher::MotionMatcher() , 以及 eve::animation::AnimPlayer::stop().
◆ bindLocal()
| const TransformTRS & eve::animation::AnimSkeleton::bindLocal | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 116 行定义.
被这些函数引用 eve::animation::AnimClip::sample().
◆ findBone()
| int eve::animation::AnimSkeleton::findBone | ( | const std::string & | name | ) | const |
在文件 AnimSkeleton.cpp 第 37 行定义.
引用了 getBoneCount() , 以及 name.
被这些函数引用 addBone(), eve::animation::MotionDatabase::addFeatureBoneByName(), eve::particles::ParticleEmitter::attachToBoneByName(), eve::animation::AnimSkin::fromModel(), eve::animation::AnimImporter::loadClip(), eve::animation::MotionDatabase::setRootBoneByName() , 以及 eve::particles::ParticleEmitter::setSkinBoneFilterByName().
◆ getBindPositionX()
| float eve::animation::AnimSkeleton::getBindPositionX | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 75 行定义.
◆ getBindPositionY()
| float eve::animation::AnimSkeleton::getBindPositionY | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 79 行定义.
◆ getBindPositionZ()
| float eve::animation::AnimSkeleton::getBindPositionZ | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 83 行定义.
◆ getBindRotationW()
| float eve::animation::AnimSkeleton::getBindRotationW | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 99 行定义.
◆ getBindRotationX()
| float eve::animation::AnimSkeleton::getBindRotationX | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 87 行定义.
◆ getBindRotationY()
| float eve::animation::AnimSkeleton::getBindRotationY | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 91 行定义.
◆ getBindRotationZ()
| float eve::animation::AnimSkeleton::getBindRotationZ | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 95 行定义.
◆ getBindScaleX()
| float eve::animation::AnimSkeleton::getBindScaleX | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 103 行定义.
◆ getBindScaleY()
| float eve::animation::AnimSkeleton::getBindScaleY | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 107 行定义.
◆ getBindScaleZ()
| float eve::animation::AnimSkeleton::getBindScaleZ | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 111 行定义.
◆ getBoneCount()
|
inline |
在文件 AnimSkeleton.h 第 28 行定义.
被这些函数引用 addBone(), eve::animation::MotionDatabase::addFeatureBone(), eve::animation::AnimPlayer::AnimPlayer(), eve::animation::AnimStateMachine::AnimStateMachine(), applyBindPose(), eve::animation::MotionDatabase::bake(), eve::animation::AnimPose::computeWorld(), eve::animation::ControlPose::ControlPose(), eve::animation::AnimImporter::exportEva(), findBone(), eve::animation::MotionDatabase::MotionDatabase(), eve::animation::MotionMatcher::MotionMatcher(), eve::animation::AnimClip::sample() , 以及 eve::animation::MotionDatabase::setRootBone().
◆ getBoneName()
| std::string eve::animation::AnimSkeleton::getBoneName | ( | int | boneIndex | ) | const |
◆ getParent()
| int eve::animation::AnimSkeleton::getParent | ( | int | boneIndex | ) | const |
在文件 AnimSkeleton.cpp 第 44 行定义.
引用了 parent.
被这些函数引用 eve::animation::AnimPose::computeWorld() , 以及 eve::animation::AnimImporter::exportEva().
◆ operator=()
|
delete |
◆ setBindPosition()
| void eve::animation::AnimSkeleton::setBindPosition | ( | int | boneIndex, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
在文件 AnimSkeleton.cpp 第 49 行定义.
◆ setBindRotation()
| void eve::animation::AnimSkeleton::setBindRotation | ( | int | boneIndex, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | w | ||
| ) |
◆ setBindScale()
| void eve::animation::AnimSkeleton::setBindScale | ( | int | boneIndex, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
在文件 AnimSkeleton.cpp 第 67 行定义.
该类的文档由以下文件生成:
- src/modules/animation/AnimSkeleton.h
- src/modules/animation/AnimSkeleton.cpp