qscatterseries_p.h
47 lines
| 1.1 KiB
| text/x-c
|
CLexer
/ src / qscatterseries_p.h
Tero Ahola
|
r42 | #ifndef QSCATTERSERIESPRIVATE_H | ||
#define QSCATTERSERIESPRIVATE_H | ||||
#include "qchartseries.h" | ||||
Tero Ahola
|
r103 | #include "charttheme_p.h" | ||
Tero Ahola
|
r104 | #include "chartitem_p.h" | ||
Michal Klocek
|
r149 | #include "domain_p.h" | ||
Tero Ahola
|
r42 | #include <QGraphicsItem> | ||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
/*! | ||||
* The PIMPL class of QScatterSeries. | ||||
*/ | ||||
Michal Klocek
|
r143 | class QScatterSeriesPrivate : public ChartItem | ||
Tero Ahola
|
r42 | { | ||
public: | ||||
Tero Ahola
|
r61 | QScatterSeriesPrivate(QGraphicsItem *parent); | ||
Tero Ahola
|
r42 | |||
Tero Ahola
|
r104 | public: // from ChartObjectInterface | ||
Michal Klocek
|
r115 | void setSize(const QSizeF &size); | ||
Michal Klocek
|
r149 | void setPlotDomain(const Domain& data); | ||
Tero Ahola
|
r104 | |||
Tero Ahola
|
r108 | public: // from ChartThemeObserver | ||
void themeChanged(ChartTheme *theme); | ||||
Tero Ahola
|
r42 | public: // from QGraphicsItem | ||
QRectF boundingRect() const; | ||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); | ||||
Tero Ahola
|
r75 | public: | ||
Tero Ahola
|
r111 | void changeGeometry(); | ||
Tero Ahola
|
r104 | |||
Tero Ahola
|
r111 | QRectF m_boundingRect; | ||
Tero Ahola
|
r42 | // TODO: use the chart data class instead of list of x and y values? | ||
QList<qreal> m_x; | ||||
QList<qreal> m_y; | ||||
Tero Ahola
|
r48 | QList<qreal> m_scenex; | ||
QList<qreal> m_sceney; | ||||
Tero Ahola
|
r64 | QColor m_markerColor; | ||
Michal Klocek
|
r143 | //SeriesTheme m_theme; | ||
Michal Klocek
|
r149 | Domain m_visibleChartArea; | ||
Tero Ahola
|
r42 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
Tero Ahola
|
r103 | #endif // QSCATTERSERIESPRIVATE_H | ||