动画抽象基类 更多...
#include <Animation.hpp>
类 GFt::AnimationAbstract 继承关系图:Public 类型 | |
| using | AType = AnimationStateType |
Public 成员函数 | |
| AnimationAbstract (const TimePoint &start_time, float ms, const TransFunc &trans_func) | |
| ~AnimationAbstract () | |
| float | getDuration () const |
| 获取动画的持续时间 | |
| const TransFunc & | getTransFunc () const |
| 获取动画的过渡变换函数 | |
| bool | isPaused () const |
| 判断动画是否处于暂停状态 | |
| bool | isPlaying () const |
| 判断动画是否处于播放状态 | |
| bool | isStopped () const |
| 判断动画是否处于停止状态 | |
| void | setDuration (float ms) |
| 设置动画持续时间 | |
| void | setPause () |
| 设置动画状态为暂停 | |
| void | setPlay () |
| 设置动画状态为播放 | |
| void | setStop () |
| 设置动画状态为停止 | |
| void | setTransFunc (const TransFunc &trans_func) |
| 设置动画过渡变换函数 | |
| void | update (const TimePoint &now) |
Public 属性 | |
| Signal< void > | onFinished |
| 动画进度改变信号 | |
| Signal< AType, AType > | onStateChanged |
| 动画状态改变信号 | |
| Signal< void > | onUpdated |
| 动画值更新信号 | |
Protected 成员函数 | |
| virtual void | hadSetPlay ()=0 |
| virtual void | playingUpdate (const TimePoint &now)=0 |
友元 | |
| template<typename Type > | |
| class | Animation |
| class | AnimationManager |
| class | AnimationPause |
| class | AnimationPlay |
| class | AnimationState |
| class | AnimationStop |
动画抽象基类
| GFt::AnimationAbstract::AnimationAbstract | ( | const TimePoint & | start_time, |
| float | ms, | ||
| const TransFunc & | trans_func ) |
| GFt::AnimationAbstract::~AnimationAbstract | ( | ) |
| float GFt::AnimationAbstract::getDuration | ( | ) | const |
获取动画的持续时间
| const TransFunc & GFt::AnimationAbstract::getTransFunc | ( | ) | const |
获取动画的过渡变换函数
|
protectedpure virtual |
在 GFt::Animation< Type > 内被实现.
| bool GFt::AnimationAbstract::isPaused | ( | ) | const |
判断动画是否处于暂停状态
| bool GFt::AnimationAbstract::isPlaying | ( | ) | const |
判断动画是否处于播放状态
| bool GFt::AnimationAbstract::isStopped | ( | ) | const |
判断动画是否处于停止状态
|
protectedpure virtual |
在 GFt::Animation< Type > 内被实现.
| void GFt::AnimationAbstract::setDuration | ( | float | ms | ) |
设置动画持续时间
| ms | 持续时间(毫秒) |
| void GFt::AnimationAbstract::setPause | ( | ) |
设置动画状态为暂停
不允许从停止状态直接切换到暂停状态,必须先切换到播放状态再切换到暂停状态 若处于停止状态或暂停状态,则此函数无效
| void GFt::AnimationAbstract::setPlay | ( | ) |
设置动画状态为播放
若处于播放状态,则此函数无效
| void GFt::AnimationAbstract::setStop | ( | ) |
设置动画状态为停止
若处于停止状态,则此函数无效
| void GFt::AnimationAbstract::setTransFunc | ( | const TransFunc & | trans_func | ) |
设置动画过渡变换函数
| trans_func | 过渡变换函数 |
| void GFt::AnimationAbstract::update | ( | const TimePoint & | now | ) |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
| Signal<void> GFt::AnimationAbstract::onFinished |
动画进度改变信号
| Signal<void> GFt::AnimationAbstract::onUpdated |
动画值更新信号