##// END OF EJS Templates
Test app now adds n data series of different type
Test app now adds n data series of different type

File last commit:

r19:b231f8e5fa43
r20:1184ba596217
Show More
qxyseries.h
33 lines | 606 B | text/x-c | CLexer
Michal Klocek
adds missing files form previous commit
r12 #ifndef QXYSERIES_H_
#define QXYSERIES_H_
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
#include "qchartconfig.h"
Michal Klocek
adds missing files form previous commit
r12 #include <QDebug>
#include <QColor>
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 QCHART_BEGIN_NAMESPACE
Michal Klocek
adds missing files form previous commit
r12
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 class QCHART_EXPORT QXYSeries
Michal Klocek
adds missing files form previous commit
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;
};
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 QCHART_END_NAMESPACE
Michal Klocek
adds missing files form previous commit
r12 #endif