|
SDFormat Editor
|
Interface for the SDFormat Editor's Command Factory. More...
#include <command_factory_interface.h>


Public Member Functions | |
| virtual std::unique_ptr< CommandI > | MakeOpenFileCommand (std::string file_path)=0 |
| Create an open file command. | |
| virtual std::unique_ptr< CommandI > | MakeCreateFileCommand ()=0 |
| Create a create file command. | |
| virtual std::unique_ptr< CommandI > | MakeDeleteElementCommand (sdf::ElementPtr element_to_delete)=0 |
| Create a delete element command. | |
| virtual std::unique_ptr< CommandI > | MakeAddElementCommand (sdf::ElementPtr parent_element, sdf::ElementPtr new_element)=0 |
| Create an add element command. | |
| virtual std::unique_ptr< CommandI > | MakeUndoCommand ()=0 |
| Create an undo command. | |
| virtual std::unique_ptr< CommandI > | MakeRedoCommand ()=0 |
| Create a redo command. | |
| virtual std::unique_ptr< CommandI > | MakeSaveFileCommand ()=0 |
| Create a save file command. | |
| virtual std::unique_ptr< CommandI > | MakeModifyAttributeCommand (sdf::ParamPtr attribute_to_modify, std::string new_value)=0 |
| create a modify attribute command | |
| virtual std::unique_ptr< CommandI > | MakeModifyAttributeCommand (sdf::ParamPtr attribute_to_modify, bool new_value)=0 |
| create a modify attribute command | |
| virtual std::unique_ptr< CommandI > | MakeModifyElementCommand (sdf::ElementPtr element_to_modify, std::string new_value)=0 |
| create a modify element command | |
| virtual std::unique_ptr< CommandI > | MakeModifyElementCommand (sdf::ElementPtr element_to_modify, bool new_value)=0 |
| create a modify element command | |
| virtual std::unique_ptr< CommandI > | MakeRenderModelCommand (bool render_collisions_in_model_viewer)=0 |
| Create a render model command. | |
| virtual std::unique_ptr< CommandI > | MakeOpenModelViewerCommand ()=0 |
| Create a open model viewer model command. | |
| virtual std::unique_ptr< CommandI > | MakeCloseModelViewerCommand ()=0 |
| Create a close model viewer model command. | |
| virtual void | PushToUndoCommandsStack (std::unique_ptr< CommandI > command, const bool new_change=true)=0 |
| Pushes to the undo commands stack. | |
| virtual void | PushToRedoCommandsStack (std::unique_ptr< CommandI > command)=0 |
| Pushes to the redo commands stack. | |
| virtual void | ClearUndoRedoStacks ()=0 |
| Clears both the undo and redo stacks. | |
Private Member Functions | |
| virtual void | Initialize (std::shared_ptr< GUII > gui, std::shared_ptr< SDFormatParserI > sdformatParser, std::shared_ptr< ModelViewerI > model_viewer)=0 |
| Initialization of the Command Factory. Should be wrapped in the constructor of the implementation. | |
Interface for the SDFormat Editor's Command Factory.
|
pure virtual |
Clears both the undo and redo stacks.
Implemented in CommandFactory.
|
privatepure virtual |
Initialization of the Command Factory. Should be wrapped in the constructor of the implementation.
| [in] | gui | A pointer to the GUI object |
| [in] | sdformat_parser | A pointer to the sdformat parser object |
| [in] | model_viewer | A pointer to the model viewer object |
Implemented in CommandFactory.
|
pure virtual |
Create an add element command.
| [in] | parent_element | The parent of the new SDF element |
| [in] | new_element | The new SDF element |
Implemented in CommandFactory.
|
pure virtual |
Create a close model viewer model command.
Implemented in CommandFactory.
|
pure virtual |
Create a create file command.
Implemented in CommandFactory.
|
pure virtual |
Create a delete element command.
| [in] | element_to_delete | The SDF element to delete |
Implemented in CommandFactory.
|
pure virtual |
create a modify attribute command
| [in] | attribute_to_modify | Pointer to the attribute to modify |
| [in] | new_value | The boolean value that will be given to the element |
Implemented in CommandFactory.
|
pure virtual |
create a modify attribute command
| [in] | attribute_to_modify | Pointer to the attribute to modify |
| [in] | new_value | The string value that will be given to the element |
Implemented in CommandFactory.
|
pure virtual |
create a modify element command
| [in] | element_to_modify | Pointer to the element to modify |
| [in] | new_value | The boolean value that will be given to the element |
Implemented in CommandFactory.
|
pure virtual |
create a modify element command
| [in] | element_to_modify | Pointer to the element to modify |
| [in] | new_value | The string value that will be given to the element |
Implemented in CommandFactory.
|
pure virtual |
Create an open file command.
| [in] | file_path | Filepath of the model |
Implemented in CommandFactory.
|
pure virtual |
Create a open model viewer model command.
Implemented in CommandFactory.
|
pure virtual |
|
pure virtual |
Create a render model command.
| [in] | render_collisions_in_model_viewer | indicates if collision boxes should be rendered in the model viewer |
Implemented in CommandFactory.
|
pure virtual |
Create a save file command.
Implemented in CommandFactory.
|
pure virtual |
|
pure virtual |
Pushes to the redo commands stack.
| [in] | command | commandI object to push |
Implemented in CommandFactory.
|
pure virtual |
Pushes to the undo commands stack.
| [in] | command | commandI object to push |
| [in] | new_change | indicates if we are pushing a new change, and thus should clear the redo stack |
Implemented in CommandFactory.