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

Vec3 fluent builder. 更多...

#include <MotionBuilder.h>

Public 成员函数

 MotionVec3Builder (MotionRuntime &runtime, MotionVec3 from, MotionVec3 to, float duration)
 Constructs a MotionVec3Builder.
 
MotionVec3Builder & ease (std::string kind)
 Ease.
 
MotionVec3Builder & delay (float seconds)
 Delay.
 
MotionVec3Builder & loops (int count, MotionLoopMode mode=MotionLoopMode::Restart)
 Loops.
 
MotionVec3Builder & onUpdate (MotionRuntime::Vec3Callback cb)
 On update.
 
MotionVec3Builder & onComplete (MotionRuntime::VoidCallback cb)
 On complete.
 
MotionVec3Builder & onCancel (MotionRuntime::VoidCallback cb)
 On cancel.
 
MotionVec3Builder & cancelOnError (bool enabled)
 Cancel on error.
 
MotionVec3Builder & style (MotionStyle style)
 Select Tween / Punch / Shake evaluation.
 
MotionVec3Builder & frequency (int count)
 Oscillation count for Punch/Shake (default 10).
 
MotionVec3Builder & dampingRatio (float ratio)
 Damping ratio for Punch/Shake (0 = none, 1 = full).
 
MotionVec3Builder & seed (std::uint32_t value)
 Deterministic seed for Shake signs.
 
MotionVec3Builder & to (IMotionVec3Sink &sink)
 To.
 
eve::Result< MotionHandle > run ()
 Run.
 
eve::Result< MotionHandle > bind (IMotionVec3Sink &sink)
 Binds .
 
MotionRuntime & runtime () noexcept
 Runtime.
 
const MotionRuntime & runtime () const noexcept
 Runtime.
 
eve::Result< MotionRuntime::Vec3Desc > takeDesc ()
 Take desc.
 

友元

class MotionSequence
 

详细描述

Vec3 fluent builder.

在文件 MotionBuilder.h 第 137 行定义.

构造及析构函数说明

◆ MotionVec3Builder()

eve::animation::MotionVec3Builder::MotionVec3Builder ( MotionRuntime &  runtime,
MotionVec3  from,
MotionVec3  to,
float  duration 
)

成员函数说明

◆ bind()

eve::Result< MotionHandle > eve::animation::MotionVec3Builder::bind ( IMotionVec3Sink &  sink)

◆ cancelOnError()

MotionVec3Builder & eve::animation::MotionVec3Builder::cancelOnError ( bool  enabled)

Cancel on error.

在文件 MotionBuilder.cpp 第 194 行定义.

引用了 eve::animation::MotionRuntime::Vec3Desc::cancelOnError , 以及 enabled.

◆ dampingRatio()

MotionVec3Builder & eve::animation::MotionVec3Builder::dampingRatio ( float  ratio)

Damping ratio for Punch/Shake (0 = none, 1 = full).

在文件 MotionBuilder.cpp 第 268 行定义.

引用了 eve::animation::MotionRuntime::Vec3Desc::dampingRatio.

◆ delay()

MotionVec3Builder & eve::animation::MotionVec3Builder::delay ( float  seconds)

Delay.

在文件 MotionBuilder.cpp 第 168 行定义.

引用了 eve::animation::MotionRuntime::Vec3Desc::delay.

◆ ease()

MotionVec3Builder & eve::animation::MotionVec3Builder::ease ( std::string  kind)

Ease.

在文件 MotionBuilder.cpp 第 163 行定义.

引用了 eve::animation::MotionRuntime::Vec3Desc::ease , 以及 kind.

◆ frequency()

MotionVec3Builder & eve::animation::MotionVec3Builder::frequency ( int  count)

Oscillation count for Punch/Shake (default 10).

在文件 MotionBuilder.cpp 第 264 行定义.

引用了 count , 以及 eve::animation::MotionRuntime::Vec3Desc::frequency.

◆ loops()

MotionVec3Builder & eve::animation::MotionVec3Builder::loops ( int  count,
MotionLoopMode  mode = MotionLoopMode::Restart 
)

◆ onCancel()

MotionVec3Builder & eve::animation::MotionVec3Builder::onCancel ( MotionRuntime::VoidCallback  cb)

On cancel.

在文件 MotionBuilder.cpp 第 189 行定义.

引用了 eve::animation::MotionRuntime::Vec3Desc::onCancel.

◆ onComplete()

MotionVec3Builder & eve::animation::MotionVec3Builder::onComplete ( MotionRuntime::VoidCallback  cb)

On complete.

在文件 MotionBuilder.cpp 第 184 行定义.

引用了 eve::animation::MotionRuntime::Vec3Desc::onComplete.

◆ onUpdate()

MotionVec3Builder & eve::animation::MotionVec3Builder::onUpdate ( MotionRuntime::Vec3Callback  cb)

On update.

在文件 MotionBuilder.cpp 第 179 行定义.

引用了 eve::animation::MotionRuntime::Vec3Desc::onUpdate.

◆ run()

eve::Result< MotionHandle > eve::animation::MotionVec3Builder::run ( )

◆ runtime() [1/2]

const MotionRuntime & eve::animation::MotionVec3Builder::runtime ( ) const
inlinenoexcept

Runtime.

在文件 MotionBuilder.h 第 176 行定义.

◆ runtime() [2/2]

MotionRuntime & eve::animation::MotionVec3Builder::runtime ( )
inlinenoexcept

Runtime.

在文件 MotionBuilder.h 第 174 行定义.

◆ seed()

MotionVec3Builder & eve::animation::MotionVec3Builder::seed ( std::uint32_t  value)

Deterministic seed for Shake signs.

在文件 MotionBuilder.cpp 第 272 行定义.

引用了 eve::animation::MotionRuntime::Vec3Desc::seed , 以及 value.

◆ style()

MotionVec3Builder & eve::animation::MotionVec3Builder::style ( MotionStyle  style)

Select Tween / Punch / Shake evaluation.

在文件 MotionBuilder.cpp 第 260 行定义.

引用了 style() , 以及 eve::animation::MotionRuntime::Vec3Desc::style.

被这些函数引用 eve::animation::Animation::punchVec3(), eve::animation::Animation::shakeVec3() , 以及 style().

◆ takeDesc()

eve::Result< MotionRuntime::Vec3Desc > eve::animation::MotionVec3Builder::takeDesc ( )

Take desc.

在文件 MotionBuilder.cpp 第 218 行定义.

引用了 eve::Result< T >::failure() , 以及 eve::Result< T >::success().

◆ to()

MotionVec3Builder & eve::animation::MotionVec3Builder::to ( IMotionVec3Sink &  sink)

To.

在文件 MotionBuilder.cpp 第 199 行定义.

引用了 eve::animation::MotionRuntime::Vec3Desc::sink.

友元及相关函数文档

◆ MotionSequence

friend class MotionSequence
friend

在文件 MotionBuilder.h 第 181 行定义.


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