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_QPICKLINEEVENT_H
5#define QT3DRENDER_QPICKLINEEVENT_H
6
7#include <Qt3DRender/qpickevent.h>
8#include <QtCore/qsharedpointer.h>
9
10QT_BEGIN_NAMESPACE
11
12namespace Qt3DRender {
13class QPickLineEventPrivate;
14
15class Q_3DRENDERSHARED_EXPORT QPickLineEvent : public QPickEvent
16{
17 Q_OBJECT
18 Q_PROPERTY(uint edgeIndex READ edgeIndex CONSTANT)
19 Q_PROPERTY(uint vertex1Index READ vertex1Index CONSTANT)
20 Q_PROPERTY(uint vertex2Index READ vertex2Index CONSTANT)
21public:
22 QPickLineEvent();
23 QPickLineEvent(const QPointF &position, const QVector3D& worldIntersection, const QVector3D& localIntersection, float distance,
24 uint edgeIndex, uint vertex1Index, uint vertex2Index, Buttons button, int buttons, int modifiers);
25 ~QPickLineEvent();
26
27public:
28 uint edgeIndex() const;
29 uint vertex1Index() const;
30 uint vertex2Index() const;
31
32private:
33 Q_DECLARE_PRIVATE(QPickLineEvent)
34};
35
36typedef QSharedPointer<QPickLineEvent> QPickLineEventPtr;
37
38} // Qt3DRender
39
40QT_END_NAMESPACE
41
42#endif // QT3DRENDER_QPICKLINEEVENT_H
43

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