| 1 | // Copyright (C) 2016 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 QtDataVisualization 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 "datavisualizationglobal_p.h" |
| 18 | #include "qlogvalue3daxisformatter.h" |
| 19 | #include "qvalue3daxisformatter_p.h" |
| 20 | |
| 21 | QT_BEGIN_NAMESPACE |
| 22 | |
| 23 | class QLogValue3DAxisFormatterPrivate : public QValue3DAxisFormatterPrivate |
| 24 | { |
| 25 | Q_OBJECT |
| 26 | |
| 27 | public: |
| 28 | QLogValue3DAxisFormatterPrivate(QLogValue3DAxisFormatter *q); |
| 29 | virtual ~QLogValue3DAxisFormatterPrivate(); |
| 30 | |
| 31 | void recalculate(); |
| 32 | void populateCopy(QValue3DAxisFormatter ©) const; |
| 33 | |
| 34 | float positionAt(float value) const; |
| 35 | float valueAt(float position) const; |
| 36 | |
| 37 | protected: |
| 38 | QLogValue3DAxisFormatter *qptr(); |
| 39 | |
| 40 | qreal m_base; |
| 41 | qreal m_logMin; |
| 42 | qreal m_logMax; |
| 43 | qreal m_logRangeNormalizer; |
| 44 | bool m_autoSubGrid; |
| 45 | bool m_showEdgeLabels; |
| 46 | |
| 47 | private: |
| 48 | bool m_evenMinSegment; |
| 49 | bool m_evenMaxSegment; |
| 50 | |
| 51 | friend class QLogValue3DAxisFormatter; |
| 52 | }; |
| 53 | |
| 54 | QT_END_NAMESPACE |
| 55 | |
| 56 | #endif |
| 57 |
