This reference page is linked to from the following overview topics: Classes Involved in the Action System, Building Action Tables, When to Derive from ActionTable and ActionItem.
3ds Max uses the ExecuteAction() method of an instance of this class when an ActionItem is executed.
Developers need to override this class and pass an instance of it to the system when they activate an ActionTable using the method IActionManager::ActivateActionTable().
#include <actiontable.h>
Public Member Functions |
|
CoreExport | ActionCallback () |
Constructor. |
|
virtual CoreExport | ~ActionCallback () |
Virtual destructor. |
|
virtual CoreExport BOOL | ExecuteAction (int id) |
Called by 3ds Max to execute the operation
associated with an action item. |
|
virtual CoreExport IMenu * | GetDynamicMenu (int id, HWND hwnd, IPoint2 &m) |
Called by 3ds Max if an action item declares
itself as a dynamic menu. |
|
CoreExport ActionTable * | GetTable () |
Returns a pointer to the
ActionTable the callback uses. |
|
CoreExport void | SetTable (ActionTable *pTable) |
Sets the
ActionTable the callback uses. |
CoreExport ActionCallback | ( | ) |
Constructor.
virtual CoreExport ~ActionCallback | ( | ) | [virtual] |
Virtual destructor.
virtual CoreExport BOOL ExecuteAction | ( | int | id | ) | [virtual] |
Called by 3ds Max to execute the operation associated with an action item.
id | The ID of the item to execute. |
{ return FALSE; }
Reimplemented in TrackViewActionCallback.
Called by 3ds Max if an action item declares itself as a dynamic menu.
id | The item ID which is passed to the DynamicMenuCallback::MenuItemSelected() |
hwnd | If the menu is requested by a right-click quad menu, then hwnd is the window where the click occurred. If the item is used from a menu bar, then hwnd will be NULL. |
m | If the menu is requested by a right-click quad menu, then this will be the point in the window where the user clicked. |
{ return NULL; }
CoreExport ActionTable* GetTable | ( | ) |
Returns a pointer to the ActionTable the callback uses.
CoreExport void SetTable | ( | ActionTable * | pTable | ) |
Sets the ActionTable the callback uses.
pTable | Points to the ActionTable the callback uses. |