Modify Element command implementation of CommandI.
More...
#include <ModifyElementCommand.h>
|
| bool | Execute () override |
| | Implementation of interface method.
|
| |
| bool | ExecuteUndo () override |
| | Implementation of interface method.
|
| |
| bool | ExecuteRedo () override |
| | Implementation of interface method.
|
| |
| bool | IsUndoable () override |
| | Implementation of interface method.
|
| |
| bool | IsRedoable () override |
| | Implementation of interface method.
|
| |
| bool | IsThreaded (bool &prevent_user_input) override |
| | Implementation of interface method.
|
| |
| bool | ChangesProgramStateIrreversibly () override |
| | Implementation of interface method.
|
| |
|
|
std::string | file_path |
| | Filepath of the model.
|
| |
|
std::shared_ptr< GUII > | gui |
| | Pointer to the gui interface.
|
| |
|
std::shared_ptr< SDFormatParserI > | sdformatParser |
| | Pointer to the sdformat parser interface.
|
| |
|
sdf::ElementPtr | element_to_modify |
| | Pointer to the element to modify.
|
| |
|
T | new_value |
| | The value that will be given to the element.
|
| |
|
T | old_value |
| | The value that will be overridden in the element.
|
| |
|
bool | is_currently_undoable = true |
| | Store if the command is currently undo-able.
|
| |
|
bool | is_currently_redoable = true |
| | Store if the command is currently redo-able.
|
| |
template<typename T>
class ModifyElementCommand< T >
Modify Element command implementation of CommandI.
◆ ModifyElementCommand()
Constructor for modify element command objects.
- Parameters
-
| [in] | gui | Pointer to the GUII object |
| [in] | sdformatParser | Pointer to the SDFormatParserI object |
| [in] | element_to_modify | Pointer to the element to modify |
| [in] | new_value | The new value with which to modify the element |
◆ ChangesProgramStateIrreversibly()
Implementation of interface method.
- Returns
- Always false
Implements CommandI.
◆ Execute()
Implementation of interface method.
- Returns
- Returns true if the element's value has been modified
Implements CommandI.
◆ ExecuteRedo()
Implementation of interface method.
- Returns
- Returns true if the element's value has been one again set to the new value
Implements CommandI.
◆ ExecuteUndo()
Implementation of interface method.
- Returns
- Returns true if the element's value has been reset
Implements CommandI.
◆ IsRedoable()
Implementation of interface method.
- Returns
- Returns true if the command has been undone
Implements CommandI.
◆ IsThreaded()
Implementation of interface method.
- Parameters
-
| [out] | prevent_user_input | indicates if user input should be prevented if this happens to be a threaded command |
- Returns
- Always false
Implements CommandI.
◆ IsUndoable()
Implementation of interface method.
- Returns
- Returns true if the command as been executed or redone
Implements CommandI.
The documentation for this class was generated from the following files: