##// END OF EJS Templates
Scaling for scatter series
Scaling for scatter series

File last commit:

r108:4cbe204cc325
r111:0d50fe03d2e8
Show More
qxychartseries.h
45 lines | 936 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
Tero Ahola
Renamed to QtCommercialChart
r30 #include "qchartglobal.h"
Michal Klocek
Refactor current draft to fit int current design specs...
r21 #include "qchartseries.h"
Michal Klocek
adds missing files form previous commit
r12 #include <QDebug>
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 #include <QPen>
#include <QBrush>
Michal Klocek
adds missing files form previous commit
r12
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
adds missing files form previous commit
r12
Tero Ahola
Renamed to QtCommercialChart
r30 class QTCOMMERCIALCHART_EXPORT QXYChartSeries : public QChartSeries
Michal Klocek
adds missing files form previous commit
r12 {
sauimone
Refactored series creation.
r62 //TODO:
// Q_OBJECT
Michal Klocek
Refactor current draft to fit int current design specs...
r21 private:
QXYChartSeries(QObject* parent=0);
Michal Klocek
adds missing files form previous commit
r12 public:
Michal Klocek
Refactor current draft to fit int current design specs...
r21 virtual ~QXYChartSeries();
Tero Ahola
One more alternative for changing themes
r108 public: // from QChartSeries
Michal Klocek
Refactor current draft to fit int current design specs...
r21 static QXYChartSeries* create(QObject* parent=0);
Tero Ahola
Renamed to QtCommercialChart
r30 virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeLine;}
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Tero Ahola
One more alternative for changing themes
r108 public:
Michal Klocek
adds missing files form previous commit
r12 void add(qreal x, qreal y);
void clear();
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85
void setPen(const QPen& pen);
const QPen& pen() const { return m_pen;}
Michal Klocek
adds missing files form previous commit
r12 int count() const;
qreal x(int pos) const;
qreal y(int pos) const;
Michal Klocek
Refactor current draft to fit int current design specs...
r21 friend QDebug operator<< (QDebug d, const QXYChartSeries series);
Michal Klocek
adds missing files form previous commit
r12
private:
QList<qreal> m_x;
QList<qreal> m_y;
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 QPen m_pen;
Michal Klocek
adds missing files form previous commit
r12 };
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
Michal Klocek
adds missing files form previous commit
r12 #endif