#include <Command.h>
Inherited by EMotionFX::PhysicsSetupManipulatorCommandCallback.
Public Member Functions | |
Callback (bool executePreUndo, bool executePreCommand=false) | |
virtual | ~Callback () |
virtual bool | Execute (MCore::Command *command, const MCore::CommandLine &commandLine)=0 |
virtual bool | Undo (MCore::Command *command, const MCore::CommandLine &commandLine)=0 |
MCORE_INLINE bool | GetExecutePreCommand () const |
MCORE_INLINE bool | GetExecutePreUndo () const |
The command callback base class. The callbacks get executed when executing a command, or when undoing a command. You could for example link your 3D engine to loading of some 3D mesh command (outside of your engine), where the callback would convert this data into an object inside your 3D engine.
MCore::Command::Callback::Callback | ( | bool | executePreUndo, |
bool | executePreCommand = false |
||
) |
The destructor.
executePreUndo | Flag which controls if the callback gets executed before the undo (true) or after it (false). |
executePreCommand | Flag which controls if the callback gets executed before the command (true) or after it (false). |
|
virtual |
The destructor.
|
pure virtual |
Execute the callback. Command callbacks are executed before/after executing the real command where this callback is linked to.
command | The command where this callback belongs to. |
commandLine | The command line used when executing the command. |
Implemented in EMotionFX::PhysicsSetupManipulatorCommandCallback.
|
inline |
Get the flag which controls if the callback gets executed before the command or after it.
|
inline |
Get the flag which controls if the callback gets executed before undo or after it.
|
pure virtual |
Execute the undo of this callback. The undo is executed before/after executing the undo of the actual command where this callback is linked to.
command | The command where this callback belongs to. |
commandLine | The command line used when executing the command. |
Implemented in EMotionFX::PhysicsSetupManipulatorCommandCallback.