|
BlankMat 0.1.0
Free open-source 3D texture creation application
|


Public Member Functions | |
| void | Execute () override |
| Executes this command. | |
| void | Undo () override |
| Undoes the command if it is undoable. | |
| bool | Combine (ICommand *&other) override |
| Does not combine the commands. | |
| std::string | GetName () const override |
| Returns the name of this command. | |
| RunFunctionCommand (const std::string &name, std::function< void()> function, std::function< void()> reverseFunction=std::function< void()>(nullptr)) | |
| Instantiates a command that runs the given function once the command is executed. | |
Public Member Functions inherited from ICommand | |
| bool | Undoable () const |
| Returns whether the command is undoable. | |
| bool | Trackable () const |
| Returns whether the command is trackable (ie. should be stored in ActionStack) | |
Protected Attributes | |
| std::function< void()> | mFunction = nullptr |
| std::function< void()> | mReverseFunction = nullptr |
| std::string | mName = "" |
Protected Attributes inherited from ICommand | |
| bool | mCanBeUndone = true |
| bool | mTrackable = true |
|
inlineexplicit |
Instantiates a command that runs the given function once the command is executed.
|
inlineoverridevirtual |
Does not combine the commands.
| other | Other command to combine with |
Implements ICommand.
|
inlineoverridevirtual |
Executes this command.
Implements ICommand.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Undoes the command if it is undoable.
Implements ICommand.
|
protected |
|
protected |
|
protected |