xylinechartitem_p.h
44 lines
| 976 B
| text/x-c
|
CLexer
Michal Klocek
|
r21 | #ifndef XYLINECHARTITEM_H | ||
#define XYLINECHARTITEM_H | ||||
Tero Ahola
|
r30 | #include "qchartglobal.h" | ||
Tero Ahola
|
r104 | #include "chartitem_p.h" | ||
Tero Ahola
|
r103 | #include "charttheme_p.h" | ||
#include <QGraphicsItem> | ||||
Michal Klocek
|
r21 | |||
Tero Ahola
|
r30 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||
Michal Klocek
|
r21 | |||
class QXYChartSeries; | ||||
Tero Ahola
|
r104 | class XYLineChartItem : public ChartItem | ||
Michal Klocek
|
r21 | { | ||
public: | ||||
XYLineChartItem(QXYChartSeries* m_series,QGraphicsItem *parent = 0); | ||||
Michal Klocek
|
r67 | ~ XYLineChartItem(){}; | ||
Michal Klocek
|
r21 | |||
//from QGraphicsItem | ||||
Michal Klocek
|
r67 | QRectF boundingRect() const; | ||
Michal Klocek
|
r85 | void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget){}; | ||
// virtual QPainterPath shape() const; | ||||
Tero Ahola
|
r103 | |||
Tero Ahola
|
r104 | public: // from ChartObjectInterface | ||
void setSize(const QSize &size); | ||||
Tero Ahola
|
r103 | void setTheme(ChartTheme *theme); | ||
Michal Klocek
|
r67 | void setPlotDomain(const PlotDomain& data); | ||
Michal Klocek
|
r21 | |||
Michal Klocek
|
r67 | private: | ||
void updateGeometry(); | ||||
Michal Klocek
|
r21 | |||
private: | ||||
Michal Klocek
|
r67 | QRect m_rect; | ||
Michal Klocek
|
r21 | QPolygonF m_polyline; | ||
QXYChartSeries* m_series; | ||||
Michal Klocek
|
r67 | PlotDomain m_plotDomain; | ||
Michal Klocek
|
r85 | QGraphicsPathItem *m_pathItem; | ||
Tero Ahola
|
r103 | SeriesTheme m_theme; | ||
Michal Klocek
|
r21 | }; | ||
Tero Ahola
|
r30 | QTCOMMERCIALCHART_END_NAMESPACE | ||
Michal Klocek
|
r21 | |||
#endif | ||||