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 | |
| Skeleton3D & | operator= (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.h 第 11 行定义.
构造及析构函数说明
◆ Skeleton3D() [1/2]
| eve::ik::Skeleton3D::Skeleton3D | ( | ) |
在文件 Skeleton3D.cpp 第 7 行定义.
◆ ~Skeleton3D()
|
default |
◆ Skeleton3D() [2/2]
|
delete |
成员函数说明
◆ bind()
| void eve::ik::Skeleton3D::bind | ( | ) |
在文件 Skeleton3D.cpp 第 190 行定义.
◆ clearConstraints()
| void eve::ik::Skeleton3D::clearConstraints | ( | int | boneId | ) |
在文件 Skeleton3D.cpp 第 174 行定义.
◆ createBone()
| int eve::ik::Skeleton3D::createBone | ( | int | parentId, |
| float | length = 1.f |
||
| ) |
在文件 Skeleton3D.cpp 第 43 行定义.
引用了 eve::ui::WidgetDesc::id , 以及 parent.
◆ forwardKinematics()
| void eve::ik::Skeleton3D::forwardKinematics | ( | ) |
在文件 Skeleton3D.cpp 第 196 行定义.
◆ getBoneCount()
| int eve::ik::Skeleton3D::getBoneCount | ( | ) | const |
在文件 Skeleton3D.cpp 第 56 行定义.
被这些函数引用 eve::particles::ParticleEmitter::attachToSkeleton3D().
◆ getChild()
| int eve::ik::Skeleton3D::getChild | ( | int | boneId, |
| int | childIndex | ||
| ) | const |
在文件 Skeleton3D.cpp 第 73 行定义.
引用了 b.
◆ getChildCount()
| int eve::ik::Skeleton3D::getChildCount | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 68 行定义.
◆ getLength()
| float eve::ik::Skeleton3D::getLength | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 82 行定义.
◆ getOrientationX()
| float eve::ik::Skeleton3D::getOrientationX | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 128 行定义.
◆ getOrientationY()
| float eve::ik::Skeleton3D::getOrientationY | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 134 行定义.
◆ getOrientationZ()
| float eve::ik::Skeleton3D::getOrientationZ | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 140 行定义.
◆ getParent()
| int eve::ik::Skeleton3D::getParent | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 61 行定义.
引用了 b.
◆ getRootId()
|
inline |
在文件 Skeleton3D.h 第 22 行定义.
◆ getRotationPitch()
| float eve::ik::Skeleton3D::getRotationPitch | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 158 行定义.
◆ getRotationYaw()
| float eve::ik::Skeleton3D::getRotationYaw | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 152 行定义.
◆ getX()
| float eve::ik::Skeleton3D::getX | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 104 行定义.
◆ getY()
| float eve::ik::Skeleton3D::getY | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 110 行定义.
◆ getZ()
| float eve::ik::Skeleton3D::getZ | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 116 行定义.
◆ hasConstraints()
| bool eve::ik::Skeleton3D::hasConstraints | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 179 行定义.
◆ initStraightPose()
| void eve::ik::Skeleton3D::initStraightPose | ( | float | rootX = 0.f, |
| float | rootY = 0.f, |
||
| float | rootZ = 0.f |
||
| ) |
在文件 Skeleton3D.cpp 第 184 行定义.
◆ native() [1/2]
|
inline |
在文件 Skeleton3D.h 第 56 行定义.
被这些函数引用 eve::ik::Solver3D::solve() , 以及 eve::ik::Solver3D::step().
◆ native() [2/2]
|
inline |
在文件 Skeleton3D.h 第 58 行定义.
◆ operator=()
|
delete |
◆ setConstraints()
| void eve::ik::Skeleton3D::setConstraints | ( | int | boneId, |
| float | minYaw, | ||
| float | minPitch, | ||
| float | maxYaw, | ||
| float | maxPitch | ||
| ) |
在文件 Skeleton3D.cpp 第 164 行定义.
◆ setLength()
| void eve::ik::Skeleton3D::setLength | ( | int | boneId, |
| float | length | ||
| ) |
在文件 Skeleton3D.cpp 第 87 行定义.
◆ setOrientation()
| void eve::ik::Skeleton3D::setOrientation | ( | int | boneId, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
在文件 Skeleton3D.cpp 第 122 行定义.
◆ setPosition()
| void eve::ik::Skeleton3D::setPosition | ( | int | boneId, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) |
在文件 Skeleton3D.cpp 第 98 行定义.
◆ setRotation()
| void eve::ik::Skeleton3D::setRotation | ( | int | boneId, |
| float | yaw, | ||
| float | pitch | ||
| ) |
在文件 Skeleton3D.cpp 第 146 行定义.
◆ state() [1/2]
|
inline |
在文件 Skeleton3D.h 第 57 行定义.
被这些函数引用 eve::ik::Solver3D::solve() , 以及 eve::ik::Solver3D::step().
◆ state() [2/2]
|
inline |
在文件 Skeleton3D.h 第 59 行定义.
◆ totalLengthTo()
| float eve::ik::Skeleton3D::totalLengthTo | ( | int | boneId | ) | const |
在文件 Skeleton3D.cpp 第 208 行定义.
◆ updateRotations()
| void eve::ik::Skeleton3D::updateRotations | ( | ) |
在文件 Skeleton3D.cpp 第 202 行定义.
该类的文档由以下文件生成:
- src/modules/ik/Skeleton3D.h
- src/modules/ik/Skeleton3D.cpp