##// END OF EJS Templates
Fixing example documentation
Fixing example documentation

File last commit:

r476:b6fb05e4e56f
r500:4d73e3f9e3b6
Show More
splinechartitem_p.h
47 lines | 1.1 KiB | text/x-c | CLexer
Marek Rosa
Renamed SplinePresenter to SplineChartItem
r460 #ifndef SPLINECHARTITEM_P_H
#define SPLINECHARTITEM_P_H
Marek Rosa
Spline initial
r295
Marek Rosa
Spline working somewhat
r401 #include "qsplineseries.h"
Michal Klocek
Refactor line spline to common xyline...
r465 #include "xychartitem_p.h"
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 #include "xychartanimationitem_p.h"
#include <QGraphicsItem>
Marek Rosa
Spline initial
r295
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactor line spline to common xyline...
r465 class SplineChartItem : public XYChartItem
Marek Rosa
Spline initial
r295 {
Q_OBJECT
public:
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 SplineChartItem(QSplineSeries* series, QGraphicsItem *parent = 0);
Marek Rosa
Spline initial
r295
Michal Klocek
Refactor line spline to common xyline...
r465 //from QGraphicsItem
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QPainterPath shape() const;
Marek Rosa
Experimenting
r417
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 void setLinePen(const QPen& pen);
Michal Klocek
Refactor line spline to common xyline...
r465 void setPointsVisible(bool visible);
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 public slots:
void handleUpdated();
Michal Klocek
Refactor line spline to common xyline...
r465 protected:
Michal Klocek
Refactors linechart update calls
r464 void setGeometry(QVector<QPointF>& points);
Marek Rosa
Spline with problems
r419
Michal Klocek
Refactor line spline to common xyline...
r465 private:
Marek Rosa
Spline with problems
r419 QPointF calculateGeometryControlPoint(int index) const;
Michal Klocek
Refactor line spline to common xyline...
r465 private:
QSplineSeries* m_series;
QPainterPath m_path;
QRectF m_rect;
QPen m_pen;
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476
template<class,class> friend class XYChartAnimator;
Marek Rosa
Spline initial
r295 };
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 typedef XYChartAnimationItem<SplineChartItem,QSplineSeries> SplineChartAnimationItem;
Marek Rosa
Spline initial
r295 QTCOMMERCIALCHART_END_NAMESPACE
Marek Rosa
Renamed SplinePresenter to SplineChartItem
r460 #endif // SPLINECHARTITEM_P_H