Obsolete Members for QNode

以下成員源於類 QNode 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) QNodeCommand::CommandId sendCommand (const QString & name , const QVariant & data = QVariant(), QNodeCommand::CommandId replyTo = QNodeCommand::CommandId())
(obsolete) void sendReply (const Qt3DCore::QNodeCommandPtr & command )

保護函數

(obsolete) virtual void sceneChangeEvent (const Qt3DCore::QSceneChangePtr & change )

成員函數文檔編製

[virtual protected] void QNode:: sceneChangeEvent (const Qt3DCore::QSceneChangePtr & change )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Called when one or more backend aspects sends a notification change to the current Qt3DCore::QNode 實例。

注意: This method should be reimplemented in your subclasses to properly handle the change .

QNodeCommand::CommandId QNode:: sendCommand (const QString & name , const QVariant & data = QVariant(), QNodeCommand::CommandId replyTo = QNodeCommand::CommandId())

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Sends a command message to the backend node

創建 QNodeCommand message and dispatches it to the backend node. The command is given and a name 和一些 data which can be used in the backend node to perform various operations. This returns a CommandId which can be used to identify the initial command when receiving a message in reply. If the command message is to be sent in reply to another command, replyTo contains the id of that command.

另請參閱 QNodeCommand and QNode::sendReply .

void QNode:: sendReply (const Qt3DCore::QNodeCommandPtr & command )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

發送 command back to the backend node.

Assumes the command is to be to sent back in reply to itself to the backend node.

另請參閱 QNodeCommand and QNode::sendCommand .