xyanimation_p.h
30 lines
| 730 B
| text/x-c
|
CLexer
Michal Klocek
|
r530 | #ifndef XYCHARTANIMATION_P_H_ | ||
#define XYCHARTANIMATION_P_H_ | ||||
#include "chartanimation_p.h" | ||||
#include <QPointF> | ||||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class XYChartItem; | ||||
class XYAnimation : public ChartAnimation | ||||
{ | ||||
public: | ||||
Marek Rosa
|
r738 | enum Animation { LineDrawAnimation, MoveDownAnimation, MoveUpAnimation }; | ||
Michal Klocek
|
r530 | XYAnimation(XYChartItem *item); | ||
~XYAnimation(); | ||||
Marek Rosa
|
r738 | void setValues(QVector<QPointF> &oldPoints, QVector<QPointF> &newPoints,int index); | ||
Michal Klocek
|
r530 | |||
protected: | ||||
Marek Rosa
|
r738 | QVariant interpolated(const QVariant &start, const QVariant &end, qreal progress ) const; | ||
void updateCurrentValue (const QVariant &value ); | ||||
Michal Klocek
|
r530 | |||
private: | ||||
XYChartItem *m_item; | ||||
Michal Klocek
|
r622 | QVector<QPointF> m_oldPoints; | ||
Michal Klocek
|
r530 | bool m_dirty; | ||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif | ||||