Eclipse SUMO - Simulation of Urban MObility
|
#include <GNENetDiffTool.h>
Public Member Functions | |
std::string | getCommand () const |
get command (python + script + arguments) | |
const std::string | getDefaultValue (const std::string &name) const |
get default value of the given parameter | |
GNEApplicationWindow * | getGNEApp () const |
get to GNEApplicationWindow | |
FXMenuCommand * | getMenuCommand () const |
get menu command | |
const std::string & | getToolName () const |
get tool name | |
OptionsCont & | getToolsOptions () |
get tools options | |
GNENetDiffTool (GNEApplicationWindow *GNEApp, const std::string &toolPath, FXMenuPane *menu) | |
Constructor. | |
bool | loadConfiguration (const std::string &file) |
load configuration | |
void | postProcessing () |
execute post processing | |
void | saveConfiguration (const std::string &file) const |
save configuration | |
void | setCurrentValues () |
set current values (used for set values like current folder and similar) | |
~GNENetDiffTool () | |
destructor | |
Protected Member Functions | |
std::string | getCommandPath () const |
get command (python + script) | |
Protected Attributes | |
GNEApplicationWindow * | myGNEApp |
pointer to GNEApplicationWindow | |
FXMenuCommand * | myMenuCommand |
menu command associated with this tool | |
const std::string | myPythonToolName |
tool name | |
OptionsCont | myPythonToolsOptions |
tools options | |
OptionsCont | myPythonToolsOptionsOriginal |
original tools options | |
const std::string | myToolPath |
python tool path relative to SUMO_HOME | |
Private Member Functions | |
void | fillNetDiffOptions (OptionsCont &options) |
fill netDiff options | |
GNENetDiffTool (const GNENetDiffTool &)=delete | |
Invalidated copy constructor. | |
void | loadShapes (const std::string &file) |
load shapes | |
GNENetDiffTool & | operator= (const GNENetDiffTool &)=delete |
Invalidated assignment operator. | |
Definition at line 29 of file GNENetDiffTool.h.
GNENetDiffTool::GNENetDiffTool | ( | GNEApplicationWindow * | GNEApp, |
const std::string & | toolPath, | ||
FXMenuPane * | menu | ||
) |
Constructor.
Definition at line 36 of file GNENetDiffTool.cpp.
References fillNetDiffOptions(), GNEPythonTool::myPythonToolsOptions, and GNEPythonTool::myPythonToolsOptionsOriginal.
GNENetDiffTool::~GNENetDiffTool | ( | ) |
destructor
Definition at line 44 of file GNENetDiffTool.cpp.
|
privatedelete |
Invalidated copy constructor.
|
private |
fill netDiff options
Definition at line 114 of file GNENetDiffTool.cpp.
References OptionsCont::addDescription(), OptionsCont::addOptionSubTopic(), OptionsCont::doRegister(), and TL.
Referenced by GNENetDiffTool().
|
virtual |
get command (python + script + arguments)
Reimplemented from GNEPythonTool.
Definition at line 91 of file GNENetDiffTool.cpp.
References OptionsCont::getBool(), GNEPythonTool::getCommandPath(), OptionsCont::getString(), and GNEPythonTool::myPythonToolsOptions.
|
protectedinherited |
get command (python + script)
Definition at line 98 of file GNEPythonTool.cpp.
References GNEPythonTool::myToolPath.
Referenced by getCommand(), GNEPythonTool::getCommand(), and GNEPythonTool::saveConfiguration().
|
inherited |
get default value of the given parameter
Definition at line 163 of file GNEPythonTool.cpp.
References OptionsCont::getValueString(), and GNEPythonTool::myPythonToolsOptionsOriginal.
|
inherited |
get to GNEApplicationWindow
Definition at line 62 of file GNEPythonTool.cpp.
References GNEPythonTool::myGNEApp.
|
inherited |
get menu command
Definition at line 80 of file GNEPythonTool.cpp.
References GNEPythonTool::myMenuCommand.
Referenced by GNERunPythonToolDialog::onCmdBack(), GNERunPythonToolDialog::onCmdClose(), and GNEPythonToolDialog::onCmdRun().
|
inherited |
get tool name
Definition at line 68 of file GNEPythonTool.cpp.
References GNEPythonTool::myPythonToolName.
Referenced by GNEPythonToolDialog::openDialog(), and GNERunPythonToolDialog::runTool().
|
inherited |
get tools options
Definition at line 74 of file GNEPythonTool.cpp.
References GNEPythonTool::myPythonToolsOptions.
Referenced by GNEPythonToolDialog::buildArguments().
|
inherited |
load configuration
Definition at line 175 of file GNEPythonTool.cpp.
References OptionsLoader::errorOccurred(), GNEPythonTool::myPythonToolName, GNEPythonTool::myPythonToolsOptions, OptionsCont::resetWritable(), TL, TLF, StringUtils::transcode(), StringUtils::transcodeToLocal(), WRITE_ERROR, and WRITE_MESSAGE.
Referenced by GNEPythonToolDialog::onCmdLoad().
|
private |
load shapes
Definition at line 150 of file GNENetDiffTool.cpp.
References GNEViewNet::getNet(), GNEApplicationWindow::getUndoList(), GNEApplicationWindow::getViewNet(), GNEApplicationWindow::isUndoRedoAllowed(), GNEPythonTool::myGNEApp, NETWORK, GeneralHandler::parse(), XMLSubSys::setValidation(), SUPERMODENETWORK, TL, WRITE_ERROR, and WRITE_MESSAGE.
Referenced by postProcessing().
|
privatedelete |
Invalidated assignment operator.
|
virtual |
execute post processing
Reimplemented from GNEPythonTool.
Definition at line 61 of file GNENetDiffTool.cpp.
References OptionsCont::getBool(), GNESelectorFrame::getSelectionOperationModul(), GNEViewParent::getSelectorFrame(), OptionsCont::getString(), GNEApplicationWindow::getViewNet(), GNEViewNet::getViewParent(), GNESelectorFrame::SelectionOperation::loadFromFile(), loadShapes(), GNEPythonTool::myGNEApp, and GNEPythonTool::myPythonToolsOptions.
|
inherited |
save configuration
Definition at line 203 of file GNEPythonTool.cpp.
References StringUtils::escapeShell(), GNEPythonTool::getCommandPath(), GNEPythonTool::myPythonToolName, GNEPythonTool::myPythonToolsOptions, SysUtils::runHiddenCommand(), TLF, and WRITE_MESSAGE.
Referenced by GNEPythonToolDialog::onCmdSave().
|
virtual |
set current values (used for set values like current folder and similar)
Reimplemented from GNEPythonTool.
Definition at line 48 of file GNENetDiffTool.cpp.
References FileHelpers::getFilePath(), OptionsCont::getOptions(), OptionsCont::getString(), GNEPythonTool::myPythonToolsOptions, OptionsCont::resetWritable(), and OptionsCont::set().
|
protectedinherited |
pointer to GNEApplicationWindow
Definition at line 82 of file GNEPythonTool.h.
Referenced by GNEPythonTool::getGNEApp(), loadShapes(), and postProcessing().
|
protectedinherited |
menu command associated with this tool
Definition at line 85 of file GNEPythonTool.h.
Referenced by GNEPythonTool::getMenuCommand(), and GNEPythonTool::GNEPythonTool().
|
protectedinherited |
tool name
Definition at line 97 of file GNEPythonTool.h.
Referenced by GNEPythonTool::getToolName(), GNEPythonTool::GNEPythonTool(), GNEPythonTool::loadConfiguration(), and GNEPythonTool::saveConfiguration().
|
protectedinherited |
tools options
Definition at line 88 of file GNEPythonTool.h.
Referenced by getCommand(), GNEPythonTool::getCommand(), GNEPythonTool::getToolsOptions(), GNENetDiffTool(), GNEPythonTool::GNEPythonTool(), GNEPythonTool::loadConfiguration(), postProcessing(), GNEPythonTool::saveConfiguration(), and setCurrentValues().
|
protectedinherited |
original tools options
Definition at line 91 of file GNEPythonTool.h.
Referenced by GNEPythonTool::getDefaultValue(), GNENetDiffTool(), and GNEPythonTool::GNEPythonTool().
|
protectedinherited |
python tool path relative to SUMO_HOME
Definition at line 94 of file GNEPythonTool.h.
Referenced by GNEPythonTool::getCommandPath().