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