19 #include "maya/MPxCommand.h"
21 #include "AL/event/EventHandler.h"
22 #include "AL/maya/utils/Api.h"
23 #include "AL/maya/utils/MayaHelperMacros.h"
25 PXR_NAMESPACE_USING_DIRECTIVE
58 AL::event::NodeEvents* m_associatedData = 0;
59 AL::event::CallbackId m_parentEvent = 0;
60 bool m_deleting =
false;
62 AL_MAYA_DECLARE_COMMAND();
64 bool isUndoable()
const override;
65 MStatus doIt(
const MArgList& args)
override;
66 MStatus redoIt()
override;
67 MStatus undoIt()
override;
78 AL_MAYA_DECLARE_COMMAND();
80 MStatus doIt(
const MArgList& args)
override;
91 AL_MAYA_DECLARE_COMMAND();
93 MStatus doIt(
const MArgList& args)
override;
105 AL_MAYA_DECLARE_COMMAND();
107 bool isUndoable()
const override;
108 MStatus doIt(
const MArgList& args)
override;
109 MStatus redoIt()
override;
110 MStatus undoIt()
override;
121 AL_MAYA_DECLARE_COMMAND();
123 bool isUndoable()
const override;
124 MStatus doIt(
const MArgList& args)
override;
135 AL_MAYA_DECLARE_COMMAND();
137 bool isUndoable()
const override;
138 MStatus doIt(
const MArgList& args)
override;
150 AL_MAYA_DECLARE_COMMAND();
152 bool isUndoable()
const override;
153 MStatus doIt(
const MArgList& args)
override;
154 MStatus redoIt()
override;
155 MStatus undoIt()
override;
166 AL_MAYA_DECLARE_COMMAND();
168 bool isUndoable()
const override;
169 MStatus doIt(
const MArgList& args)
override;
180 AL_MAYA_DECLARE_COMMAND();
182 bool isUndoable()
const override;
183 MStatus doIt(
const MArgList& args)
override;
187 extern void constructEventCommandGuis();
MStatus redoItImplementation()
call within both the undo and redo methods
A command that lists the events available on either a particular node, or the global set of events...
Definition: EventCommand.h:117
A command that allows you to register and unregister new Event types from script. ...
Definition: EventCommand.h:54
The base class for all commands that need to create/delete callbacks in some way. Fill m_callbacksToD...
Definition: EventCommand.h:40
A command that allows you to query information about a specific event.
Definition: EventCommand.h:74
A command that lists the events available on either a particular node, or the global set of events...
Definition: EventCommand.h:176
A command that allows you to create / delete callbacks assigned to a specific event within AL_usdmaya...
Definition: EventCommand.h:100
std::vector< AL::event::CallbackId > m_callbacksToDelete
the callback ids that need to be deleted
Definition: EventCommand.h:45
A command that lists the events available on either a particular node, or the global set of events...
Definition: EventCommand.h:162
A command that allows you to query information about an event.
Definition: EventCommand.h:87
A command that will trigger all callbacks on an event.
Definition: EventCommand.h:131
AL::event::Callbacks m_callbacksToInsert
the callback structures generated from EventScheduler::buildCallback
Definition: EventCommand.h:47
A command that will delete all callback ids specified as an argument.
Definition: EventCommand.h:145