##// END OF EJS Templates
Scatter API review: changed signal now private etc.
Scatter API review: changed signal now private etc.

File last commit:

r434:52aa7c3abf86
r459:272f4a2e7431
Show More
qsplineseries.h
42 lines | 997 B | text/x-c | CLexer
Marek Rosa
Spline initial
r295 #ifndef QSPLINESERIES_H
#define QSPLINESERIES_H
Marek Rosa
Spline working somewhat
r401 #include "qchartglobal.h"
#include <QtGlobal>
Marek Rosa
Spline with problems
r419 #include "qlineseries.h"
Marek Rosa
Spline working somewhat
r401 #include <QList>
#include <QPointF>
Marek Rosa
Spline initial
r295
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Marek Rosa
Spline with problems
r419 class QSplineSeries : public QLineSeries
Marek Rosa
Spline initial
r295 {
Q_OBJECT
public:
Marek Rosa
Spline some more
r305
QSplineSeries(QObject *parent = 0);
Marek Rosa
Spline with problems
r419 QSeriesType type() const { return QSeries::SeriesTypeSpline; }
Marek Rosa
Spline working somewhat
r401
Marek Rosa
QSplineSeries documentation added
r433 // int count() const { return m_x.size(); }
Marek Rosa
Spline working somewhat
r401 QPointF controlPoint(int index) const { return m_controlPoints[index]; }
Marek Rosa
Spline some more
r305
Marek Rosa
Spline chart example added
r434 // TODO: allow the user to set custom control points
// void setCustomControlPoints(QList<QPointsF> controlPoints);
// bool calculateControlPointsAutomatically();
// void setCalculateControlPointsAutomatically();
Marek Rosa
Added automatic refresh of control points on add/remove point. Spline example updated
r431 private:
void calculateControlPoints();
QList<qreal> getFirstControlPoints(QList<qreal> rhs);
private slots:
void updateControlPoints();
Marek Rosa
Spline some more
r305
private:
Marek Rosa
Further changes
r318 QList<QPointF> m_controlPoints;
Marek Rosa
Spline initial
r295
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QSPLINESERIES_H