##// END OF EJS Templates
added stream operator to scatter series
added stream operator to scatter series

File last commit:

r180:6a67b4477dab
r180:6a67b4477dab
Show More
qscatterseries.h
52 lines | 1.3 KiB | text/x-c | CLexer
/ src / qscatterseries.h
Tero Ahola
Integrated scatter type series...
r42 #ifndef QSCATTERSERIES_H
#define QSCATTERSERIES_H
#include "qchartseries.h"
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 #include <QRectF>
Tero Ahola
Draft implementation for setting color themes for a chart
r64 #include <QColor>
Tero Ahola
Integrated scatter type series...
r42
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QScatterSeriesPrivate;
class QTCOMMERCIALCHART_EXPORT QScatterSeries : public QChartSeries
{
Q_OBJECT
public:
//QScatterSeries(QSeriesData *data, QObject *chart);
Tero Ahola
Refactored series creation with QChart
r61 QScatterSeries(QObject *parent = 0);
Tero Ahola
Integrated scatter type series...
r42 ~QScatterSeries();
public: // from QChartSeries
Tero Ahola
Integrated draft version of pie series
r51 QChartSeriesType type() const { return QChartSeries::SeriesTypeScatter; }
Tero Ahola
Integrated scatter type series...
r42
Tero Ahola
Integrated scatter again. Missing functionality....
r158 public:
Tero Ahola
added stream operator to scatter series
r180 // TODO: the name of the function? addPoint? addData? addValue?
void addData(QPointF value);
QScatterSeries& operator << (const QPointF &value);
Tero Ahola
Modifying QScatterSeries API
r179
void setData(QList<QPointF> data);
Tero Ahola
Integrated scatter again. Missing functionality....
r158 QList<QPointF> data();
Tero Ahola
Modifying QScatterSeries API
r179
//TODO? void insertData(int index, QPointF data);
void setMarkerPen(QPen pen);
QPen markerPen();
// TODO: marker shapes: "x", star, rectangle, tilted rect, triangle, circle, dot
//void setMarkerShape(MarkerShape shape);
Tero Ahola
Integrated scatter again. Missing functionality....
r158 Q_SIGNALS:
// TODO: move to PIMPL?
Tero Ahola
Modifying QScatterSeries API
r179 // TODO: more finegrained signaling for performance reasons
Tero Ahola
Integrated scatter again. Missing functionality....
r158 void changed();
Tero Ahola
Modifying QScatterSeries API
r179 //public Q_SLOTS:
Tero Ahola
Integrated scatter type series...
r42 private:
Q_DECLARE_PRIVATE(QScatterSeries)
Q_DISABLE_COPY(QScatterSeries)
QScatterSeriesPrivate *const d;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QSCATTERSERIES_H