##// END OF EJS Templates
Bugfix missing min max intialization when axis added to domain
Bugfix missing min max intialization when axis added to domain

File last commit:

r439:86afa1b4ff5f
r442:6c610328d6c5
Show More
linechartitem_p.h
63 lines | 1.6 KiB | text/x-c | CLexer
Michal Klocek
Fix naming convention for lineseries...
r144 #ifndef LINECHARTITEM_H
#define LINECHARTITEM_H
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Tero Ahola
Renamed to QtCommercialChart
r30 #include "qchartglobal.h"
Tero Ahola
Refactoring continued: restored ChartItem class
r104 #include "chartitem_p.h"
Michal Klocek
Refactored for MVP...
r139 #include <QPen>
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Refactors qchart , adds line animation...
r131 class ChartPresenter;
Michal Klocek
Rename QLineChartSeries to QLineSeries
r349 class QLineSeries;
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Fix naming convention for lineseries...
r144 class LineChartItem : public QObject , public ChartItem
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
Michal Klocek
Refactors qchart , adds line animation...
r131 Q_OBJECT
Michal Klocek
Refactor current draft to fit int current design specs...
r21 public:
Michal Klocek
Refactor domain model...
r439 LineChartItem(QLineSeries* series,QGraphicsItem *parent = 0);
Michal Klocek
Fix naming convention for lineseries...
r144 ~ LineChartItem(){};
Michal Klocek
Refactor current draft to fit int current design specs...
r21
//from QGraphicsItem
Michal Klocek
Add zoom support...
r67 QRectF boundingRect() const;
Tero Ahola
One more alternative for changing themes
r108 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
Michal Klocek
Refactors qchart , adds line animation...
r131 QPainterPath shape() const;
Michal Klocek
Refactored for MVP...
r139
void setPen(const QPen& pen);
Michal Klocek
Rewrite animation hadnling in line series...
r389 void setPointsVisible(bool visible);
public slots:
void handlePointAdded(int index);
void handlePointRemoved(int index);
void handlePointReplaced(int index);
Michal Klocek
Adds updated handling for line series
r392 void handleUpdated();
Michal Klocek
Refactor domain model...
r439 void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY);
Michal Klocek
Rewrite animation hadnling in line series...
r389 void handleGeometryChanged(const QRectF& size);
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Fix commit 7b90ec69ce9a3353820d295c222ef3f79537484d
r391 public:
virtual void updateItem(QVector<QPointF>& oldPoints,QVector<QPointF>& newPoints);
virtual void updateItem(QVector<QPointF>& oldPoints,int index,QPointF& newPoint);
Marek Rosa
Spline with problems
r419 virtual void applyGeometry(QVector<QPointF>& points);
Michal Klocek
Fix commit 7b90ec69ce9a3353820d295c222ef3f79537484d
r391 void createPoints(int count);
void clearPoints(int count);
QPointF calculateGeometryPoint(int index) const;
QVector<QPointF> calculateGeometryPoints() const;
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Marek Rosa
Spline with problems
r419 protected:
Michal Klocek
Refactor domain model...
r439 qreal m_minX;
qreal m_maxX;
qreal m_minY;
qreal m_maxY;
Michal Klocek
Refactors qchart , adds line animation...
r131 QPainterPath m_path;
QRectF m_rect;
Marek Rosa
Spline with problems
r419 QLineSeries* m_series;
Michal Klocek
Refactor domain model...
r439 QSizeF m_size;
Michal Klocek
Adds cliping and proper zoom handling for line chart
r150 QRectF m_clipRect;
Michal Klocek
Fix commit 7b90ec69ce9a3353820d295c222ef3f79537484d
r391 QGraphicsItemGroup m_items;
Michal Klocek
Rewrite animation hadnling in line series...
r389 QVector<QPointF> m_points;
Michal Klocek
Refactored for MVP...
r139 QPen m_pen;
Michal Klocek
Refactors qchart , adds line animation...
r131
Michal Klocek
Refactor current draft to fit int current design specs...
r21 };
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE
Michal Klocek
Refactor current draft to fit int current design specs...
r21
#endif