52 if (networkPath.empty()) {
93 const char* pythonEnv = getenv(
"PYTHON");
94 const std::string python = (pythonEnv ==
nullptr) ?
"python" : pythonEnv;
95 const char* sumoHomeEnv = getenv(
"SUMO_HOME");
96 std::string sumoHome =
"";
97 if (sumoHomeEnv !=
nullptr && sumoHomeEnv != std::string(
"")) {
98 sumoHome = std::string(sumoHomeEnv);
100 if (sumoHome.front() !=
'"') {
101 sumoHome =
"\"" + sumoHome;
103 if (sumoHome.back() !=
'"') {
109 std::string command = python +
" " + sumoHome +
myToolPath;
111 std::string arguments;
120 arguments +=
"--write-selections ";
126 arguments +=
"--write-shapes ";
128 return command +
" " + arguments;
148 options.
addDescription(
"select-modified",
"Select",
TL(
"Select modified elements"));
151 options.
addDescription(
"select-added",
"Select",
TL(
"Select added elements"));
154 options.
addDescription(
"select-deleted",
"Select",
TL(
"Select deleted elements"));
158 options.
addDescription(
"load-shapes-modified",
"Load",
TL(
"Load shapes for elements"));
161 options.
addDescription(
"load-shapes-added",
"Load",
TL(
"Load shapes for added"));
164 options.
addDescription(
"load-shapes-deleted",
"Load",
TL(
"Load shapes for deleted elements"));
179 if (!generalHandler.
parse()) {
@ NETWORK
Network mode (Edges, junctions, etc..)
#define WRITE_MESSAGE(msg)
static std::string getFilePath(const std::string &path)
Removes the file information from the given path.
The main window of Netedit.
GNEUndoList * getUndoList()
get pointer to undoList
GNEViewNet * getViewNet()
get pointer to viewNet
void loadFromFile(const std::string &file) const
load from file
GNESelectorFrame::SelectionOperation * getSelectionOperationModul() const
get selection operation modul
GNENet * getNet() const
get the net object
GNEViewParent * getViewParent() const
get the net object
GNESelectorFrame * getSelectorFrame() const
get frame for select elements
A storage for options typed value containers)
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
void doRegister(const std::string &name, Option *o)
Adds an option under the given name.
bool set(const std::string &name, const std::string &value, const bool append=false)
Sets the given value for the named option.
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
void resetWritable()
Resets all options to be writeable.
static OptionsCont & getOptions()
Retrieves the options.
static void setValidation(const std::string &validationScheme, const std::string &netValidationScheme, const std::string &routeValidationScheme)
Enables or disables validation.