Runtime Spine skeleton pose (local + world bone transforms, slot attachments). Script type: SpineSkeleton.
更多...
#include <SpineSkeleton.h>
Public 成员函数 | |
| SpineSkeleton (SpineSkeletonData *data) | |
| Spine skeleton. | |
| ~SpineSkeleton ()=default | |
| Spine skeleton. | |
| SpineSkeleton (const SpineSkeleton &)=delete | |
| SpineSkeleton & | operator= (const SpineSkeleton &)=delete |
| SpineSkeletonData * | getData () const |
| Returns the data. | |
| bool | setSkin (const std::string &name) |
| Sets the skin. | |
| int | getSkin () const |
| Returns the skin. | |
| void | setToSetupPose () |
| Sets the to setup pose. | |
| void | updateWorldTransform () |
| Updates world transform. | |
| int | getBoneCount () const |
| Returns the bone count. | |
| float | getBoneLocalX (int index) const |
| Returns the bone local x. | |
| float | getBoneLocalY (int index) const |
| Returns the bone local y. | |
| float | getBoneLocalRotation (int index) const |
| Returns the bone local rotation. | |
| float | getBoneLocalScaleX (int index) const |
| Returns the bone local scale x. | |
| float | getBoneLocalScaleY (int index) const |
| Returns the bone local scale y. | |
| void | setBoneLocalX (int index, float x) |
| Sets the bone local x. | |
| void | setBoneLocalY (int index, float y) |
| Sets the bone local y. | |
| void | setBoneLocalRotation (int index, float degrees) |
| Sets the bone local rotation. | |
| void | setBoneLocalScaleX (int index, float sx) |
| Sets the bone local scale x. | |
| void | setBoneLocalScaleY (int index, float sy) |
| Sets the bone local scale y. | |
| float | getBoneWorldX (int index) const |
| Returns the bone world x. | |
| float | getBoneWorldY (int index) const |
| Returns the bone world y. | |
| float | getBoneWorldRotation (int index) const |
| Returns the bone world rotation. | |
| float | getBoneWorldScaleX (int index) const |
| Returns the bone world scale x. | |
| float | getBoneWorldScaleY (int index) const |
| Returns the bone world scale y. | |
| 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 |
| Returns the slot count. | |
| std::string | getSlotAttachmentName (int slotIndex) const |
| Returns the slot attachment name. | |
| void | setSlotAttachmentName (int slotIndex, const std::string &name) |
| Sets the slot attachment name. | |
| const SpineSkeletonData::RegionAttachment * | getSlotRegion (int slotIndex) const |
| Returns the slot region. | |
友元 | |
| class | SpineAnim |
详细描述
Runtime Spine skeleton pose (local + world bone transforms, slot attachments). Script type: SpineSkeleton.
在文件 SpineSkeleton.h 第 16 行定义.
构造及析构函数说明
◆ SpineSkeleton() [1/2]
|
explicit |
◆ ~SpineSkeleton()
|
default |
Spine skeleton.
◆ SpineSkeleton() [2/2]
|
delete |
成员函数说明
◆ getBoneCount()
| int eve::animation::SpineSkeleton::getBoneCount | ( | ) | const |
Returns the bone count.
在文件 SpineSkeleton.cpp 第 36 行定义.
被这些函数引用 eve::particles::ParticleEmitter::attachToSpineBone() , 以及 updateWorldTransform().
◆ getBoneLocalRotation()
| float eve::animation::SpineSkeleton::getBoneLocalRotation | ( | int | index | ) | const |
Returns the bone local rotation.
在文件 SpineSkeleton.cpp 第 105 行定义.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ getBoneLocalScaleX()
| float eve::animation::SpineSkeleton::getBoneLocalScaleX | ( | int | index | ) | const |
Returns the bone local scale x.
在文件 SpineSkeleton.cpp 第 109 行定义.
引用了 index.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ getBoneLocalScaleY()
| float eve::animation::SpineSkeleton::getBoneLocalScaleY | ( | int | index | ) | const |
Returns the bone local scale y.
在文件 SpineSkeleton.cpp 第 113 行定义.
引用了 index.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ getBoneLocalX()
| float eve::animation::SpineSkeleton::getBoneLocalX | ( | int | index | ) | const |
Returns the bone local x.
在文件 SpineSkeleton.cpp 第 97 行定义.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ getBoneLocalY()
| float eve::animation::SpineSkeleton::getBoneLocalY | ( | int | index | ) | const |
Returns the bone local y.
在文件 SpineSkeleton.cpp 第 101 行定义.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ 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 |
◆ getBoneWorldScaleX()
| float eve::animation::SpineSkeleton::getBoneWorldScaleX | ( | int | index | ) | const |
◆ getBoneWorldScaleY()
| float eve::animation::SpineSkeleton::getBoneWorldScaleY | ( | int | index | ) | const |
◆ getBoneWorldX()
| float eve::animation::SpineSkeleton::getBoneWorldX | ( | int | index | ) | const |
◆ getBoneWorldY()
| float eve::animation::SpineSkeleton::getBoneWorldY | ( | int | index | ) | const |
◆ getData()
|
inline |
Returns the data.
在文件 SpineSkeleton.h 第 27 行定义.
被这些函数引用 eve::animation::SpineAnim::apply(), eve::particles::ParticleEmitter::attachToSpineBoneByName(), eve::animation::SpineAnim::getAnimationDuration() , 以及 eve::animation::SpineAnim::play().
◆ getSkin()
|
inline |
Returns the skin.
在文件 SpineSkeleton.h 第 32 行定义.
◆ getSlotAttachmentName()
| std::string eve::animation::SpineSkeleton::getSlotAttachmentName | ( | int | slotIndex | ) | const |
Returns the slot attachment name.
在文件 SpineSkeleton.cpp 第 169 行定义.
◆ getSlotCount()
| int eve::animation::SpineSkeleton::getSlotCount | ( | ) | const |
Returns the slot count.
在文件 SpineSkeleton.cpp 第 37 行定义.
◆ getSlotRegion()
| const SpineSkeletonData::RegionAttachment * eve::animation::SpineSkeleton::getSlotRegion | ( | int | slotIndex | ) | const |
Returns the slot region.
在文件 SpineSkeleton.cpp 第 179 行定义.
引用了 eve::animation::SpineSkeletonData::findAttachment(), eve::animation::SpineSkeletonData::getDefaultSkin() , 以及 name.
◆ operator=()
|
delete |
◆ setBoneLocalRotation()
| void eve::animation::SpineSkeleton::setBoneLocalRotation | ( | int | index, |
| float | degrees | ||
| ) |
Sets the bone local rotation.
在文件 SpineSkeleton.cpp 第 126 行定义.
引用了 degrees, index , 以及 rotation.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ setBoneLocalScaleX()
| void eve::animation::SpineSkeleton::setBoneLocalScaleX | ( | int | index, |
| float | sx | ||
| ) |
Sets the bone local scale x.
在文件 SpineSkeleton.cpp 第 130 行定义.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ setBoneLocalScaleY()
| void eve::animation::SpineSkeleton::setBoneLocalScaleY | ( | int | index, |
| float | sy | ||
| ) |
Sets the bone local scale y.
在文件 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 | ) |
Sets the skin.
在文件 SpineSkeleton.cpp 第 39 行定义.
引用了 eve::animation::SpineSkeletonData::findSkin(), idx , 以及 name.
◆ setSlotAttachmentName()
| void eve::animation::SpineSkeleton::setSlotAttachmentName | ( | int | slotIndex, |
| const std::string & | name | ||
| ) |
Sets the slot attachment name.
在文件 SpineSkeleton.cpp 第 174 行定义.
引用了 name.
被这些函数引用 eve::animation::SpineAnim::apply().
◆ setToSetupPose()
| void eve::animation::SpineSkeleton::setToSetupPose | ( | ) |
Sets the to setup pose.
在文件 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 | ( | ) |
Updates world transform.
在文件 SpineSkeleton.cpp 第 60 行定义.
引用了 eve::animation::SpineSkeletonData::bone(), getBoneCount(), p, eve::animation::SpineSkeletonData::BoneData::parent , 以及 parent.
被这些函数引用 eve::animation::SpineAnim::apply() , 以及 SpineSkeleton().
友元及相关函数文档
◆ SpineAnim
|
friend |
在文件 SpineSkeleton.h 第 87 行定义.
该类的文档由以下文件生成:
- src/modules/animation/SpineSkeleton.h
- src/modules/animation/SpineSkeleton.cpp