CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
BUI::GAnimatePropertyValue< ValueType > 模板类 参考

数值动画模板。使用时同样先调用UpdateTimeLine(t)。未调用的情况下,值不会发生变换,自然也无法实现动画效果 更多...

类 BUI::GAnimatePropertyValue< ValueType > 继承关系图:

Public 成员函数

 GAnimatePropertyValue ()
 GAnimatePropertyValue (ValueType zero)
 ~GAnimatePropertyValue ()
void SetFormToValue (ValueType form, ValueType to)
void Reset ()
ValueType Value (ValueType default_value)
Public 成员函数 继承自 BUI::GAnimateProperty
 GAnimateProperty ()
virtual ~GAnimateProperty ()
void SetReppeatDuration (float dur)
 设置动画执行时长。0表示无限循环
void SetDuration (float dur)
 设置动画一帧的时长。
void UpdateBeginTime (float t)
 更新动画开始时刻。 e.g. UpdateBeginTime(GetGlobalTime());
void UpdateTimeLine (float t, float *reset=NULL)
 更新动画当前时刻。 e.g. UpdateBeginTime(GetGlobalTime());
BOOL IsPause () const
 获得动画状态
void PauseAnimate (BOOL is_pause)
 动画暂停或启动

Public 属性

ValueType m_value
ValueType m_form
ValueType m_to
std::vector< ValueType > m_values
std::vector< float > m_key_times
std::vector< GAnimateBezierEasingm_splines
Public 属性 继承自 BUI::GAnimateProperty
float m_base
float m_begin
float m_dur
float m_repeat_dur
float m_cur
float m_p
CalcMode m_clacmode
GAnimateBezierEasing m_easing
BOOL m_is_pause

详细描述

template<class ValueType>
class BUI::GAnimatePropertyValue< ValueType >

数值动画模板。使用时同样先调用UpdateTimeLine(t)。未调用的情况下,值不会发生变换,自然也无法实现动画效果

模板参数
ValueType:数值类型,float,int,color(颜色)等

构造及析构函数说明

◆ GAnimatePropertyValue() [1/2]

template<class ValueType>
BUI::GAnimatePropertyValue< ValueType >::GAnimatePropertyValue ( )

◆ GAnimatePropertyValue() [2/2]

template<class ValueType>
BUI::GAnimatePropertyValue< ValueType >::GAnimatePropertyValue ( ValueType zero)

◆ ~GAnimatePropertyValue()

template<class ValueType>
BUI::GAnimatePropertyValue< ValueType >::~GAnimatePropertyValue ( )

成员函数说明

◆ Reset()

template<class ValueType>
void BUI::GAnimatePropertyValue< ValueType >::Reset ( )

◆ SetFormToValue()

template<class ValueType>
void BUI::GAnimatePropertyValue< ValueType >::SetFormToValue ( ValueType form,
ValueType to )

◆ Value()

template<class ValueType>
ValueType BUI::GAnimatePropertyValue< ValueType >::Value ( ValueType default_value)

类成员变量说明

◆ m_form

template<class ValueType>
ValueType BUI::GAnimatePropertyValue< ValueType >::m_form

◆ m_key_times

template<class ValueType>
std::vector<float> BUI::GAnimatePropertyValue< ValueType >::m_key_times

◆ m_splines

template<class ValueType>
std::vector<GAnimateBezierEasing> BUI::GAnimatePropertyValue< ValueType >::m_splines

◆ m_to

template<class ValueType>
ValueType BUI::GAnimatePropertyValue< ValueType >::m_to

◆ m_value

template<class ValueType>
ValueType BUI::GAnimatePropertyValue< ValueType >::m_value

◆ m_values

template<class ValueType>
std::vector<ValueType> BUI::GAnimatePropertyValue< ValueType >::m_values
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有