|
SDFormat Editor
|
The command class encapsulates the interactions between the various interfaces of the SDFormat Editor, providing undo/redo functionality when applicable. More...
#include <command_interface.h>


Public Member Functions | |
| virtual bool | Execute ()=0 |
| Execution of the command. Must be implemented as applicable by the derived class. | |
| virtual bool | ExecuteUndo ()=0 |
| Execution of the undo command. Must be implemented as applicable by the derived class. | |
| virtual bool | ExecuteRedo ()=0 |
| Execution of the redo command. Must be implemented as applicable by the derived class. | |
| virtual bool | IsUndoable ()=0 |
| Undo functionality of the command. | |
| virtual bool | IsRedoable ()=0 |
| Redo functionality of the command. | |
| virtual bool | IsThreaded (bool &prevent_user_input)=0 |
| Indicates if this command should be run in a thread. | |
| virtual bool | ChangesProgramStateIrreversibly ()=0 |
| Indicates if this command is an irreversible state-changing command. | |
The command class encapsulates the interactions between the various interfaces of the SDFormat Editor, providing undo/redo functionality when applicable.
|
pure virtual |
Indicates if this command is an irreversible state-changing command.
Implemented in AddElementCommand, CloseModelViewerCommand, CreateFileCommand, DeleteElementCommand, GenericCommand, ModifyAttributeCommand< T >, ModifyElementCommand< T >, OpenFileCommand, OpenModelViewerCommand, RenderModelCommand, and SaveFileCommand.
|
pure virtual |
Execution of the command. Must be implemented as applicable by the derived class.
Implemented in SaveFileCommand, AddElementCommand, CloseModelViewerCommand, CreateFileCommand, DeleteElementCommand, GenericCommand, ModifyAttributeCommand< T >, ModifyElementCommand< T >, OpenFileCommand, OpenModelViewerCommand, and RenderModelCommand.
|
pure virtual |
Execution of the redo command. Must be implemented as applicable by the derived class.
Implemented in AddElementCommand, CloseModelViewerCommand, CreateFileCommand, DeleteElementCommand, GenericCommand, ModifyAttributeCommand< T >, ModifyElementCommand< T >, OpenFileCommand, OpenModelViewerCommand, RenderModelCommand, and SaveFileCommand.
|
pure virtual |
Execution of the undo command. Must be implemented as applicable by the derived class.
Implemented in AddElementCommand, CloseModelViewerCommand, CreateFileCommand, DeleteElementCommand, GenericCommand, ModifyAttributeCommand< T >, ModifyElementCommand< T >, OpenFileCommand, OpenModelViewerCommand, RenderModelCommand, and SaveFileCommand.
|
pure virtual |
Redo functionality of the command.
Implemented in AddElementCommand, CloseModelViewerCommand, CreateFileCommand, DeleteElementCommand, GenericCommand, ModifyAttributeCommand< T >, ModifyElementCommand< T >, OpenFileCommand, OpenModelViewerCommand, RenderModelCommand, and SaveFileCommand.
|
pure virtual |
Indicates if this command should be run in a thread.
| [out] | prevent_user_input | indicates if user input should be prevented if this happens to be a threaded command |
Implemented in AddElementCommand, CloseModelViewerCommand, CreateFileCommand, DeleteElementCommand, GenericCommand, ModifyAttributeCommand< T >, ModifyElementCommand< T >, OpenFileCommand, OpenModelViewerCommand, RenderModelCommand, and SaveFileCommand.
|
pure virtual |
Undo functionality of the command.
Implemented in AddElementCommand, CloseModelViewerCommand, CreateFileCommand, DeleteElementCommand, GenericCommand, ModifyAttributeCommand< T >, ModifyElementCommand< T >, OpenFileCommand, OpenModelViewerCommand, RenderModelCommand, and SaveFileCommand.