20#ifndef SDFORMAT_EDITOR_MODIFY_ATTRIBUTE_COMMAND_HH_
21#define SDFORMAT_EDITOR_MODIFY_ATTRIBUTE_COMMAND_HH_
24#include <interfaces/command_interface.h>
25#include <interfaces/sdformat_parser_interface.h>
26#include <interfaces/gui_interface.h>
45 private:
bool Execute()
override;
67 private:
bool IsThreaded(
bool& prevent_user_input)
override;
77 private: std::shared_ptr<GUII>
gui;
The command class encapsulates the interactions between the various interfaces of the SDFormat Editor...
Definition command_interface.h:29
Modify Attribute command implementation of CommandI.
Definition ModifyAttributeCommand.h:33
bool IsRedoable() override
Implementation of interface method.
Definition ModifyAttributeCommand.cpp:136
T old_value
The value that will be overridden in the attribute.
Definition ModifyAttributeCommand.h:89
bool IsThreaded(bool &prevent_user_input) override
Implementation of interface method.
Definition ModifyAttributeCommand.cpp:141
T new_value
The value that will be given to the element.
Definition ModifyAttributeCommand.h:86
std::shared_ptr< SDFormatParserI > sdformatParser
Pointer to the sdformat parser interface.
Definition ModifyAttributeCommand.h:80
bool ChangesProgramStateIrreversibly() override
Implementation of interface method.
Definition ModifyAttributeCommand.cpp:147
std::string file_path
Filepath of the model.
Definition ModifyAttributeCommand.h:74
bool Execute() override
Implementation of interface method.
Definition ModifyAttributeCommand.cpp:27
bool ExecuteUndo() override
Implementation of interface method.
Definition ModifyAttributeCommand.cpp:107
bool is_currently_redoable
Store if the command is currently redo-able.
Definition ModifyAttributeCommand.h:95
std::shared_ptr< GUII > gui
Pointer to the gui interface.
Definition ModifyAttributeCommand.h:77
bool IsUndoable() override
Implementation of interface method.
Definition ModifyAttributeCommand.cpp:131
sdf::ParamPtr attribute_to_modify
Pointer to the attribute to modify.
Definition ModifyAttributeCommand.h:83
bool ExecuteRedo() override
Implementation of interface method.
Definition ModifyAttributeCommand.cpp:119
bool is_currently_undoable
Store if the command is currently undo-able.
Definition ModifyAttributeCommand.h:92