The base class for all Qt3D backend nodes. 更多...
头: | #include <Qt3DCore/QBackendNode> |
qmake: | QT += 3dcore |
enum | Mode { ReadOnly, ReadWrite } |
QBackendNode (Qt3DCore::QBackendNode::Mode mode = ReadOnly) | |
virtual | ~QBackendNode () |
bool | isEnabled () const |
Qt3DCore::QBackendNode::Mode | mode () const |
Qt3DCore::QNodeId | peerId () const |
void | setEnabled (bool enabled ) |
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 & 命令 ) |
Qt3DCore::QBackendNodePrivate * | d_ptr |
The base class for all Qt3D backend nodes.
The mode for the backend node.
常量 | 值 |
---|---|
Qt3DCore::QBackendNode::ReadOnly
|
0
|
Qt3DCore::QBackendNode::ReadWrite
|
1
|
Default constructs an instance of QBackendNode.
[虚拟]
QBackendNode::
~QBackendNode
()
Destroys the instance of QBackendNode. The destructor is virtual.
返回
true
if the backend node is enabled.
Returns the mode of the backend mode.
[protected]
void
QBackendNode::
notifyObservers
(const
Qt3DCore::QSceneChangePtr
&
e
)
Notifies observers of scene change e .
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
&
命令
)
Send the reply to 命令 .
Enables or disables the backend node by enabled .
另请参阅 isEnabled ().