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 Q3DINPUTHANDLER_P_H |
15 | #define Q3DINPUTHANDLER_P_H |
16 | |
17 | #include "qabstract3dinputhandler_p.h" |
18 | #include "q3dinputhandler.h" |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class Abstract3DController; |
23 | |
24 | class Q3DInputHandlerPrivate : public QAbstract3DInputHandlerPrivate |
25 | { |
26 | Q_DECLARE_PUBLIC(Q3DInputHandler) |
27 | |
28 | public: |
29 | Q3DInputHandlerPrivate(Q3DInputHandler *q); |
30 | ~Q3DInputHandlerPrivate(); |
31 | |
32 | public Q_SLOTS: |
33 | void handleSceneChange(Q3DScene *scene); |
34 | void handleQueriedGraphPositionChange(); |
35 | |
36 | protected: |
37 | bool m_rotationEnabled; |
38 | bool m_zoomEnabled; |
39 | bool m_selectionEnabled; |
40 | bool m_zoomAtTargetEnabled; |
41 | bool m_zoomAtTargetPending; |
42 | |
43 | Abstract3DController *m_controller; // Not owned |
44 | |
45 | float m_requestedZoomLevel; |
46 | float m_driftMultiplier; |
47 | }; |
48 | |
49 | QT_END_NAMESPACE |
50 | |
51 | #endif |
52 |