qsplineseries.h
41 lines
| 921 B
| text/x-c
|
CLexer
|
r295 | #ifndef QSPLINESERIES_H | ||
#define QSPLINESERIES_H | ||||
|
r401 | #include "qchartglobal.h" | ||
#include <QtGlobal> | ||||
|
r419 | #include "qlineseries.h" | ||
|
r401 | #include <QList> | ||
#include <QPointF> | ||||
|
r295 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
|
r419 | class QSplineSeries : public QLineSeries | ||
|
r295 | { | ||
Q_OBJECT | ||||
public: | ||||
|
r305 | |||
QSplineSeries(QObject *parent = 0); | ||||
|
r419 | QSeriesType type() const { return QSeries::SeriesTypeSpline; } | ||
// void addData(QPointF value); | ||||
// QSplineSeries& operator << (const QPointF &value); | ||||
|
r318 | void calculateControlPoints(); | ||
|
r401 | QList<qreal> getFirstControlPoints(QList<qreal> rhs); | ||
|
r419 | int count() const { return m_x.size(); } | ||
|
r401 | |||
|
r419 | // QPointF at(int index) const { return m_data[index]; } | ||
|
r401 | QPointF controlPoint(int index) const { return m_controlPoints[index]; } | ||
|
r305 | |||
|
r295 | signals: | ||
public slots: | ||||
|
r305 | |||
private: | ||||
|
r419 | // QList<QPointF> m_data; | ||
|
r318 | QList<QPointF> m_controlPoints; | ||
|
r295 | |||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // QSPLINESERIES_H | ||||