1 | // Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB). |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QT3DRENDER_QPICKPOINTEVENT_H |
5 | #define QT3DRENDER_QPICKPOINTEVENT_H |
6 | |
7 | #include <Qt3DRender/qpickevent.h> |
8 | #include <QtCore/qsharedpointer.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DRender { |
13 | class QPickPointEventPrivate; |
14 | |
15 | class Q_3DRENDERSHARED_EXPORT QPickPointEvent : public QPickEvent |
16 | { |
17 | Q_OBJECT |
18 | Q_PROPERTY(uint pointIndex READ pointIndex CONSTANT) |
19 | public: |
20 | QPickPointEvent(); |
21 | QPickPointEvent(const QPointF &position, const QVector3D& worldIntersection, const QVector3D& localIntersection, float distance, |
22 | uint pointIndex, Buttons button, int buttons, int modifiers); |
23 | ~QPickPointEvent(); |
24 | |
25 | public: |
26 | uint pointIndex() const; |
27 | |
28 | private: |
29 | Q_DECLARE_PRIVATE(QPickPointEvent) |
30 | }; |
31 | |
32 | typedef QSharedPointer<QPickPointEvent> QPickPointEventPtr; |
33 | |
34 | } // Qt3DRender |
35 | |
36 | QT_END_NAMESPACE |
37 | |
38 | #endif // QT3DRENDER_QPICKPOINTEVENT_H |
39 |