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
10QT_BEGIN_NAMESPACE
11
12namespace Qt3DRender {
13class QPickPointEventPrivate;
14
15class Q_3DRENDERSHARED_EXPORT QPickPointEvent : public QPickEvent
16{
17 Q_OBJECT
18 Q_PROPERTY(uint pointIndex READ pointIndex CONSTANT)
19public:
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
25public:
26 uint pointIndex() const;
27
28private:
29 Q_DECLARE_PRIVATE(QPickPointEvent)
30};
31
32typedef QSharedPointer<QPickPointEvent> QPickPointEventPtr;
33
34} // Qt3DRender
35
36QT_END_NAMESPACE
37
38#endif // QT3DRENDER_QPICKPOINTEVENT_H
39

source code of qt3d/src/render/picking/qpickpointevent.h