QBackendNode Class

(Qt3DCore::QBackendNode)

The base class for all Qt3D backend nodes. More...

Header: #include <Qt3DCore/QBackendNode>
qmake: QT += 3dcore

Public Types

enum Mode { ReadOnly, ReadWrite }

Public Functions

bool isEnabled() const
Qt3DCore::QBackendNode::Mode mode() const
Qt3DCore::QNodeId peerId() const
void setEnabled(bool enabled)

Protected Functions

void notifyObservers(const Qt3DCore::QSceneChangePtr &e)
virtual void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e)
QNodeCommand::CommandId sendCommand(const QString &name, const QVariant &data, QNodeCommand::CommandId replyTo = QNodeCommand::CommandId())
void sendReply(const Qt3DCore::QNodeCommandPtr &command)

Detailed Description

Member Type Documentation

enum QBackendNode::Mode

The mode for the backend node.

Constant Value
Qt3DCore::QBackendNode::ReadOnly 0
Qt3DCore::QBackendNode::ReadWrite 1

Member Function Documentation

bool QBackendNode::isEnabled() const

Returns true if the backend node is enabled.

Qt3DCore::QBackendNode::Mode QBackendNode::mode() const

Returns the mode of the backend mode.

[protected] void QBackendNode::notifyObservers(const Qt3DCore::QSceneChangePtr &e)

Notifies observers of scene change e.

Qt3DCore::QNodeId QBackendNode::peerId() const

Returns the peer id of the backend node.

[virtual protected] void QBackendNode::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e)

TODO e

[protected] QNodeCommand::CommandId QBackendNode::sendCommand(const QString &name, const QVariant &data, QNodeCommand::CommandId replyTo = QNodeCommand::CommandId())

Send the command named name with contents data, and specify replyTo as the command id to which the reply needs to be sent.

[protected] void QBackendNode::sendReply(const Qt3DCore::QNodeCommandPtr &command)

Send the reply to command.

void QBackendNode::setEnabled(bool enabled)

Enables or disables the backend node by enabled.

See also isEnabled().

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.14/qt3dcore-qbackendnode.html