AL_USDMaya
0.29.4
USD to Maya Bridge
|
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>
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 | |
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.