载入中...
搜索中...
未找到
eve::ik::Skeleton3D类 参考

Script-facing 3D skeleton + pose state (ik::skeleton3d + ik::ecs3d). Local angles are yaw/pitch in the parent bone frame. 更多...

#include <Skeleton3D.h>

Public 成员函数

 Skeleton3D ()
 
 ~Skeleton3D ()=default
 
 Skeleton3D (const Skeleton3D &)=delete
 
Skeleton3Doperator= (const Skeleton3D &)=delete
 
int createBone (int parentId, float length=1.f)
 
int getBoneCount () const
 
int getRootId () const
 
int getParent (int boneId) const
 
int getChildCount (int boneId) const
 
int getChild (int boneId, int childIndex) const
 
float getLength (int boneId) const
 
void setLength (int boneId, float length)
 
void setPosition (int boneId, float x, float y, float z)
 
float getX (int boneId) const
 
float getY (int boneId) const
 
float getZ (int boneId) const
 
void setOrientation (int boneId, float x, float y, float z)
 
float getOrientationX (int boneId) const
 
float getOrientationY (int boneId) const
 
float getOrientationZ (int boneId) const
 
void setRotation (int boneId, float yaw, float pitch)
 
float getRotationYaw (int boneId) const
 
float getRotationPitch (int boneId) const
 
void setConstraints (int boneId, float minYaw, float minPitch, float maxYaw, float maxPitch)
 
void clearConstraints (int boneId)
 
bool hasConstraints (int boneId) const
 
void initStraightPose (float rootX=0.f, float rootY=0.f, float rootZ=0.f)
 
void bind ()
 
void forwardKinematics ()
 
void updateRotations ()
 
float totalLengthTo (int boneId) const
 
::ik::skeleton3d & native ()
 
::ik::ecs3d & state ()
 
const ::ik::skeleton3d & native () const
 
const ::ik::ecs3d & state () const
 

详细描述

Script-facing 3D skeleton + pose state (ik::skeleton3d + ik::ecs3d). Local angles are yaw/pitch in the parent bone frame.

在文件 Skeleton3D.h11 行定义.

构造及析构函数说明

◆ Skeleton3D() [1/2]

eve::ik::Skeleton3D::Skeleton3D ( )

在文件 Skeleton3D.cpp7 行定义.

◆ ~Skeleton3D()

eve::ik::Skeleton3D::~Skeleton3D ( )
default

◆ Skeleton3D() [2/2]

eve::ik::Skeleton3D::Skeleton3D ( const Skeleton3D )
delete

成员函数说明

◆ bind()

void eve::ik::Skeleton3D::bind ( )

在文件 Skeleton3D.cpp190 行定义.

◆ clearConstraints()

void eve::ik::Skeleton3D::clearConstraints ( int  boneId)

在文件 Skeleton3D.cpp174 行定义.

◆ createBone()

int eve::ik::Skeleton3D::createBone ( int  parentId,
float  length = 1.f 
)

在文件 Skeleton3D.cpp43 行定义.

引用了 eve::ui::WidgetDesc::id , 以及 parent.

◆ forwardKinematics()

void eve::ik::Skeleton3D::forwardKinematics ( )

在文件 Skeleton3D.cpp196 行定义.

◆ getBoneCount()

int eve::ik::Skeleton3D::getBoneCount ( ) const

在文件 Skeleton3D.cpp56 行定义.

被这些函数引用 eve::particles::ParticleEmitter::attachToSkeleton3D().

◆ getChild()

int eve::ik::Skeleton3D::getChild ( int  boneId,
int  childIndex 
) const

在文件 Skeleton3D.cpp73 行定义.

引用了 b.

◆ getChildCount()

int eve::ik::Skeleton3D::getChildCount ( int  boneId) const

在文件 Skeleton3D.cpp68 行定义.

◆ getLength()

float eve::ik::Skeleton3D::getLength ( int  boneId) const

在文件 Skeleton3D.cpp82 行定义.

◆ getOrientationX()

float eve::ik::Skeleton3D::getOrientationX ( int  boneId) const

在文件 Skeleton3D.cpp128 行定义.

◆ getOrientationY()

float eve::ik::Skeleton3D::getOrientationY ( int  boneId) const

在文件 Skeleton3D.cpp134 行定义.

◆ getOrientationZ()

float eve::ik::Skeleton3D::getOrientationZ ( int  boneId) const

在文件 Skeleton3D.cpp140 行定义.

◆ getParent()

int eve::ik::Skeleton3D::getParent ( int  boneId) const

在文件 Skeleton3D.cpp61 行定义.

引用了 b.

◆ getRootId()

int eve::ik::Skeleton3D::getRootId ( ) const
inline

在文件 Skeleton3D.h22 行定义.

◆ getRotationPitch()

float eve::ik::Skeleton3D::getRotationPitch ( int  boneId) const

在文件 Skeleton3D.cpp158 行定义.

◆ getRotationYaw()

float eve::ik::Skeleton3D::getRotationYaw ( int  boneId) const

在文件 Skeleton3D.cpp152 行定义.

◆ getX()

float eve::ik::Skeleton3D::getX ( int  boneId) const

在文件 Skeleton3D.cpp104 行定义.

◆ getY()

float eve::ik::Skeleton3D::getY ( int  boneId) const

在文件 Skeleton3D.cpp110 行定义.

◆ getZ()

float eve::ik::Skeleton3D::getZ ( int  boneId) const

在文件 Skeleton3D.cpp116 行定义.

◆ hasConstraints()

bool eve::ik::Skeleton3D::hasConstraints ( int  boneId) const

在文件 Skeleton3D.cpp179 行定义.

◆ initStraightPose()

void eve::ik::Skeleton3D::initStraightPose ( float  rootX = 0.f,
float  rootY = 0.f,
float  rootZ = 0.f 
)

在文件 Skeleton3D.cpp184 行定义.

◆ native() [1/2]

::ik::skeleton3d & eve::ik::Skeleton3D::native ( )
inline

在文件 Skeleton3D.h56 行定义.

被这些函数引用 eve::ik::Solver3D::solve() , 以及 eve::ik::Solver3D::step().

◆ native() [2/2]

const ::ik::skeleton3d & eve::ik::Skeleton3D::native ( ) const
inline

在文件 Skeleton3D.h58 行定义.

◆ operator=()

Skeleton3D & eve::ik::Skeleton3D::operator= ( const Skeleton3D )
delete

◆ setConstraints()

void eve::ik::Skeleton3D::setConstraints ( int  boneId,
float  minYaw,
float  minPitch,
float  maxYaw,
float  maxPitch 
)

在文件 Skeleton3D.cpp164 行定义.

◆ setLength()

void eve::ik::Skeleton3D::setLength ( int  boneId,
float  length 
)

在文件 Skeleton3D.cpp87 行定义.

◆ setOrientation()

void eve::ik::Skeleton3D::setOrientation ( int  boneId,
float  x,
float  y,
float  z 
)

在文件 Skeleton3D.cpp122 行定义.

引用了 x, y , 以及 z.

◆ setPosition()

void eve::ik::Skeleton3D::setPosition ( int  boneId,
float  x,
float  y,
float  z 
)

在文件 Skeleton3D.cpp98 行定义.

引用了 x, y , 以及 z.

◆ setRotation()

void eve::ik::Skeleton3D::setRotation ( int  boneId,
float  yaw,
float  pitch 
)

在文件 Skeleton3D.cpp146 行定义.

◆ state() [1/2]

::ik::ecs3d & eve::ik::Skeleton3D::state ( )
inline

在文件 Skeleton3D.h57 行定义.

被这些函数引用 eve::ik::Solver3D::solve() , 以及 eve::ik::Solver3D::step().

◆ state() [2/2]

const ::ik::ecs3d & eve::ik::Skeleton3D::state ( ) const
inline

在文件 Skeleton3D.h59 行定义.

◆ totalLengthTo()

float eve::ik::Skeleton3D::totalLengthTo ( int  boneId) const

在文件 Skeleton3D.cpp208 行定义.

◆ updateRotations()

void eve::ik::Skeleton3D::updateRotations ( )

在文件 Skeleton3D.cpp202 行定义.


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