##// END OF EJS Templates
Fixed build error caused by QSeries name change
Fixed build error caused by QSeries name change

File last commit:

r622:960bcf5125b7
r733:a8e3d9a5ee37
Show More
splineanimation_p.h
33 lines | 813 B | text/x-c | CLexer
/ src / animations / splineanimation_p.h
Michal Klocek
Improves spline interpolation...
r622 #ifndef SPLINEANIMATION_P_H_
#define SPLINEANIMATION_P_H_
#include "chartanimation_p.h"
#include <QPointF>
typedef QPair<QVector<QPointF >, QVector<QPointF > > SplineVector;
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class SplineChartItem;
class SplineAnimation : public ChartAnimation
{
public:
SplineAnimation(SplineChartItem* item);
~SplineAnimation();
void setValues(QVector<QPointF>& oldPoints,QVector<QPointF>& newPoints,QVector<QPointF>& oldContorlPoints,QVector<QPointF>& newControlPoints,int index);
protected:
QVariant interpolated(const QVariant &start, const QVariant & end, qreal progress ) const;
void updateCurrentValue (const QVariant & value );
private:
SplineVector m_oldSpline;
SplineChartItem* m_item;
bool m_dirty;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif