##// END OF EJS Templates
Added support for data from model to QBarSeries. Various fixes and small modifications to data from model support to other series
Added support for data from model to QBarSeries. Various fixes and small modifications to data from model support to other series

File last commit:

r622:960bcf5125b7
r630:dd8db9a3a988
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