##// END OF EJS Templates
Adds win32 command condition to src.pro
Adds win32 command condition to src.pro

File last commit:

r622:960bcf5125b7
r627:110f905bcf35
Show More
splineanimation_p.h
33 lines | 813 B | text/x-c | CLexer
#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