##// END OF EJS Templates
compile fix. Removed captain obvious documentation from barseries
compile fix. Removed captain obvious documentation from barseries

File last commit:

r358:543ce926fdb7
r359:3948345f91da
Show More
qscatterseries.h
68 lines | 1.8 KiB | text/x-c | CLexer
#ifndef QSCATTERSERIES_H
#define QSCATTERSERIES_H
#include "qchartseries.h"
#include <QRectF>
#include <QColor>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QScatterSeriesPrivate;
class QTCOMMERCIALCHART_EXPORT QScatterSeries : public QChartSeries
{
Q_OBJECT
public:
enum MarkerShape {
// TODO: to be defined by the graphics design
// TODO: marker shapes: "x", star, rectangle, tilted rect, triangle, circle, dot
MarkerShapeDefault = 0,
MarkerShapePoint,
MarkerShapeX,
MarkerShapeRectangle,
MarkerShapeTiltedRectangle,
MarkerShapeTriangle,
MarkerShapeCircle
};
public:
QScatterSeries(QObject *parent = 0);
~QScatterSeries();
public: // from QChartSeries
QChartSeriesType type() const { return QChartSeries::SeriesTypeScatter; }
public:
void add(qreal x, qreal y);
void add(QPointF value);
void add(QList<QPointF> points);
void setData(QList<QPointF> points);
QScatterSeries& operator << (const QPointF &value);
QScatterSeries& operator << (QList<QPointF> points);
QList<QPointF> data();
//TODO: insert, replace, remove, clear...?
QPen pen();
void setPen(QPen pen);
QBrush brush();
void setBrush(QBrush brush);
MarkerShape shape();
void setShape(MarkerShape shape);
// TODO: marker size?
Q_SIGNALS:
void clicked(/* TODO: parameters? */);
// TODO: move to PIMPL for simplicity or does the user ever need changed signals?
// TODO: more finegrained signaling for performance reasons
// (check QPieSeries implementation with change sets)
void changed();
private:
Q_DECLARE_PRIVATE(QScatterSeries)
Q_DISABLE_COPY(QScatterSeries)
QScatterSeriesPrivate *const d;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QSCATTERSERIES_H