##// END OF EJS Templates
Changed to dark outline for scatter and area
Changed to dark outline for scatter and area

File last commit:

r470:5c708e3e7c7c
r516:2a4c7f90e42a
Show More
qsplineseries.h
43 lines | 999 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>
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 #include "qlineseries.h"
Marek Rosa
Spline working somewhat
r401 #include <QList>
#include <QPointF>
Marek Rosa
Spline initial
r295
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 class QTCOMMERCIALCHART_EXPORT QSplineSeries : public QLineSeries
Marek Rosa
Spline initial
r295 {
Q_OBJECT
Michal Klocek
Spline series windows compilation fix
r467 public:
Marek Rosa
Spline some more
r305
QSplineSeries(QObject *parent = 0);
Michal Klocek
Spline series windows compilation fix
r467 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(); }
Michal Klocek
Spline series windows compilation fix
r467 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();
Michal Klocek
Spline series windows compilation fix
r467
private:
Marek Rosa
Added automatic refresh of control points on add/remove point. Spline example updated
r431 void calculateControlPoints();
QList<qreal> getFirstControlPoints(QList<qreal> rhs);
Michal Klocek
Spline series windows compilation fix
r467 private slots:
Marek Rosa
Added automatic refresh of control points on add/remove point. Spline example updated
r431 void updateControlPoints();
Marek Rosa
Spline some more
r305
Michal Klocek
Spline series windows compilation fix
r467 private:
Marek Rosa
Further changes
r318 QList<QPointF> m_controlPoints;
Michal Klocek
Spline series windows compilation fix
r467
Marek Rosa
Spline initial
r295 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QSPLINESERIES_H