qxyseries.h
33 lines
| 606 B
| text/x-c
|
CLexer
|
r12 | #ifndef QXYSERIES_H_ | ||
#define QXYSERIES_H_ | ||||
|
r19 | |||
#include "qchartconfig.h" | ||||
|
r12 | #include <QDebug> | ||
#include <QColor> | ||||
|
r19 | QCHART_BEGIN_NAMESPACE | ||
|
r12 | |||
|
r19 | class QCHART_EXPORT QXYSeries | ||
|
r12 | { | ||
public: | ||||
QXYSeries(); | ||||
virtual ~QXYSeries(); | ||||
void add(qreal x, qreal y); | ||||
void clear(); | ||||
void setColor(const QColor& color); | ||||
const QColor& color() const { return m_color;} | ||||
int count() const; | ||||
qreal x(int pos) const; | ||||
qreal y(int pos) const; | ||||
friend QDebug operator<< (QDebug d, const QXYSeries series); | ||||
private: | ||||
QColor m_color; | ||||
QList<qreal> m_x; | ||||
QList<qreal> m_y; | ||||
}; | ||||
|
r19 | QCHART_END_NAMESPACE | ||
|
r12 | #endif | ||