QNodeCommand Class

( Qt3DCore::QNodeCommand )

The QNodeCommand class is the base class for all CommandRequested QSceneChange 事件。 更多...

頭: #include <Qt3DCore/QNodeCommand>
qmake: QT += 3dcore
Since: Qt 5.10
繼承: Qt3DCore::QSceneChange

公共類型

typedef CommandId

公共函數

QNodeCommand (Qt3DCore::QNodeId id )
virtual ~QNodeCommand ()
Qt3DCore::QNodeCommand::CommandId commandId () const
QVariant data () const
Qt3DCore::QNodeCommand::CommandId inReplyTo () const
QString name () const
void setData (const QVariant & data )
void setName (const QString & name )
void setReplyToCommandId (Qt3DCore::QNodeCommand::CommandId id )

保護函數

QNodeCommand (Qt3DCore::QNodeCommandPrivate & dd , Qt3DCore::QNodeId id )
typedef QNodeCommandPtr

詳細描述

The QNodeCommand class is the base class for all CommandRequested QSceneChange 事件。

The QNodeCommand class is the base class for all QSceneChange events that have the changeType() CommandRequested .

You can subclass this to create your own node update types for communication between your QNode and QBackendNode subclasses when writing your own aspects.

成員類型文檔編製

typedef QNodeCommand:: CommandId

Type of the command id, defined either as quint64 or quint32 depending on the platform support.

成員函數文檔編製

QNodeCommand:: QNodeCommand ( Qt3DCore::QNodeId id )

構造新的 QNodeCommand with id .

[protected] QNodeCommand:: QNodeCommand ( Qt3DCore::QNodeCommandPrivate & dd , Qt3DCore::QNodeId id )

Default constructs an instance of QNodeCommand.

[虛擬] QNodeCommand:: ~QNodeCommand ()

Destroys the instance of QNodeCommand. The destructor is virtual.

Qt3DCore::QNodeCommand::CommandId QNodeCommand:: commandId () const

Returns commandId.

QVariant QNodeCommand:: data () const

Returns data.

另請參閱 setData ().

Qt3DCore::QNodeCommand::CommandId QNodeCommand:: inReplyTo () const

Returns the id of the original QNodeCommand message that was sent to the backend.

QString QNodeCommand:: name () const

Returns name.

另請參閱 setName ().

void QNodeCommand:: setData (const QVariant & data )

Sets the data ( data ) in the backend node to perform the operations requested.

另請參閱 data ().

void QNodeCommand:: setName (const QString & name )

Sets the data ( name ) in the backend node to perform the operations requested.

另請參閱 name ().

void QNodeCommand:: setReplyToCommandId ( Qt3DCore::QNodeCommand::CommandId id )

Sets the command id to which the message is a reply.

相關非成員

typedef Qt3DCore:: QNodeCommandPtr

共享指針為 QNodeCommand .