20#ifndef SDFORMAT_EDITOR_OPEN_MODEL_VIEWER_COMMAND_HH_
21#define SDFORMAT_EDITOR_OPEN_MODEL_VIEWER_COMMAND_HH_
24#include <interfaces/command_interface.h>
25#include <interfaces/model_viewer_interface.h>
40 private:
bool Execute()
override;
62 private:
bool IsThreaded(
bool& prevent_user_input)
override;
The command class encapsulates the interactions between the various interfaces of the SDFormat Editor...
Definition command_interface.h:29
Run model viewer command implementation of CommandI.
Definition OpenModelViewerCommand.h:31
bool Execute() override
Implementation of interface method.
Definition OpenModelViewerCommand.cpp:31
bool ExecuteUndo() override
Implementation of interface method.
Definition OpenModelViewerCommand.cpp:60
bool ChangesProgramStateIrreversibly() override
Implementation of interface method.
Definition OpenModelViewerCommand.cpp:86
std::shared_ptr< ModelViewerI > model_viewer
Pointer to the sdformat parser interface.
Definition OpenModelViewerCommand.h:69
bool IsRedoable() override
Implementation of interface method.
Definition OpenModelViewerCommand.cpp:81
bool IsThreaded(bool &prevent_user_input) override
Implementation of interface method.
Definition OpenModelViewerCommand.cpp:70
bool ExecuteRedo() override
Implementation of interface method.
Definition OpenModelViewerCommand.cpp:65
bool IsUndoable() override
Implementation of interface method.
Definition OpenModelViewerCommand.cpp:76