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

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]

◆ ~SpineSkeleton()

eve::animation::SpineSkeleton::~SpineSkeleton ( )
default

Spine skeleton.

◆ SpineSkeleton() [2/2]

eve::animation::SpineSkeleton::SpineSkeleton ( const SpineSkeleton &  )
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 行定义.

引用了 index , 以及 rotation.

被这些函数引用 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 行定义.

引用了 index , 以及 x.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ getBoneLocalY()

float eve::animation::SpineSkeleton::getBoneLocalY ( int  index) const

Returns the bone local y.

在文件 SpineSkeleton.cpp 第 101 行定义.

引用了 index , 以及 y.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ getBoneWorldMatrix()

void eve::animation::SpineSkeleton::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.

在文件 SpineSkeleton.cpp 第 160 行定义.

引用了 a, b, c, d, index , 以及 p.

◆ getBoneWorldRotation()

float eve::animation::SpineSkeleton::getBoneWorldRotation ( int  index) const

Returns the bone world rotation.

在文件 SpineSkeleton.cpp 第 147 行定义.

引用了 index.

◆ getBoneWorldScaleX()

float eve::animation::SpineSkeleton::getBoneWorldScaleX ( int  index) const

Returns the bone world scale x.

在文件 SpineSkeleton.cpp 第 151 行定义.

引用了 index.

◆ getBoneWorldScaleY()

float eve::animation::SpineSkeleton::getBoneWorldScaleY ( int  index) const

Returns the bone world scale y.

在文件 SpineSkeleton.cpp 第 155 行定义.

引用了 index.

◆ getBoneWorldX()

float eve::animation::SpineSkeleton::getBoneWorldX ( int  index) const

Returns the bone world x.

在文件 SpineSkeleton.cpp 第 139 行定义.

引用了 index.

◆ getBoneWorldY()

float eve::animation::SpineSkeleton::getBoneWorldY ( int  index) const

Returns the bone world y.

在文件 SpineSkeleton.cpp 第 143 行定义.

引用了 index.

◆ getData()

SpineSkeletonData * eve::animation::SpineSkeleton::getData ( ) const
inline

◆ getSkin()

int eve::animation::SpineSkeleton::getSkin ( ) const
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

◆ operator=()

SpineSkeleton & eve::animation::SpineSkeleton::operator= ( const SpineSkeleton &  )
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 行定义.

引用了 index , 以及 sx.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ setBoneLocalScaleY()

void eve::animation::SpineSkeleton::setBoneLocalScaleY ( int  index,
float  sy 
)

Sets the bone local scale y.

在文件 SpineSkeleton.cpp 第 134 行定义.

引用了 index , 以及 sy.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ setBoneLocalX()

void eve::animation::SpineSkeleton::setBoneLocalX ( int  index,
float  x 
)

Sets the bone local x.

在文件 SpineSkeleton.cpp 第 118 行定义.

引用了 index , 以及 x.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ setBoneLocalY()

void eve::animation::SpineSkeleton::setBoneLocalY ( int  index,
float  y 
)

Sets the bone local y.

在文件 SpineSkeleton.cpp 第 122 行定义.

引用了 index , 以及 y.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ 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()

◆ updateWorldTransform()

void eve::animation::SpineSkeleton::updateWorldTransform ( )

友元及相关函数文档

◆ SpineAnim

friend class SpineAnim
friend

在文件 SpineSkeleton.h 第 87 行定义.


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