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


Public Member Functions | |
| void | Execute () override |
| Executes this command. | |
| void | Undo () override |
| Undoes this command. | |
| bool | Combine (ICommand *&other) override |
| Combine this command with another command if they modify the same variable. WARNING: If combined, the other command is deleted and will be nullptr. | |
| std::string | GetName () const override |
| Returns the name of this command. | |
| AddValueCommand (T *valueRef, const T &delta) | |
| Instantiates a command that adds the given value to the value of the given reference 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) | |
Additional Inherited Members | |
Protected Attributes inherited from ICommand | |
| bool | mCanBeUndone = true |
| bool | mTrackable = true |
|
inlineexplicit |
Instantiates a command that adds the given value to the value of the given reference once the command is executed.
| valueRef | Reference to the variable to change |
| delta | Value to add to the variable |
|
inlineoverridevirtual |
Combine this command with another command if they modify the same variable. WARNING: If combined, the other command is deleted and will be nullptr.
| other | Other command to combine with |
Implements ICommand.
|
inlineoverridevirtual |
Executes this command.
Implements ICommand.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Undoes this command.
Implements ICommand.