#include <c4d_commanddata.h>
A data class for creating command plugins. (Previously known as menu plugins.)
使用
RegisterCommandPlugin()
to register a command plugin.
公共成员函数 |
|
virtual Bool | Execute ( BaseDocument *doc, GeDialog *parentManager) |
virtual Bool | ExecuteSubID ( BaseDocument *doc, Int32 subid, GeDialog *parentManager) |
virtual Bool | ExecuteOptionID ( BaseDocument *doc, Int32 plugid, Int32 subid, GeDialog *parentManager) |
virtual Int32 | GetState ( BaseDocument *doc, GeDialog *parentManager) |
virtual Bool | GetSubContainer ( BaseDocument *doc, BaseContainer &submenu, GeDialog *parentManager) |
virtual Bool | RestoreLayout (void *secret) |
virtual String | GetScriptName (void) |
virtual Bool | 消息 ( Int32 type, void *data) |
![]() |
|
BaseData () | |
virtual | ~BaseData (void) |
void | Destructor (void) |
|
virtual |
Executes the command.
[in] | doc | The active document. Cinema 4D owns the pointed document. |
|
virtual |
Executes the command with the sub-command ID that was given by GetSubContainer() .
[in] | doc | The active document. Cinema 4D owns the pointed document. |
[in] | subid | The sub-command ID. |
|
virtual |
Executes the command when the user calls it through its options dialog.
[in] | doc | The active document. Cinema 4D owns the pointed document. |
[in] | plugid | The command plugin ID. |
[in] | subid | The sub-command ID. Only available for plugins that have sub-IDs (which normally are called using ExecuteSubID). |
|
virtual |
Called to get the state of the command.
[in] | doc | The active document. Cinema 4D owns the pointed document. |
|
virtual |
Called to get the command sub-menu.
Container
submenu
is passed to create dynamic sub-container entries.
[in] | doc | The active document. Cinema 4D owns the pointed document. |
[in] | submenu | Fill with the sub-menu structure. |
|
virtual |
Called when loading a layout and restoring async dialogs.
dialog
and call
dialog->RestoreLayout
.
[in] | secret | Points to a RestoreLayoutSecret structure. |
|
virtual |
Called to get the script name of the command.
|
virtual |
Called to respond to command messages.
[in] | type | The message type: MSG_COMMAND |
[in] | data | The message data. Depends on the command message type . |