Runtime Spine skeleton pose (local + world bone transforms, slot attachments). Script type: SpineSkeleton.
更多...
#include <SpineSkeleton.h>
Public 成员函数 | |
| SpineSkeleton (SpineSkeletonData *data) | |
| ~SpineSkeleton ()=default | |
| SpineSkeleton (const SpineSkeleton &)=delete | |
| SpineSkeleton & | operator= (const SpineSkeleton &)=delete |
| SpineSkeletonData * | getData () const |
| bool | setSkin (const std::string &name) |
| int | getSkin () const |
| void | setToSetupPose () |
| void | updateWorldTransform () |
| int | getBoneCount () const |
| float | getBoneLocalX (int index) const |
| float | getBoneLocalY (int index) const |
| float | getBoneLocalRotation (int index) const |
| float | getBoneLocalScaleX (int index) const |
| float | getBoneLocalScaleY (int index) const |
| void | setBoneLocalX (int index, float x) |
| void | setBoneLocalY (int index, float y) |
| void | setBoneLocalRotation (int index, float degrees) |
| void | setBoneLocalScaleX (int index, float sx) |
| void | setBoneLocalScaleY (int index, float sy) |
| float | getBoneWorldX (int index) const |
| float | getBoneWorldY (int index) const |
| float | getBoneWorldRotation (int index) const |
| float | getBoneWorldScaleX (int index) const |
| float | getBoneWorldScaleY (int index) const |
| void | getBoneWorldMatrix (int index, float &a, float &b, float &c, float &d) const |
| World 2x2 matrix columns (a,c) / (b,d) used for local→world offset. | |
| int | getSlotCount () const |
| std::string | getSlotAttachmentName (int slotIndex) const |
| void | setSlotAttachmentName (int slotIndex, const std::string &name) |
| const SpineSkeletonData::RegionAttachment * | getSlotRegion (int slotIndex) const |
友元 | |
| class | SpineAnim |
详细描述
Runtime Spine skeleton pose (local + world bone transforms, slot attachments). Script type: SpineSkeleton.
在文件 SpineSkeleton.h 第 14 行定义.
构造及析构函数说明
◆ SpineSkeleton() [1/2]
|
explicit |
◆ ~SpineSkeleton()
|
default |
◆ SpineSkeleton() [2/2]
|
delete |
成员函数说明
◆ getBoneCount()
| int eve::animation::SpineSkeleton::getBoneCount | ( | ) | const |
在文件 SpineSkeleton.cpp 第 36 行定义.
被这些函数引用 eve::particles::ParticleEmitter::attachToSpineBone() , 以及 updateWorldTransform().
◆ getBoneLocalRotation()
| float eve::animation::SpineSkeleton::getBoneLocalRotation | ( | int | index | ) | const |
在文件 SpineSkeleton.cpp 第 105 行定义.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ getBoneLocalScaleX()
| float eve::animation::SpineSkeleton::getBoneLocalScaleX | ( | int | index | ) | const |
在文件 SpineSkeleton.cpp 第 109 行定义.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ getBoneLocalScaleY()
| float eve::animation::SpineSkeleton::getBoneLocalScaleY | ( | int | index | ) | const |
在文件 SpineSkeleton.cpp 第 113 行定义.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ getBoneLocalX()
| float eve::animation::SpineSkeleton::getBoneLocalX | ( | int | index | ) | const |
◆ getBoneLocalY()
| float eve::animation::SpineSkeleton::getBoneLocalY | ( | int | index | ) | const |
◆ getBoneWorldMatrix()
| void eve::animation::SpineSkeleton::getBoneWorldMatrix | ( | int | index, |
| float & | a, | ||
| float & | b, | ||
| float & | c, | ||
| float & | d | ||
| ) | const |
◆ getBoneWorldRotation()
| float eve::animation::SpineSkeleton::getBoneWorldRotation | ( | int | index | ) | const |
在文件 SpineSkeleton.cpp 第 147 行定义.
◆ getBoneWorldScaleX()
| float eve::animation::SpineSkeleton::getBoneWorldScaleX | ( | int | index | ) | const |
在文件 SpineSkeleton.cpp 第 151 行定义.
◆ getBoneWorldScaleY()
| float eve::animation::SpineSkeleton::getBoneWorldScaleY | ( | int | index | ) | const |
在文件 SpineSkeleton.cpp 第 155 行定义.
◆ getBoneWorldX()
| float eve::animation::SpineSkeleton::getBoneWorldX | ( | int | index | ) | const |
在文件 SpineSkeleton.cpp 第 139 行定义.
◆ getBoneWorldY()
| float eve::animation::SpineSkeleton::getBoneWorldY | ( | int | index | ) | const |
在文件 SpineSkeleton.cpp 第 143 行定义.
◆ getData()
|
inline |
◆ getSkin()
|
inline |
在文件 SpineSkeleton.h 第 25 行定义.
◆ getSlotAttachmentName()
| std::string eve::animation::SpineSkeleton::getSlotAttachmentName | ( | int | slotIndex | ) | const |
在文件 SpineSkeleton.cpp 第 169 行定义.
◆ getSlotCount()
| int eve::animation::SpineSkeleton::getSlotCount | ( | ) | const |
在文件 SpineSkeleton.cpp 第 37 行定义.
◆ getSlotRegion()
| const SpineSkeletonData::RegionAttachment * eve::animation::SpineSkeleton::getSlotRegion | ( | int | slotIndex | ) | const |
◆ operator=()
|
delete |
◆ setBoneLocalRotation()
| void eve::animation::SpineSkeleton::setBoneLocalRotation | ( | int | index, |
| float | degrees | ||
| ) |
◆ setBoneLocalScaleX()
| void eve::animation::SpineSkeleton::setBoneLocalScaleX | ( | int | index, |
| float | sx | ||
| ) |
在文件 SpineSkeleton.cpp 第 130 行定义.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ setBoneLocalScaleY()
| void eve::animation::SpineSkeleton::setBoneLocalScaleY | ( | int | index, |
| float | sy | ||
| ) |
在文件 SpineSkeleton.cpp 第 134 行定义.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ setBoneLocalX()
| void eve::animation::SpineSkeleton::setBoneLocalX | ( | int | index, |
| float | x | ||
| ) |
◆ setBoneLocalY()
| void eve::animation::SpineSkeleton::setBoneLocalY | ( | int | index, |
| float | y | ||
| ) |
◆ setSkin()
| bool eve::animation::SpineSkeleton::setSkin | ( | const std::string & | name | ) |
在文件 SpineSkeleton.cpp 第 39 行定义.
引用了 eve::animation::SpineSkeletonData::findSkin(), idx , 以及 name.
◆ setSlotAttachmentName()
| void eve::animation::SpineSkeleton::setSlotAttachmentName | ( | int | slotIndex, |
| const std::string & | name | ||
| ) |
◆ setToSetupPose()
| void eve::animation::SpineSkeleton::setToSetupPose | ( | ) |
在文件 SpineSkeleton.cpp 第 46 行定义.
引用了 eve::animation::SpineSkeletonData::SlotData::attachment, b, eve::animation::SpineSkeletonData::bone(), eve::animation::SpineSkeletonData::getBoneCount(), eve::animation::SpineSkeletonData::getSlotCount(), p , 以及 eve::animation::SpineSkeletonData::slot().
被这些函数引用 eve::animation::SpineAnim::apply() , 以及 SpineSkeleton().
◆ updateWorldTransform()
| void eve::animation::SpineSkeleton::updateWorldTransform | ( | ) |
在文件 SpineSkeleton.cpp 第 60 行定义.
引用了 eve::animation::SpineSkeletonData::bone(), getBoneCount(), p, eve::animation::SpineSkeletonData::BoneData::parent , 以及 parent.
被这些函数引用 eve::animation::SpineAnim::apply() , 以及 SpineSkeleton().
友元及相关函数文档
◆ SpineAnim
|
friend |
在文件 SpineSkeleton.h 第 58 行定义.
该类的文档由以下文件生成:
- src/modules/animation/SpineSkeleton.h
- src/modules/animation/SpineSkeleton.cpp