##// END OF EJS Templates
Fix category axis shades and labels...
Fix category axis shades and labels The shade is cropped to the grid rectangle when range is set so that category spans over grid. Also the label of a category outside range is hidden. Change-Id: I09bba2951bc230053bf62cb382021a438fdc2b95 Task-number: QTRD-3443 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2740:377e4516d036
r2760:a803e4e9381b
Show More
splinechartitem_p.h
97 lines | 2.9 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
Titta Heikkala
Update copyright year...
r2688 ** Copyright (C) 2014 Digia Plc
Jani Honkonen
Add license headers
r794 ** All rights reserved.
Titta Heikkala
Updated license headers...
r2740 ** For any questions to Digia, please use contact form at http://qt.io
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2740 ** This file is part of the Qt Charts module.
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2740 ** Licensees holding valid commercial license for Qt may use this file in
** accordance with the Qt License Agreement provided with the Software
** or, alternatively, in accordance with the terms contained in a written
** agreement between you and Digia.
Jani Honkonen
Add license headers
r794 **
** If you have questions regarding the use of this file, please use
Titta Heikkala
Updated license headers...
r2740 ** contact form at http://qt.io
Jani Honkonen
Add license headers
r794 **
****************************************************************************/
unknown
Added missing warning about private implementation
r1366 // W A R N I N G
// -------------
//
Miikka Heikkinen
Qt Commercial -> Qt Enterprise...
r2574 // This file is not part of the Qt Enterprise Chart API. It exists purely as an
unknown
Added missing warning about private implementation
r1366 // implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
Marek Rosa
Renamed SplinePresenter to SplineChartItem
r460 #ifndef SPLINECHARTITEM_P_H
#define SPLINECHARTITEM_P_H
Marek Rosa
Spline initial
r295
Titta Heikkala
Fix include syntax...
r2714 #include <QtCharts/QSplineSeries>
#include <private/xychart_p.h>
Michal Klocek
Improves spline interpolation...
r622
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
Marek Rosa
Spline initial
r295
Michal Klocek
Refactor animator...
r1735 class SplineAnimation;
Michal Klocek
Refactors internals...
r2273 class SplineChartItem : public XYChart
Marek Rosa
Spline initial
r295 {
Q_OBJECT
Michal Klocek
Refactor xychartitem -> xychart
r1218 Q_INTERFACES(QGraphicsItem)
Marek Rosa
Spline initial
r295 public:
Miikka Heikkinen
Add Polar chart support...
r2483 SplineChartItem(QSplineSeries *series, QGraphicsItem *item = 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
Refactors animation handling for xyseries
r1217 void setControlGeometryPoints(QVector<QPointF>& points);
QVector<QPointF> controlGeometryPoints() const;
Jani Honkonen
more coding style fixes for src-folder...
r2104 void setAnimation(SplineAnimation *animation);
ChartAnimation *animation() const;
Michal Klocek
Refactors animation handling for xyseries
r1217
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:
Michal Klocek
Refactors animation handling for xyseries
r1217 void updateGeometry();
Marek Rosa
QSplineSeries calculateControlPoints moved to splinechartitem. This way we don't need to deal with controlPoints on logaritmic scale
r2372 QVector<QPointF> calculateControlPoints(const QVector<QPointF> &points);
QVector<qreal> firstControlPoints(const QVector<qreal>& vector);
Jani Honkonen
astyle and manual coding style fixes for src-folder
r2097 void updateChart(QVector<QPointF> &oldPoints, QVector<QPointF> &newPoints, int index);
Michal Klocek
Refactor xychartitem -> xychart
r1218 void mousePressEvent(QGraphicsSceneMouseEvent *event);
Marek Rosa
Added hover support to splinechart and updated callout example
r2256 void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
Titta Heikkala
Add pressed, released and doubleClicked signals...
r2739 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
Marek Rosa
Spline with problems
r419
Michal Klocek
Refactor line spline to common xyline...
r465 private:
Marek Rosa
tablemodelchart moved to test folder
r961 QSplineSeries *m_series;
Michal Klocek
Refactor line spline to common xyline...
r465 QPainterPath m_path;
Miikka Heikkinen
Add Polar chart support...
r2483 QPainterPath m_pathPolarRight;
QPainterPath m_pathPolarLeft;
QPainterPath m_fullPath;
Michal Klocek
Refactor line spline to common xyline...
r465 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;
Miikka Heikkinen
Add Polar chart support...
r2483 QVector<QPointF> m_visiblePoints;
Jani Honkonen
more coding style fixes for src-folder...
r2104 SplineAnimation *m_animation;
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476
Titta Heikkala
Added possibility to show series value...
r2689 bool m_pointLabelsVisible;
QString m_pointLabelsFormat;
QFont m_pointLabelsFont;
QColor m_pointLabelsColor;
Titta Heikkala
Add pressed, released and doubleClicked signals...
r2739 QPointF m_lastMousePos;
bool m_mousePressed;
Michal Klocek
Improves spline interpolation...
r622 friend class SplineAnimation;
Marek Rosa
Spline initial
r295 };
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE
Marek Rosa
Spline initial
r295
Marek Rosa
Renamed SplinePresenter to SplineChartItem
r460 #endif // SPLINECHARTITEM_P_H