qxychartseries.h
45 lines
| 936 B
| text/x-c
|
CLexer
Michal Klocek
|
r12 | #ifndef QXYSERIES_H_ | ||
#define QXYSERIES_H_ | ||||
Tero Ahola
|
r19 | |||
Tero Ahola
|
r30 | #include "qchartglobal.h" | ||
Michal Klocek
|
r21 | #include "qchartseries.h" | ||
Michal Klocek
|
r12 | #include <QDebug> | ||
Michal Klocek
|
r85 | #include <QPen> | ||
#include <QBrush> | ||||
Michal Klocek
|
r12 | |||
Tero Ahola
|
r30 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||
Michal Klocek
|
r12 | |||
Tero Ahola
|
r30 | class QTCOMMERCIALCHART_EXPORT QXYChartSeries : public QChartSeries | ||
Michal Klocek
|
r12 | { | ||
sauimone
|
r62 | //TODO: | ||
// Q_OBJECT | ||||
Michal Klocek
|
r21 | private: | ||
QXYChartSeries(QObject* parent=0); | ||||
Michal Klocek
|
r12 | public: | ||
Michal Klocek
|
r21 | virtual ~QXYChartSeries(); | ||
Tero Ahola
|
r108 | public: // from QChartSeries | ||
Michal Klocek
|
r21 | static QXYChartSeries* create(QObject* parent=0); | ||
Tero Ahola
|
r30 | virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeLine;} | ||
Michal Klocek
|
r21 | |||
Tero Ahola
|
r108 | public: | ||
Michal Klocek
|
r12 | void add(qreal x, qreal y); | ||
void clear(); | ||||
Michal Klocek
|
r85 | |||
void setPen(const QPen& pen); | ||||
const QPen& pen() const { return m_pen;} | ||||
Michal Klocek
|
r12 | int count() const; | ||
qreal x(int pos) const; | ||||
qreal y(int pos) const; | ||||
Michal Klocek
|
r21 | friend QDebug operator<< (QDebug d, const QXYChartSeries series); | ||
Michal Klocek
|
r12 | |||
private: | ||||
QList<qreal> m_x; | ||||
QList<qreal> m_y; | ||||
Michal Klocek
|
r85 | QPen m_pen; | ||
Michal Klocek
|
r12 | }; | ||
Tero Ahola
|
r30 | QTCOMMERCIALCHART_END_NAMESPACE | ||
Tero Ahola
|
r19 | |||
Michal Klocek
|
r12 | #endif | ||