![]() |
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. | |
ChangeValueCommand (T *valueRef, const T &newValue, std::function< void()> setCallback=std::function< void()>(nullptr)) | |
Instantiates a command that changes the value of the given reference to the given value once the command is executed. | |
![]() | |
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 | |
![]() | |
bool | mCanBeUndone = true |
bool | mTrackable = true |
|
inlineexplicit |
Instantiates a command that changes the value of the given reference to the given value once the command is executed.
valueRef | Reference to the variable to change |
newValue | Value to change the variable to |
|
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.