##// END OF EJS Templates
Theme example sets and slices renamed (shown if legend enabled)
Theme example sets and slices renamed (shown if legend enabled)

File last commit:

r794:4c76de65bbac
r945:d3dafb2d19ed
Show More
splinechartitem_p.h
64 lines | 1.8 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
** Copyright (C) 2012 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
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
Improves spline interpolation...
r622
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:
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 SplineChartItem(QSplineSeries *series, ChartPresenter *presenter);
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
sauimone
Q_SIGNALS and Q_SLOTS
r775 public Q_SLOTS:
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 void handleUpdated();
Michal Klocek
Refactor line spline to common xyline...
r465 protected:
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void setLayout(QVector<QPointF> &points,QVector<QPointF> &controlPoints);
void updateLayout(QVector<QPointF> &oldPoints,QVector<QPointF> &newPoints,int index);
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;
Michal Klocek
Adds visible points handling to spline
r580 QPen m_linePen;
QPen m_pointPen;
bool m_pointsVisible;
Michal Klocek
Improves spline interpolation...
r622 QVector<QPointF> m_controlPoints;
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476
Michal Klocek
Improves spline interpolation...
r622 friend class SplineAnimation;
Marek Rosa
Spline initial
r295 };
QTCOMMERCIALCHART_END_NAMESPACE
Marek Rosa
Renamed SplinePresenter to SplineChartItem
r460 #endif // SPLINECHARTITEM_P_H