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
qopenxrorigin_p.h
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
4#ifndef QOPENXRORIGIN_H
5#define QOPENXRORIGIN_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
19#include <QtQuick3DXr/qtquick3dxrglobal.h>
20
21#include <QtQuick3D/private/qquick3dnode_p.h>
22#include <QtQuick3DXr/private/qopenxrcamera_p.h>
23#include <QtQml/QQmlEngine>
24#include <QtQml/qqml.h>
25
27
28class Q_QUICK3DXR_EXPORT QOpenXROrigin : public QQuick3DNode
29{
31 Q_PROPERTY(QOpenXRCamera *camera READ camera WRITE setCamera NOTIFY cameraChanged)
32 QML_NAMED_ELEMENT(XrOrigin)
33
34public:
36
37 QOpenXRCamera *camera() const;
38 void setCamera(QOpenXRCamera *newCamera);
39
42
43private:
44 QOpenXREyeCamera *eyeCamera(int index) const;
45 QOpenXRCamera *m_camera = nullptr;
46 QOpenXRCamera *m_builtInCamera = nullptr;
47 QVarLengthArray<QOpenXREyeCamera *, 2> m_eyeCameras;
48
49 friend class QOpenXRManager;
51};
52
54
55#endif // QOPENXRORIGIN_H
void cameraChanged()
QCamera * camera
Definition camera.cpp:19
Combined button and popup list for selecting options.
GLuint index
[2]
#define QML_NAMED_ELEMENT(NAME)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS