##// END OF EJS Templates
Added automatic refresh of control points on add/remove point. Spline example updated
Added automatic refresh of control points on add/remove point. Spline example updated

File last commit:

r423:b60b8b7d9d8b
r431:575ceaee424c
Show More
splinepresenter_p.h
33 lines | 672 B | text/x-c | CLexer
#ifndef SPLINEPRESENTER_P_H
#define SPLINEPRESENTER_P_H
#include "chartitem_p.h"
#include <QObject>
#include "qsplineseries.h"
#include "linechartitem_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class SplinePresenter : public LineChartItem
{
Q_OBJECT
public:
SplinePresenter(QSplineSeries* series, QGraphicsObject *parent = 0);
void updateGeometry();
void applyGeometry(QVector<QPointF>& points);
QPointF calculateGeometryControlPoint(int index) const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
signals:
public slots:
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // SPLINEPRESENTER_P_H