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
qopenxrhandinput.cpp
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
5
7
9 : QObject(parent)
10{
11
12}
13
15{
16 return m_isActive;
17}
18
20{
21 return m_poseSpace;
22}
23
25{
26 if (m_isActive == isActive)
27 return;
28
29 m_isActive = isActive;
31}
32
34{
35 if (m_posePosition == position)
36 return;
37
38 m_posePosition = position;
40}
41
43{
44 if (m_poseRotation == rotation)
45 return;
46
47 m_poseRotation = rotation;
49}
50
52{
53 if (poseSpace == m_poseSpace)
54 return;
55
56 m_poseSpace = poseSpace;
58}
59
61{
62 return m_posePosition;
63}
64
66{
67 return m_poseRotation;
68}
69
bool isActive
\inmodule QtCore
Definition qobject.h:103
HandPoseSpace poseSpace
void isActiveChanged()
void setPosePosition(const QVector3D &position)
void poseRotationChanged()
void poseSpaceChanged()
void setPoseRotation(const QQuaternion &rotation)
QOpenXRHandInput(QObject *parent=nullptr)
void setPoseSpace(HandPoseSpace poseSpace)
void setIsActive(bool isActive)
void posePositionChanged()
The QQuaternion class represents a quaternion consisting of a vector and scalar.
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
Combined button and popup list for selecting options.
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define emit