##// END OF EJS Templates
Labels for barchart to axis
Labels for barchart to axis

File last commit:

r476:b6fb05e4e56f
r487:03622a1338c4
Show More
xychartitem_p.h
58 lines | 1.4 KiB | text/x-c | CLexer
Michal Klocek
Add missing files from previous commit
r466 #ifndef XYCHARTITEM_H
#define XYCHARTITEM_H
#include "qchartglobal.h"
#include "chartitem_p.h"
#include <QPen>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartPresenter;
class QXYSeries;
class XYChartItem : public QObject , public ChartItem
{
Q_OBJECT
public:
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 explicit XYChartItem(QXYSeries* series,QGraphicsItem *parent = 0);
Michal Klocek
Add missing files from previous commit
r466 ~ XYChartItem(){};
QVector<QPointF> points() const {return m_points;}
QRectF clipRect() const { return m_clipRect;}
public slots:
void handlePointAdded(int index);
void handlePointRemoved(int index);
void handlePointReplaced(int index);
void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY);
void handleGeometryChanged(const QRectF& size);
protected:
virtual void updatePoints(QVector<QPointF>& points);
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 virtual void updatePoint(QVector<QPointF>& points);
Michal Klocek
Add missing files from previous commit
r466 virtual void setGeometry(QVector<QPointF>& points);
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476
Michal Klocek
Add missing files from previous commit
r466 QPointF calculateGeometryPoint(const QPointF& point) const;
QPointF calculateGeometryPoint(int index) const;
QVector<QPointF> calculateGeometryPoints() const;
private:
inline bool isEmpty();
private:
qreal m_minX;
qreal m_maxX;
qreal m_minY;
qreal m_maxY;
QXYSeries* m_series;
QSizeF m_size;
QRectF m_clipRect;
QVector<QPointF> m_points;
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 template<class,class> friend class XYChartAnimator;
Michal Klocek
Add missing files from previous commit
r466 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif