##// END OF EJS Templates
Some spline fixes
Some spline fixes

File last commit:

r455:49ff5e3c0df2
r455:49ff5e3c0df2
Show More
splinepresenter_p.h
28 lines | 642 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);
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // SPLINEPRESENTER_P_H