##// END OF EJS Templates
QML bar series categories
QML bar series categories

File last commit:

r677:2b967c4f6e8e
r726:5bffcd7b4ba5
Show More
xychartitem_p.h
65 lines | 1.5 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;
Michal Klocek
Refactors chartitem...
r677 class XYChartItem : public ChartItem
Michal Klocek
Add missing files from previous commit
r466 {
Q_OBJECT
public:
Michal Klocek
Refactors chartitem...
r677 explicit XYChartItem(QXYSeries* series, ChartPresenter *presenter);
Michal Klocek
Add missing files from previous commit
r466 ~ XYChartItem(){};
QVector<QPointF> points() const {return m_points;}
QRectF clipRect() const { return m_clipRect;}
Michal Klocek
Refactors chartitem...
r677
Michal Klocek
Add missing files from previous commit
r466 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);
Michal Klocek
Refactors click signal to line,area,spline,scatter charts
r571 signals:
void clicked(const QPointF& point);
Michal Klocek
Add missing files from previous commit
r466 protected:
Michal Klocek
Refactors chartitem...
r677
Michal Klocek
Unify naming setGeometry -> setLayout
r557 virtual void setLayout(QVector<QPointF>& points);
Michal Klocek
Improves spline interpolation...
r622 virtual void updateLayout(QVector<QPointF>& oldPoints,QVector<QPointF>& newPoints,int index = 0);
Michal Klocek
Refactors chartitem...
r677
Michal Klocek
Add missing files from previous commit
r466 QPointF calculateGeometryPoint(const QPointF& point) const;
QPointF calculateGeometryPoint(int index) const;
Michal Klocek
Adds clicked(Point) to lineSeries, changes visible points handling
r544 QPointF calculateDomainPoint(const QPointF& point) const;
Michal Klocek
Add missing files from previous commit
r466 QVector<QPointF> calculateGeometryPoints() const;
Michal Klocek
Refactors click signal to line,area,spline,scatter charts
r571 void mousePressEvent( QGraphicsSceneMouseEvent * event );
Michal Klocek
Add missing files from previous commit
r466
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
Animation refactor...
r530 friend class XYAnimation;
Michal Klocek
Refactors click signal to line,area,spline,scatter charts
r571 friend class AreaChartItem;
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476
Michal Klocek
Add missing files from previous commit
r466 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif