##// END OF EJS Templates
Started to refactor the API to allow integrating different plot types
Started to refactor the API to allow integrating different plot types

File last commit:

r19:b231f8e5fa43
r19:b231f8e5fa43
Show More
qxyseries.h
33 lines | 606 B | text/x-c | CLexer
#ifndef QXYSERIES_H_
#define QXYSERIES_H_
#include "qchartconfig.h"
#include <QDebug>
#include <QColor>
QCHART_BEGIN_NAMESPACE
class QCHART_EXPORT QXYSeries
{
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;
};
QCHART_END_NAMESPACE
#endif