| 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 | |
| 20 | QT_FORWARD_DECLARE_CLASS(QTimer) |
| 21 | |
| 22 | QT_BEGIN_NAMESPACE |
| 23 | |
| 24 | class QAbstract3DInputHandler; |
| 25 | |
| 26 | class QTouch3DInputHandlerPrivate : public Q3DInputHandlerPrivate |
| 27 | { |
| 28 | Q_OBJECT |
| 29 | |
| 30 | public: |
| 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 | |
| 39 | private: |
| 40 | QTouch3DInputHandler *q_ptr; |
| 41 | public: |
| 42 | QTimer *m_holdTimer; |
| 43 | QAbstract3DInputHandlerPrivate::InputState m_inputState; |
| 44 | QPointF m_startHoldPos; |
| 45 | QPointF m_touchHoldPos; |
| 46 | }; |
| 47 | |
| 48 | QT_END_NAMESPACE |
| 49 | |
| 50 | #endif |
| 51 |
