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 QABSTRACT3DINPUTHANDLER_P_H |
15 | #define QABSTRACT3DINPUTHANDLER_P_H |
16 | |
17 | #include "datavisualizationglobal_p.h" |
18 | #include "qabstract3dinputhandler.h" |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class QAbstract3DInputHandler; |
23 | class Q3DScene; |
24 | |
25 | class QAbstract3DInputHandlerPrivate |
26 | { |
27 | public: |
28 | QAbstract3DInputHandlerPrivate(QAbstract3DInputHandler *q); |
29 | ~QAbstract3DInputHandlerPrivate(); |
30 | |
31 | public: |
32 | enum InputState { |
33 | InputStateNone = 0, |
34 | InputStateSelecting, |
35 | InputStateRotating, |
36 | InputStatePinching |
37 | }; |
38 | |
39 | QAbstract3DInputHandler *q_ptr; |
40 | int m_prevDistance; |
41 | QPoint m_previousInputPos; |
42 | |
43 | private: |
44 | QAbstract3DInputHandler::InputView m_inputView; |
45 | QPoint m_inputPosition; |
46 | |
47 | Q3DScene *m_scene; |
48 | bool m_isDefaultHandler; |
49 | |
50 | friend class QAbstract3DInputHandler; |
51 | friend class Abstract3DController; |
52 | }; |
53 | |
54 | QT_END_NAMESPACE |
55 | |
56 | #endif |
57 |