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 QVALUE3DAXIS_P_H |
15 | #define QVALUE3DAXIS_P_H |
16 | |
17 | #include "qvalue3daxis.h" |
18 | #include "qabstract3daxis_p.h" |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class QValue3DAxisPrivate : public QAbstract3DAxisPrivate |
23 | { |
24 | Q_OBJECT |
25 | |
26 | public: |
27 | QValue3DAxisPrivate(QValue3DAxis *q); |
28 | virtual ~QValue3DAxisPrivate(); |
29 | |
30 | void setRange(float min, float max, bool suppressWarnings = false) override; |
31 | void setMin(float min) override; |
32 | void setMax (float max) override; |
33 | |
34 | void emitLabelsChanged(); |
35 | |
36 | Q_SIGNALS: |
37 | void formatterDirty(); |
38 | |
39 | protected: |
40 | void updateLabels() override; |
41 | |
42 | bool allowZero() override; |
43 | bool allowNegatives() override; |
44 | bool allowMinMaxSame() override; |
45 | |
46 | int m_segmentCount; |
47 | int m_subSegmentCount; |
48 | QString m_labelFormat; |
49 | bool m_labelsDirty; |
50 | QValue3DAxisFormatter *m_formatter; |
51 | bool m_reversed; |
52 | |
53 | private: |
54 | QValue3DAxis *qptr(); |
55 | |
56 | friend class QValue3DAxis; |
57 | friend class Abstract3DController; |
58 | }; |
59 | |
60 | QT_END_NAMESPACE |
61 | |
62 | #endif |
63 |