Bone-attached sensor cloud for skinned-motion-retarget interaction queries. Script type: AnimSmrSensorCloud.
更多...
#include <AnimSmr.h>
Public 成员函数 | |
| int | getSensorCount () const |
| Returns the sensor count. | |
| const AnimSmrSensor & | getSensor (int index) const |
| Returns the sensor. | |
| AnimSmrBodyPart | getSensorPart (int index) const |
| Returns the sensor part. | |
| void | evaluateWorldPositions (const AnimPose *pose, std::vector< float > &outXYZ) const |
| Evaluate world-space sensor positions for a pose that already has computeWorld() applied. | |
静态 Public 成员函数 | |
| static AnimSmrSensorCloud | fromSkeleton (const AnimSkeleton *skeleton) |
| Build sensors for every bone: one at the joint and one mid-segment toward the first child. | |
| static AnimSmrSensorCloud | fromSkeletonDense (const AnimSkeleton *skeleton, int ringsPerBone, int pointsPerRing) |
| Build denser MeshRet-style SCS rings around each bone segment. | |
详细描述
Bone-attached sensor cloud for skinned-motion-retarget interaction queries. Script type: AnimSmrSensorCloud.
成员函数说明
◆ evaluateWorldPositions()
| void eve::animation::AnimSmrSensorCloud::evaluateWorldPositions | ( | const AnimPose * | pose, |
| std::vector< float > & | outXYZ | ||
| ) | const |
Evaluate world-space sensor positions for a pose that already has computeWorld() applied.
- 参数
-
outXYZ Packed xyz triples; resized to getSensorCount()*3.
- 异常
-
Exception if pose is null.
在文件 AnimSmr.cpp 第 326 行定义.
引用了 eve::animation::AnimSmrSensor::boneIndex, getSensorCount(), eve::animation::AnimSmrSensor::localX, eve::animation::AnimSmrSensor::localY, eve::animation::AnimSmrSensor::localZ, pose , 以及 world.
被这些函数引用 eve::animation::buildSmrFeatures().
◆ fromSkeleton()
|
static |
Build sensors for every bone: one at the joint and one mid-segment toward the first child.
- 参数
-
skeleton Non-null borrowed skeleton; not retained.
- 异常
-
Exception if skeleton is null. @thread Owner thread.
在文件 AnimSmr.cpp 第 285 行定义.
引用了 eve::animation::AnimSkeleton::bindLocal(), bone, eve::animation::AnimSmrSensor::boneIndex, eve::animation::AnimSkeleton::getBoneCount(), eve::animation::AnimSkeleton::getBoneName(), eve::animation::AnimSkeleton::getParent(), mid, parent, eve::animation::AnimSmrSensor::part, eve::animation::TransformTRS::px, eve::animation::TransformTRS::py, eve::animation::TransformTRS::pz, eve::animation::AnimSmrSensor::semanticKey , 以及 token.
被这些函数引用 fromSkeletonDense().
◆ fromSkeletonDense()
|
static |
Build denser MeshRet-style SCS rings around each bone segment.
- 参数
-
ringsPerBone Number of rings along each parent→child segment (>=1). pointsPerRing Samples around each ring (>=3).
- 异常
-
Exception if skeleton is null or ring counts are invalid.
在文件 AnimSmr.cpp 第 228 行定义.
引用了 angle, ax, ay, az, eve::animation::AnimSkeleton::bindLocal(), bone, eve::animation::AnimSmrSensor::boneIndex, bx, by, bz, cx, cy, dx, dy, dz, fromSkeleton(), eve::animation::AnimSkeleton::getBoneCount(), eve::animation::AnimSkeleton::getBoneName(), eve::animation::AnimSkeleton::getParent(), eve::animation::AnimSmrSensor::localX, eve::animation::AnimSmrSensor::localY, eve::animation::AnimSmrSensor::localZ, parent, eve::animation::AnimSmrSensor::part, eve::animation::TransformTRS::px, eve::animation::TransformTRS::py, eve::animation::TransformTRS::pz, radius, eve::animation::AnimSmrSensor::semanticKey, t , 以及 token.
被这些函数引用 eve::animation::buildSmrFeatures().
◆ getSensor()
| const AnimSmrSensor & eve::animation::AnimSmrSensorCloud::getSensor | ( | int | index | ) | const |
Returns the sensor.
在文件 AnimSmr.cpp 第 319 行定义.
引用了 getSensorCount() , 以及 index.
被这些函数引用 eve::animation::buildSmrFeatures() , 以及 getSensorPart().
◆ getSensorCount()
|
inline |
Returns the sensor count.
被这些函数引用 eve::animation::buildSmrFeatures(), evaluateWorldPositions() , 以及 getSensor().
◆ getSensorPart()
| AnimSmrBodyPart eve::animation::AnimSmrSensorCloud::getSensorPart | ( | int | index | ) | const |
Returns the sensor part.
在文件 AnimSmr.cpp 第 324 行定义.
引用了 getSensor(), index , 以及 eve::animation::AnimSmrSensor::part.
被这些函数引用 eve::animation::buildSmrFeatures().
该类的文档由以下文件生成:
- src/modules/animation/AnimSmr.h
- src/modules/animation/AnimSmr.cpp