AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AL::usdmaya::cmds::BaseCallbackCommand Struct Reference

The base class for all commands that need to create/delete callbacks in some way. Fill m_callbacksToDelete with the CallbackIds you want to delete, and fill the m_callbacksToInsert array with the callbacks returned from AL::AL::event::EventScheduler::buildCallback. Within the undo/redo implementation of a mel command, simply call redoItImplementation. This method will destroy the callbacks requested, and insert the created callbacks. Once called, the values of the m_callbacksToDelete and m_callbacksToInsert will be swapped, therefore calling redoItImplementation again will undo the previous action. More...

#include <EventCommand.h>

Inheritance diagram for AL::usdmaya::cmds::BaseCallbackCommand:
AL::usdmaya::cmds::Callback AL::usdmaya::cmds::DeleteCallbacks

Public Member Functions

MStatus redoItImplementation ()
 call within both the undo and redo methods
 

Public Attributes

std::vector
< AL::event::CallbackId > 
m_callbacksToDelete
 the callback ids that need to be deleted
 
AL::event::Callbacks m_callbacksToInsert
 the callback structures generated from EventScheduler::buildCallback
 

Detailed Description

The base class for all commands that need to create/delete callbacks in some way. Fill m_callbacksToDelete with the CallbackIds you want to delete, and fill the m_callbacksToInsert array with the callbacks returned from AL::AL::event::EventScheduler::buildCallback. Within the undo/redo implementation of a mel command, simply call redoItImplementation. This method will destroy the callbacks requested, and insert the created callbacks. Once called, the values of the m_callbacksToDelete and m_callbacksToInsert will be swapped, therefore calling redoItImplementation again will undo the previous action.


The documentation for this struct was generated from the following file: