- 1 property inherited from QObject
|QNode(QNode *parent = nullptr)|
|QNode *||parentNode() const|
- 31 public functions inherited from QObject
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
|void||notifyObservers(const QSceneChangePtr &change)|
|virtual void||sceneChangeEvent(const QSceneChangePtr &change)|
- 9 protected functions inherited from QObject
|QNodeIdVector||qIdsForNodes(const T &nodes)|
Additional Inherited Members
- 11 static public members inherited from QObject
QNode is the base class of all Qt3D node classes used to build a Qt3D scene.
The owernship of QNode is determined by the QObject parent/child relationship between nodes. By itself, a QNode has no visual appearance and no particular meaning, it is there as a way of building a node based tree structure.
Each QNode instance has a unique id that allows it to be recognizable from other instances.
When properties are defined on a QNode subclass, their NOTIFY signal will automatically generate notifications that the Qt3D backend aspects will receive.
Note: the interpretation of what enabled means is aspect-dependent. Even if enabled is set to
false, some aspects may still consider the node in some manner. This is documented on a class by class basis.
Holds the immediate QNode parent, or null if the node has no parent.
Setting the parent will notify the backend aspects about current QNode instance's parent change.
Note: if parent happens to be null, this will actually notify that the current QNode instance was removed from the scene.
|QNode *||parentNode() const|
Member Function Documentation
QNode::QNode(QNode *parent = nullptr)
Creates a new QNode instance with parent parent.
Note: The backend aspects will be notified that a QNode instance is part of the scene only if it has a parent; unless this is the root node of the Qt3D scene.
See also setParent().
If block is
true, property change notifications sent by this object to aspects are blocked. If block is
false, no such blocking will occur.
The return value is the previous value of notificationsBlocked().
Note that the other notification types will be sent even if the notifications for this object have been blocked.
See also notificationsBlocked().
QNodeVector QNode::childNodes() const
QNodeId QNode::id() const
Returns the id that uniquely identifies the QNode instance.
emitted when the node is destroyed.
true if aspect notifications are blocked; otherwise returns
false. By default, notifications are not blocked.
See also blockNotifications().
[protected] void QNode::notifyObservers(const QSceneChangePtr &change)
For the common case of a QObject property change, QNode handles this for you automatically by sending a QPropertyUpdatedChange event to the backend nodes. You only need to call this function if you wish to send a specific type of change in place of the automatic handling.
[virtual protected] void QNode::sceneChangeEvent(const QSceneChangePtr &change)
Called when one or more backend aspects sends a notification change to the current Qt3DCore::QNode instance.
Note: This method should be reimplemented in your subclasses to properly handle the change.
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.