Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquick3dxrhandmodel_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QQUICK3DXRHANDTRACKERINPUT_H
5#define QQUICK3DXRHANDTRACKERINPUT_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt 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
18#include <QObject>
19#include <QVector2D>
20#include <QVector3D>
21#include <QQuaternion>
22#include <QtQml/qqml.h>
23#include <private/qquick3dmodel_p.h>
24
25#include <QQuick3DGeometry>
26#include <QtQuick3DXr/private/qtquick3dxrglobal_p.h>
27
29
31
33{
35
36 Q_PROPERTY(Hand hand READ hand WRITE setHand NOTIFY handChanged FINAL)
37 QML_NAMED_ELEMENT(XrHandModel)
39
40public:
47
49
50 void componentComplete() override;
51
52 Hand hand() const;
53 void setHand(Hand newHand);
54
58
59private Q_SLOTS:
60 void updatePose();
61
62private:
63 void setupModel();
64 QQuick3DXrHandInput *m_handTracker = nullptr;
65 bool m_initialized = false;
66 Hand m_hand;
67};
68
70
71#endif // QQUICK3DXRHANDTRACKERINPUT_H
QQuick3DObject * parent
\qmlproperty Object3D QtQuick3D::Object3D::parent This property holds the parent of the Object3D in a...
QQuick3DXrHandModel(QQuick3DNode *parent=nullptr)
\qmltype XrHandModel \inherits Model \inqmlmodule QtQuick3D.Xr
void setHand(Hand newHand)
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
Combined button and popup list for selecting options.
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_ENUM(x)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
unsigned char quint8
Definition qtypes.h:46