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
QOpenXRItemPrivate Class Reference
+ Inheritance diagram for QOpenXRItemPrivate:
+ Collaboration diagram for QOpenXRItemPrivate:

Public Member Functions

 QOpenXRItemPrivate ()
 
void setContentItem (QQuickItem *newContentItem)
 
void initParentItem ()
 
void updateContent ()
 
- Public Member Functions inherited from QQuick3DNodePrivate
 QQuick3DNodePrivate (QQuick3DObjectPrivate::Type t)
 
 ~QQuick3DNodePrivate ()
 
void init ()
 
QMatrix4x4 calculateLocalTransform ()
 
void calculateGlobalVariables ()
 
void markSceneTransformDirty ()
 
QMatrix4x4 localRotationMatrix () const
 
QMatrix4x4 sceneRotationMatrix () const
 
void emitChangesToSceneTransform ()
 
bool isSceneTransformRelatedSignal (const QMetaMethod &signal) const
 
bool isDirectionRelatedSignal (const QMetaMethod &signal) const
 
void setIsHiddenInEditor (bool isHidden)
 
- Public Member Functions inherited from QQuick3DObjectPrivate
 QQuick3DObjectPrivate (Type t)
 
 ~QQuick3DObjectPrivate () override
 
void init (QQuick3DObject *parent)
 
QQmlListProperty< QObjectdata ()
 
QQmlListProperty< QObjectresources ()
 
QQmlListProperty< QQuick3DObjectchildren ()
 
QQmlListProperty< QQuickStatestates ()
 
QQmlListProperty< QQuickTransitiontransitions ()
 
QString state () const
 
void setState (const QString &)
 
void _q_resourceObjectDeleted (QObject *)
 
void _q_cleanupContentItem2D ()
 
quint64 _q_createJSWrapper (QQmlV4ExecutionEnginePtr engine)
 
void addItemChangeListener (QQuick3DObjectChangeListener *listener, ChangeTypes types)
 
void updateOrAddItemChangeListener (QQuick3DObjectChangeListener *listener, ChangeTypes types)
 
void removeItemChangeListener (QQuick3DObjectChangeListener *, ChangeTypes types)
 
QQuickStateGroup_states ()
 
QString dirtyToString () const
 
void dirty (DirtyType)
 
void addToDirtyList ()
 
void removeFromDirtyList ()
 
void setCulled (bool)
 
void addChild (QQuick3DObject *)
 
void removeChild (QQuick3DObject *)
 
void siblingOrderChanged ()
 
void refSceneManager (QQuick3DSceneManager &)
 
void derefSceneManager ()
 
void updateSubFocusItem (QQuick3DObject *scope, bool focus)
 
void itemChange (QQuick3DObject::ItemChange, const QQuick3DObject::ItemChangeData &)
 
virtual void updatePolish ()
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Public Attributes

QQuickItemm_contentItem = nullptr
 
QQuickRectanglem_containerItem = nullptr
 
QPointer< QOpenXRViewm_XrView
 
QMetaObject::Connection m_contentItemDestroyedConnection
 
QColor m_color = Qt::white
 
qreal m_pixelsPerUnit { 1.0 }
 
qreal m_width = 1
 
qreal m_height = 1
 
bool m_manualPixelsPerUnit = false
 
- Public Attributes inherited from QQuick3DNodePrivate
RotationData m_rotation
 
QVector3D m_position
 
QVector3D m_scale { 1.0f, 1.0f, 1.0f }
 
QVector3D m_pivot
 
float m_opacity = 1.0f
 
int m_staticFlags = 0
 
bool m_visible = true
 
QMatrix4x4 m_sceneTransform
 
bool m_sceneTransformDirty = true
 
int m_sceneTransformConnectionCount = 0
 
int m_directionConnectionCount = 0
 
bool m_isHiddenInEditor = false
 
bool m_hasInheritedUniformScale = true
 
- Public Attributes inherited from QQuick3DObjectPrivate
QLazilyAllocated< ExtraDataextra
 
QVector< QQuick3DObjectPrivate::ChangeListenerchangeListeners
 
QQuickStateGroup_stateGroup
 
quint32 dirtyAttributes
 
QQuick3DObjectnextDirtyItem
 
QQuick3DObject ** prevDirtyItem
 
QPointer< QQuick3DSceneManagersceneManager
 
int sceneRefCount
 
QQuick3DObjectparentItem
 
QList< QQuick3DObject * > childItems
 
QQuick3DObjectsubFocusItem
 
QSSGRenderGraphObjectspatialNode = nullptr
 
Type type = Type::Unknown
 
bool componentComplete = true
 
bool preSyncNeeded = false
 
bool culled
 
bool sharedResource = false
 
QQuick3DItem2DcontentItem2d = nullptr
 
ConnectionMap connectionMap
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QQuick3DObjectPrivate
enum  ChangeType {
  Geometry = 0x01 , SiblingOrder = 0x02 , Visibility = 0x04 , Opacity = 0x08 ,
  Destroyed = 0x10 , Parent = 0x20 , Children = 0x40 , Rotation = 0x80 ,
  ImplicitWidth = 0x100 , ImplicitHeight = 0x200 , Enabled = 0x400
}
 
enum  DirtyType {
  TransformOrigin = 0x00000001 , Transform = 0x00000002 , BasicTransform = 0x00000004 , Position = 0x00000008 ,
  Size = 0x00000010 , ZValue = 0x00000020 , Content = 0x00000040 , Smooth = 0x00000080 ,
  OpacityValue = 0x00000100 , ChildrenChanged = 0x00000200 , ChildrenStackingChanged = 0x00000400 , ParentChanged = 0x00000800 ,
  Clip = 0x00001000 , Window = 0x00002000 , EffectReference = 0x00008000 , Visible = 0x00010000 ,
  HideReference = 0x00020000 , Antialiasing = 0x00040000 , InstanceRootChanged = 0x00080000 , TransformUpdateMask = TransformOrigin | Transform | BasicTransform | Position | Window ,
  ComplexTransformUpdateMask = Transform | Window , ContentUpdateMask = Size | Content | Smooth | Window | Antialiasing , ChildrenUpdateMask = ChildrenChanged | ChildrenStackingChanged | EffectReference | Window
}
 
using Type = QSSGRenderGraphObject::Type
 
using ConnectionMap = QHash<ConnectionKey, QMetaObject::Connection>
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Static Public Member Functions inherited from QQuick3DNodePrivate
static QQuick3DNodePrivateget (QQuick3DNode *node)
 
- Static Public Member Functions inherited from QQuick3DObjectPrivate
template<typename SceneContext , typename CallContext , typename Setter >
static void attachWatcherPriv (SceneContext *sceneContext, CallContext *callContext, Setter setter, QQuick3DObject *newO, QObject *oldO)
 
template<typename Context , typename Setter , typename Object3D >
static void attachWatcher (Context *context, Setter setter, Object3D *newO, Object3D *oldO)
 Attach a object-destroyed-watcher to an object that's not owned.
 
static QQuick3DObjectPrivateget (QQuick3DObject *item)
 
static const QQuick3DObjectPrivateget (const QQuick3DObject *item)
 
static QSSGRenderGraphObjectupdateSpatialNode (QQuick3DObject *o, QSSGRenderGraphObject *n)
 
static void data_append (QQmlListProperty< QObject > *, QObject *)
 
static qsizetype data_count (QQmlListProperty< QObject > *)
 
static QObjectdata_at (QQmlListProperty< QObject > *, qsizetype)
 
static void data_clear (QQmlListProperty< QObject > *)
 
static QObjectresources_at (QQmlListProperty< QObject > *, qsizetype)
 
static void resources_append (QQmlListProperty< QObject > *, QObject *)
 
static qsizetype resources_count (QQmlListProperty< QObject > *)
 
static void resources_clear (QQmlListProperty< QObject > *)
 
static void children_append (QQmlListProperty< QQuick3DObject > *, QQuick3DObject *)
 
static qsizetype children_count (QQmlListProperty< QQuick3DObject > *)
 
static QQuick3DObjectchildren_at (QQmlListProperty< QQuick3DObject > *, qsizetype)
 
static void children_clear (QQmlListProperty< QQuick3DObject > *)
 
static void refSceneManager (QQuick3DObject *obj, QQuick3DSceneManager &mgr)
 
static void derefSceneManager (QQuick3DObject *obj)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 

Detailed Description

Definition at line 13 of file qopenxritem.cpp.

Constructor & Destructor Documentation

◆ QOpenXRItemPrivate()

QOpenXRItemPrivate::QOpenXRItemPrivate ( )
inline

Definition at line 17 of file qopenxritem.cpp.

Member Function Documentation

◆ initParentItem()

void QOpenXRItemPrivate::initParentItem ( )
inline

Definition at line 43 of file qopenxritem.cpp.

References QQuick3DObjectPrivate::data(), m_containerItem, QObject::setParent(), QQuickItem::setTransformOrigin(), and QQuickItem::TopLeft.

Referenced by setContentItem(), and updateContent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setContentItem()

void QOpenXRItemPrivate::setContentItem ( QQuickItem * newContentItem)
inline

Definition at line 21 of file qopenxritem.cpp.

References QObject::connect(), QObject::destroyed(), QObject::disconnect(), initParentItem(), m_containerItem, m_contentItem, m_contentItemDestroyedConnection, QObject::setParent(), QQuickItem::setParentItem(), and updateContent().

+ Here is the call graph for this function:

◆ updateContent()

void QOpenXRItemPrivate::updateContent ( )

Definition at line 74 of file qopenxritem.cpp.

References calculatePPU(), QQuick3DObjectPrivate::componentComplete, QQuickItem::height, initParentItem(), m_color, m_containerItem, m_contentItem, m_height, m_manualPixelsPerUnit, m_pixelsPerUnit, m_width, Q_UNLIKELY, qWarning, QQuickRectangle::setColor(), QQuickItem::setScale(), QQuickItem::setSize(), and QQuickItem::width.

Referenced by setContentItem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_color

QColor QOpenXRItemPrivate::m_color = Qt::white

Definition at line 62 of file qopenxritem.cpp.

Referenced by updateContent().

◆ m_containerItem

QQuickRectangle* QOpenXRItemPrivate::m_containerItem = nullptr

Definition at line 59 of file qopenxritem.cpp.

Referenced by initParentItem(), setContentItem(), and updateContent().

◆ m_contentItem

QQuickItem* QOpenXRItemPrivate::m_contentItem = nullptr

Definition at line 58 of file qopenxritem.cpp.

Referenced by setContentItem(), and updateContent().

◆ m_contentItemDestroyedConnection

QMetaObject::Connection QOpenXRItemPrivate::m_contentItemDestroyedConnection

Definition at line 61 of file qopenxritem.cpp.

Referenced by setContentItem().

◆ m_height

qreal QOpenXRItemPrivate::m_height = 1

Definition at line 65 of file qopenxritem.cpp.

Referenced by updateContent().

◆ m_manualPixelsPerUnit

bool QOpenXRItemPrivate::m_manualPixelsPerUnit = false

Definition at line 66 of file qopenxritem.cpp.

Referenced by updateContent().

◆ m_pixelsPerUnit

qreal QOpenXRItemPrivate::m_pixelsPerUnit { 1.0 }

Definition at line 63 of file qopenxritem.cpp.

Referenced by updateContent().

◆ m_width

qreal QOpenXRItemPrivate::m_width = 1

Definition at line 64 of file qopenxritem.cpp.

Referenced by updateContent().

◆ m_XrView

QPointer<QOpenXRView> QOpenXRItemPrivate::m_XrView

Definition at line 60 of file qopenxritem.cpp.


The documentation for this class was generated from the following file: