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
qquick3dxrview.cpp File Reference

(25f916068769cbb4108bc58eabe695b08cc64a3d)

#include "qtquick3dxrglobal_p.h"
#include "qquick3dxritem_p.h"
#include "qquick3dxrview_p.h"
#include <QQuickWindow>
#include <QQuickItem>
#include <QLoggingCategory>
#include <QtQuick3DUtils/private/qssgassert_p.h>
#include "qquick3dxrinputmanager_p.h"
Include dependency graph for qquick3dxrview.cpp:

Go to the source code of this file.

Classes

struct  QQuick3DXrView::XrTouchStates

Macros

#define Q_TOUCHPOINT_STATE(prop)
 \qmlmethod object XrView::touchpointState(int pointId)

Functions

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY (lcQuick3DXr)

Macro Definition Documentation

◆ Q_TOUCHPOINT_STATE

#define Q_TOUCHPOINT_STATE ( prop)
Value:
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Definition qvariant.h:668
#define QStringLiteral(str)
Definition qstring.h:1824
QJSValueIterator it(object)

\qmlmethod object XrView::touchpointState(int pointId)

This method returns the state of the touch point with ID pointId. The state is represented by a map from property names to values:

\table \header

  • Key
  • Type
  • Description \row
  • grabbed
  • bool
  • Is the point grabbed by an item? If false, all other values are undefined. \row
  • target
  • XrItem
  • The item that is grabbing the touch point, or null if there is no XrItem. \row
  • pressed
  • bool
  • Is the touch point pressed? \row
  • cursorPos
  • point
  • The 2D position of the touch point within target \row
  • touchDistance
  • real
  • The distance from the plane to the touch point. It will be 0 if pressed is true. \row
  • surfacePoint
  • vector3d
  • The position of the touch point in scene space. [since 6.11] \row
  • normal
  • vector3d
  • The normal vector at the touch point in scene space. [since 6.11] \row
  • uvPosition
  • vector2d
  • The UV position at the touch point. [since 6.11] \row
  • model
  • Model
  • The model that is grabbing the touch point, or null if there is no Model. [since 6.11] \endtable

Definition at line 776 of file qquick3dxrview.cpp.

Function Documentation

◆ Q_DECLARE_LOGGING_CATEGORY()

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY ( lcQuick3DXr )