| 1 | // Copyright (C) 2023 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | // |
| 5 | // W A R N I N G |
| 6 | // ------------- |
| 7 | // |
| 8 | // This file is not part of the QtGraphs API. It exists purely as an |
| 9 | // implementation detail. This header file may change from version to |
| 10 | // version without notice, or even be removed. |
| 11 | // |
| 12 | // We mean it. |
| 13 | |
| 14 | #ifndef QLOGVALUE3DAXISFORMATTER_P_H |
| 15 | #define QLOGVALUE3DAXISFORMATTER_P_H |
| 16 | |
| 17 | #include "qlogvalue3daxisformatter.h" |
| 18 | #include "qvalue3daxisformatter_p.h" |
| 19 | |
| 20 | QT_BEGIN_NAMESPACE |
| 21 | |
| 22 | class QLogValue3DAxisFormatterPrivate : public QValue3DAxisFormatterPrivate |
| 23 | { |
| 24 | Q_DECLARE_PUBLIC(QLogValue3DAxisFormatter) |
| 25 | |
| 26 | public: |
| 27 | QLogValue3DAxisFormatterPrivate(); |
| 28 | ~QLogValue3DAxisFormatterPrivate() override; |
| 29 | |
| 30 | void recalculate(); |
| 31 | void populateCopy(QValue3DAxisFormatter ©) const; |
| 32 | |
| 33 | float positionAt(float value) const; |
| 34 | float valueAt(float position) const; |
| 35 | |
| 36 | protected: |
| 37 | qreal m_base; |
| 38 | qreal m_logMin; |
| 39 | qreal m_logMax; |
| 40 | qreal m_logRangeNormalizer; |
| 41 | bool m_autoSubGrid; |
| 42 | bool m_edgeLabelsVisible; |
| 43 | |
| 44 | private: |
| 45 | bool m_evenMinSegment; |
| 46 | bool m_evenMaxSegment; |
| 47 | }; |
| 48 | |
| 49 | QT_END_NAMESPACE |
| 50 | |
| 51 | #endif |
| 52 |
