##// END OF EJS Templates
Spline with problems
Spline with problems

File last commit:

r419:1666cfa56d96
r419:1666cfa56d96
Show More
qlineseries.h
59 lines | 1.3 KiB | text/x-c | CLexer
Michal Klocek
Rename QChartSeries to QSeries
r360 #ifndef QLINESERIES_H_
#define QLINESERIES_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
Rename QChartSeries to QSeries
r360 #include "qseries.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
Michal Klocek
Rename QChartSeries to QSeries
r360 class QTCOMMERCIALCHART_EXPORT QLineSeries : public QSeries
Michal Klocek
adds missing files form previous commit
r12 {
Michal Klocek
Refactors qchart , adds line animation...
r131 Q_OBJECT
Marek Rosa
Spline with problems
r419 public:
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 QLineSeries(QObject* parent=0);
virtual ~QLineSeries();
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Marek Rosa
Spline with problems
r419 public: // from QChartSeries
Michal Klocek
Rename QChartSeries to QSeries
r360 virtual QSeriesType type() const { return QSeries::SeriesTypeLine;}
Michal Klocek
Remove index from QLineChartSeries API
r348 void add(qreal x, qreal y);
void add(const QPointF& point);
void replace(qreal x,qreal y);
void replace(const QPointF& point);
void remove(qreal x);
void remove(const QPointF& point);
Michal Klocek
adds missing files form previous commit
r12 void clear();
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85
void setPen(const QPen& pen);
Michal Klocek
Refactor documentation...
r331 QPen pen() const { return m_pen;}
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85
Michal Klocek
minor. missing setter for line series
r186 void setPointsVisible(bool visible);
Michal Klocek
Fixes pointsVisible naming convention in qlineseries
r367 bool pointsVisible() const {return m_pointsVisible;}
Michal Klocek
Add pointsVisible setting for line series
r185
Michal Klocek
adds missing files form previous commit
r12 int count() const;
qreal x(int pos) const;
qreal y(int pos) const;
Michal Klocek
Adds stream operator to qlinechart
r372
QLineSeries& operator << (const QPointF &point);
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 friend QDebug operator<< (QDebug d, const QLineSeries series);
Michal Klocek
adds missing files form previous commit
r12
Marek Rosa
Spline with problems
r419 signals:
Michal Klocek
Rewrite animation hadnling in line series...
r389 void pointReplaced(int index);
Michal Klocek
Adds replace,remove,add signals to qchartline
r374 void pointRemoved(int index);
void pointAdded(int index);
Michal Klocek
Adds updated handling for line series
r392 void updated();
Michal Klocek
Refactors qchart , adds line animation...
r131
Marek Rosa
Spline with problems
r419 protected:
Michal Klocek
Refactors qchart , adds line animation...
r131 QVector<qreal> m_x;
QVector<qreal> m_y;
Marek Rosa
Spline with problems
r419
private:
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 QPen m_pen;
Michal Klocek
Add pointsVisible setting for line series
r185 bool m_pointsVisible;
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