| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | // W A R N I N G |
| 5 | // ------------- |
| 6 | // |
| 7 | // This file is not part of the Qt Chart API. It exists purely as an |
| 8 | // implementation detail. This header file may change from version to |
| 9 | // version without notice, or even be removed. |
| 10 | // |
| 11 | // We mean it. |
| 12 | |
| 13 | #ifndef CANDLESTICKDATA_P_H |
| 14 | #define CANDLESTICKDATA_P_H |
| 15 | |
| 16 | #include <QtCharts/QCandlestickSeries> |
| 17 | #include <QtCharts/private/qchartglobal_p.h> |
| 18 | |
| 19 | QT_BEGIN_NAMESPACE |
| 20 | |
| 21 | class Q_CHARTS_EXPORT CandlestickData |
| 22 | { |
| 23 | public: |
| 24 | CandlestickData() : |
| 25 | m_timestamp(0.0), |
| 26 | m_open(0.0), |
| 27 | m_high(0.0), |
| 28 | m_low(0.0), |
| 29 | m_close(0.0), |
| 30 | m_index(0), |
| 31 | m_maxX(0.0), |
| 32 | m_minX(0.0), |
| 33 | m_maxY(0.0), |
| 34 | m_minY(0.0), |
| 35 | m_series(nullptr), |
| 36 | m_seriesIndex(0), |
| 37 | m_seriesCount(0) |
| 38 | { |
| 39 | } |
| 40 | |
| 41 | // Candlestick related statistics |
| 42 | qreal m_timestamp; |
| 43 | qreal m_open; |
| 44 | qreal m_high; |
| 45 | qreal m_low; |
| 46 | qreal m_close; |
| 47 | int m_index; |
| 48 | |
| 49 | // Domain boundaries |
| 50 | qreal m_maxX; |
| 51 | qreal m_minX; |
| 52 | qreal m_maxY; |
| 53 | qreal m_minY; |
| 54 | |
| 55 | // Series related data |
| 56 | QCandlestickSeries *m_series; |
| 57 | int m_seriesIndex; |
| 58 | int m_seriesCount; |
| 59 | }; |
| 60 | |
| 61 | QT_END_NAMESPACE |
| 62 | |
| 63 | #endif // CANDLESTICKDATA_P_H |
| 64 | |