splinepresenter_p.h
40 lines
| 917 B
| text/x-c
|
CLexer
|
r295 | #ifndef SPLINEPRESENTER_P_H | ||
#define SPLINEPRESENTER_P_H | ||||
#include "chartitem_p.h" | ||||
#include <QObject> | ||||
|
r401 | #include "qsplineseries.h" | ||
|
r417 | #include "linechartitem_p.h" | ||
|
r295 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
|
r417 | class SplinePresenter : public LineChartItem | ||
|
r295 | { | ||
Q_OBJECT | ||||
public: | ||||
|
r401 | SplinePresenter(QSplineSeries* series, QGraphicsObject *parent = 0); | ||
|
r295 | |||
|
r417 | void updateGeometry(); | ||
|
r419 | void applyGeometry(QVector<QPointF>& points); | ||
QPointF calculateGeometryControlPoint(int index) const; | ||||
|
r417 | // QRectF boundingRect() const { return m_boundingRect; } | ||
// void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); | ||||
|
r295 | |||
signals: | ||||
public slots: | ||||
|
r417 | // void handleDomainChanged(const Domain& domain); | ||
// void handleGeometryChanged(const QRectF& rect); | ||||
|
r401 | |||
private: | ||||
|
r419 | // QSplineSeries* m_series; | ||
|
r417 | // QRectF m_boundingRect; | ||
|
r295 | |||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // SPLINEPRESENTER_P_H | ||||