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

source code of qtdatavis3d/src/datavisualization/input/q3dinputhandler_p.h