1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QTOUCH3DINPUTHANDLER_P_H
5#define QTOUCH3DINPUTHANDLER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the QtDataVisualization API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16
17#include "q3dinputhandler_p.h"
18#include "qtouch3dinputhandler.h"
19
20QT_FORWARD_DECLARE_CLASS(QTimer)
21
22QT_BEGIN_NAMESPACE
23
24class QAbstract3DInputHandler;
25
26class QTouch3DInputHandlerPrivate : public Q3DInputHandlerPrivate
27{
28 Q_OBJECT
29
30public:
31 QTouch3DInputHandlerPrivate(QTouch3DInputHandler *q);
32 ~QTouch3DInputHandlerPrivate();
33
34 void handlePinchZoom(float distance, const QPoint &pos);
35 void handleTapAndHold();
36 void handleSelection(const QPointF &position);
37 void handleRotation(const QPointF &position);
38
39private:
40 QTouch3DInputHandler *q_ptr;
41public:
42 QTimer *m_holdTimer;
43 QAbstract3DInputHandlerPrivate::InputState m_inputState;
44 QPointF m_startHoldPos;
45 QPointF m_touchHoldPos;
46};
47
48QT_END_NAMESPACE
49
50#endif
51

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