BlankMat 0.1.0
Free open-source 3D texture creation application
Loading...
Searching...
No Matches
UndoCommand Class Reference
Inheritance diagram for UndoCommand:
Collaboration diagram for UndoCommand:

Public Member Functions

void Execute () override
 Executes this command.
 
void Undo () override
 Undo cannot be undone.
 
bool Combine (ICommand *&other) override
 Undo cannot be combined.
 
std::string GetName () const override
 Returns the name of this command.
 
 UndoCommand ()
 
- 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
 

Constructor & Destructor Documentation

◆ UndoCommand()

UndoCommand::UndoCommand ( )
inlineexplicit

Member Function Documentation

◆ Combine()

bool UndoCommand::Combine ( ICommand *&  other)
inlineoverridevirtual

Undo cannot be combined.

Parameters
otherOther command
Returns
False

Implements ICommand.

◆ Execute()

void UndoCommand::Execute ( )
inlineoverridevirtual

Executes this command.

Implements ICommand.

◆ GetName()

std::string UndoCommand::GetName ( ) const
inlineoverridevirtual

Returns the name of this command.

Returns

Implements ICommand.

◆ Undo()

void UndoCommand::Undo ( )
inlineoverridevirtual

Undo cannot be undone.

Implements ICommand.