Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquick3dxritem_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 QQUICK3DXRITEM_P_H
5#define QQUICK3DXRITEM_P_H
6
7#include <QQuickItem>
8#include <QtQuick3D/private/qquick3dnode_p.h>
9
10#include <QtQuick/private/qquicktranslate_p.h>
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the Qt API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
23QT_BEGIN_NAMESPACE
24
25class QQuick3DXrItemPrivate;
26class QQuick3DXrView;
27
29{
30 Q_OBJECT
31 Q_DECLARE_PRIVATE(QQuick3DXrItem)
32
41
44public:
56
57 explicit QQuick3DXrItem(QQuick3DNode *parent = nullptr);
59
60 QQuickItem *contentItem() const;
61 void setContentItem(QQuickItem *newContentItem);
62
63 qreal pixelsPerUnit() const;
64 void setPixelsPerUnit(qreal newPixelsPerUnit);
65
66 bool manualPixelsPerUnit() const;
67 void setManualPixelsPerUnit(bool newManualPixelsPerUnit);
68
69 qreal width() const;
70 void setWidth(qreal newWidth);
71
72 qreal height() const;
73 void setHeight(qreal newHeight);
74
75 QColor color() const;
76 void setColor(const QColor &newColor);
77
78 bool automaticHeight() const;
79 void setAutomaticHeight(bool newAutomaticHeight);
80
81 bool automaticWidth() const;
82 void setAutomaticWidth(bool newAutomaticHeight);
83
85
86 bool handleVirtualTouch(QQuick3DXrView *view, const QVector3D &pos, TouchState *touchState, QVector3D *offset);
87
98};
99
100QT_END_NAMESPACE
101
102#endif // QQUICK3DXRITEM_P_H
QPointer< QQuick3DXrView > m_XrView
QQuickRectangle * m_containerItem
QMetaObject::Connection m_automaticHeightConnection
QMetaObject::Connection m_contentItemDestroyedConnection
QMetaObject::Connection m_automaticWidthConnection
bool manualPixelsPerUnit() const
\qmlproperty bool XrItem::manualPixelsPerUnit
void heightChanged()
void setAutomaticWidth(bool newAutomaticHeight)
void pixelsPerUnitChanged()
void widthChanged()
void setWidth(qreal newWidth)
qreal width() const
\qmlproperty real XrItem::width
void manualPixelsPerUnitChanged()
void automaticHeightChanged()
void automaticWidthChanged()
void setColor(const QColor &newColor)
void setManualPixelsPerUnit(bool newManualPixelsPerUnit)
void setPixelsPerUnit(qreal newPixelsPerUnit)
QColor color() const
\qmlproperty color XrItem::color
qreal height() const
\qmlproperty real XrItem::height
bool automaticHeight() const
\qmlproperty bool XrItem::automaticHeight
bool handleVirtualTouch(QQuick3DXrView *view, const QVector3D &pos, TouchState *touchState, QVector3D *offset)
bool automaticWidth() const
\qmlproperty bool XrItem::automaticWidth
QQuickItem * contentItem() const
\qmlproperty Item XrItem::contentItem
void setHeight(qreal newHeight)
void flagsChanged()
void colorChanged()
QQuick3DXrItem(QQuick3DNode *parent=nullptr)
\qmltype XrItem \inqmlmodule QtQuick3D.Xr \inherits Node
~QQuick3DXrItem() override
qreal pixelsPerUnit() const
\qmlproperty real XrItem::pixelsPerUnit
void setAutomaticHeight(bool newAutomaticHeight)
void setContentItem(QQuickItem *newContentItem)
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
static qreal calculatePPU(qreal pxWidth, qreal pxHeight, qreal diagonal)