Quaternion fluent builder (Tween / slerp only). 更多...
#include <MotionBuilder.h>
Public 成员函数 | |
| MotionQuatBuilder (MotionRuntime &runtime, MotionQuat from, MotionQuat to, float duration) | |
| Motion quat builder. | |
| MotionQuatBuilder & | ease (std::string kind) |
| Ease. | |
| MotionQuatBuilder & | delay (float seconds) |
| Delay. | |
| MotionQuatBuilder & | loops (int count, MotionLoopMode mode=MotionLoopMode::Restart) |
| Loops. | |
| MotionQuatBuilder & | onUpdate (MotionRuntime::QuatCallback cb) |
| On update. | |
| MotionQuatBuilder & | onComplete (MotionRuntime::VoidCallback cb) |
| On complete. | |
| MotionQuatBuilder & | onCancel (MotionRuntime::VoidCallback cb) |
| On cancel. | |
| MotionQuatBuilder & | cancelOnError (bool enabled) |
| Cancel on error. | |
| MotionQuatBuilder & | to (IMotionQuatSink &sink) |
| To. | |
| eve::Result< MotionHandle > | run () |
| Run. | |
| eve::Result< MotionHandle > | bind (IMotionQuatSink &sink) |
| Binds . | |
| MotionRuntime & | runtime () noexcept |
| Runtime. | |
| const MotionRuntime & | runtime () const noexcept |
| Runtime. | |
| eve::Result< MotionRuntime::QuatDesc > | takeDesc () |
| Take desc. | |
详细描述
Quaternion fluent builder (Tween / slerp only).
在文件 MotionBuilder.h 第 231 行定义.
构造及析构函数说明
◆ MotionQuatBuilder()
| eve::animation::MotionQuatBuilder::MotionQuatBuilder | ( | MotionRuntime & | runtime, |
| MotionQuat | from, | ||
| MotionQuat | to, | ||
| float | duration | ||
| ) |
Motion quat builder.
在文件 MotionBuilder.cpp 第 336 行定义.
引用了 duration, eve::animation::MotionRuntime::QuatDesc::duration, eve::animation::MotionRuntime::QuatDesc::from, from, eve::animation::MotionRuntime::QuatDesc::to , 以及 to.
成员函数说明
◆ bind()
| eve::Result< MotionHandle > eve::animation::MotionQuatBuilder::bind | ( | IMotionQuatSink & | sink | ) |
Binds .
在文件 MotionBuilder.cpp 第 382 行定义.
引用了 eve::Result< T >::failure(), eve::animation::MotionRuntime::QuatDesc::sink , 以及 eve::animation::MotionRuntime::spawnQuat().
◆ cancelOnError()
| MotionQuatBuilder & eve::animation::MotionQuatBuilder::cancelOnError | ( | bool | enabled | ) |
Cancel on error.
在文件 MotionBuilder.cpp 第 368 行定义.
引用了 eve::animation::MotionRuntime::QuatDesc::cancelOnError , 以及 enabled.
◆ delay()
| MotionQuatBuilder & eve::animation::MotionQuatBuilder::delay | ( | float | seconds | ) |
◆ ease()
| MotionQuatBuilder & eve::animation::MotionQuatBuilder::ease | ( | std::string | kind | ) |
◆ loops()
| MotionQuatBuilder & eve::animation::MotionQuatBuilder::loops | ( | int | count, |
| MotionLoopMode | mode = MotionLoopMode::Restart |
||
| ) |
Loops.
在文件 MotionBuilder.cpp 第 351 行定义.
引用了 count, eve::animation::MotionRuntime::QuatDesc::loopMode , 以及 eve::animation::MotionRuntime::QuatDesc::loops.
◆ onCancel()
| MotionQuatBuilder & eve::animation::MotionQuatBuilder::onCancel | ( | MotionRuntime::VoidCallback | cb | ) |
◆ onComplete()
| MotionQuatBuilder & eve::animation::MotionQuatBuilder::onComplete | ( | MotionRuntime::VoidCallback | cb | ) |
On complete.
在文件 MotionBuilder.cpp 第 360 行定义.
◆ onUpdate()
| MotionQuatBuilder & eve::animation::MotionQuatBuilder::onUpdate | ( | MotionRuntime::QuatCallback | cb | ) |
◆ run()
| eve::Result< MotionHandle > eve::animation::MotionQuatBuilder::run | ( | ) |
◆ runtime() [1/2]
|
inlinenoexcept |
在文件 MotionBuilder.h 第 261 行定义.
◆ runtime() [2/2]
|
inlinenoexcept |
在文件 MotionBuilder.h 第 259 行定义.
◆ takeDesc()
| eve::Result< MotionRuntime::QuatDesc > eve::animation::MotionQuatBuilder::takeDesc | ( | ) |
Take desc.
在文件 MotionBuilder.cpp 第 388 行定义.
引用了 eve::Result< T >::failure() , 以及 eve::Result< T >::success().
◆ to()
| MotionQuatBuilder & eve::animation::MotionQuatBuilder::to | ( | IMotionQuatSink & | sink | ) |
该类的文档由以下文件生成:
- src/modules/animation/MotionBuilder.h
- src/modules/animation/MotionBuilder.cpp