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
qopenxrcontroller_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 QOPENXRCONTROLLER_H
5
#define QOPENXRCONTROLLER_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 <QtQuick3DXr/qtquick3dxrglobal.h>
19
#include "
qquick3dxrhandinput_p.h
"
20
#include "
qopenxractionmapper_p.h
"
21
#include <QtQuick3D/private/qquick3dnode_p.h>
22
#include <QtQml/QQmlEngine>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QQuick3DXrInputManager
;
27
28
class
Q_QUICK3DXR_EXPORT
QOpenXRController
:
public
QQuick3DNode
29
{
30
Q_OBJECT
31
Q_PROPERTY
(
Controller
controller READ controller WRITE setController NOTIFY controllerChanged)
32
Q_PROPERTY
(
QOpenXRActionMapper
* actionMapper READ actionMapper WRITE setActionMapper NOTIFY actionMapperChanged FINAL)
33
Q_PROPERTY
(
QQuick3DXrHandInput
* handInput READ handInput NOTIFY handInputChanged)
34
QML_NAMED_ELEMENT
(XrController)
35
QML_ADDED_IN_VERSION
(6, 8)
36
public:
37
enum
Controller
{
38
ControllerNone = 0,
39
ControllerLeft = 1,
40
ControllerRight = 2,
41
};
42
Q_ENUM
(
Controller
)
43
44
QOpenXRController
();
45
46
QOpenXRController::Controller
controller()
const
;
47
void
setController(
QOpenXRController::Controller
newController);
48
49
QQuick3DXrHandInput
*handInput()
const
;
50
51
QOpenXRActionMapper
*actionMapper()
const
;
52
void
setActionMapper(
QOpenXRActionMapper
*newActionMapper);
53
54
Q_SIGNALS
:
55
void
controllerChanged
();
56
void
handInputChanged
();
57
void
actionMapperChanged
();
58
59
private
:
60
QPointer<QQuick3DXrInputManager> m_inputManager;
61
QOpenXRActionMapper
*m_actionMapper =
nullptr
;
62
Controller
m_controller = ControllerNone;
63
QMetaObject::Connection
m_posePositionConnection;
64
QMetaObject::Connection
m_poseRotationConnection;
65
QMetaObject::Connection
m_isActiveConnection;
66
QMetaObject::Connection
m_inputActionConnection;
67
QMetaObject::Connection
m_actionMapperConnection;
68
};
69
70
QT_END_NAMESPACE
71
72
#endif
// QOPENXRCONTROLLER_H
Controller
Definition
src_corelib_thread_qthread.cpp:47
Connection
\inmodule QtCore Represents a handle to a signal-slot (or signal-functor) connection.
QOpenXRActionMapper
Definition
qopenxractionmapper_p.h:30
QOpenXRController
Definition
qopenxrcontroller_p.h:29
QOpenXRController::controllerChanged
void controllerChanged()
QOpenXRController::actionMapperChanged
void actionMapperChanged()
QOpenXRController::handInputChanged
void handInputChanged()
QOpenXRController::Controller
Controller
Definition
qopenxrcontroller_p.h:37
QQuick3DNode
Definition
qquick3dnode_p.h:28
QQuick3DXrHandInput
Definition
qquick3dxrhandinput_p.h:27
QQuick3DXrInputManager
Definition
qquick3dxrinputmanager_p.h:32
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
qopenxractionmapper_p.h
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:60
QML_ADDED_IN_VERSION
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
Definition
qqmlintegration.h:100
qquick3dxrhandinput_p.h
Q_ENUM
#define Q_ENUM(x)
Definition
qtmetamacros.h:68
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
qtquick3d
src
xr
quick3dxr
qopenxrcontroller_p.h
Generated by
1.10.0