QBackendNode Class


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

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

Public Types

enum Mode { ReadOnly, ReadWrite }

Public Functions

QBackendNode(Qt3DCore::QBackendNode::Mode mode = ReadOnly)
virtual ~QBackendNode()
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

The base class for all Qt3D backend nodes.

Member Type Documentation

enum QBackendNode::Mode

The mode for the backend node.


Member Function Documentation

QBackendNode::QBackendNode(Qt3DCore::QBackendNode::Mode mode = ReadOnly)

Default constructs an instance of QBackendNode.

[virtual] QBackendNode::~QBackendNode()

Destroys the instance of QBackendNode. The destructor is virtual.

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)


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

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

void QBackendNode::setEnabled(bool enabled)

Enables or disables the backend node by enabled.

See also isEnabled().

© 2018 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.