Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNENetDiffTool Class Reference

#include <GNENetDiffTool.h>

Inheritance diagram for GNENetDiffTool:
[legend]
Collaboration diagram for GNENetDiffTool:
[legend]

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
 
GNEApplicationWindowgetGNEApp () const
 get to GNEApplicationWindow
 
FXMenuCommand * getMenuCommand () const
 get menu command
 
const std::string & getToolName () const
 get tool name
 
OptionsContgetToolsOptions ()
 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

GNEApplicationWindowmyGNEApp
 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
 
GNENetDiffTooloperator= (const GNENetDiffTool &)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 29 of file GNENetDiffTool.h.

Constructor & Destructor Documentation

◆ GNENetDiffTool() [1/2]

GNENetDiffTool::GNENetDiffTool ( GNEApplicationWindow GNEApp,
const std::string &  toolPath,
FXMenuPane *  menu 
)

◆ ~GNENetDiffTool()

GNENetDiffTool::~GNENetDiffTool ( )

destructor

Definition at line 44 of file GNENetDiffTool.cpp.

◆ GNENetDiffTool() [2/2]

GNENetDiffTool::GNENetDiffTool ( const GNENetDiffTool )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ fillNetDiffOptions()

void GNENetDiffTool::fillNetDiffOptions ( OptionsCont options)
private

fill netDiff options

Definition at line 114 of file GNENetDiffTool.cpp.

References OptionsCont::addDescription(), OptionsCont::addOptionSubTopic(), OptionsCont::doRegister(), and TL.

Referenced by GNENetDiffTool().

Here is the caller graph for this function:

◆ getCommand()

std::string GNENetDiffTool::getCommand ( ) const
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.

◆ getCommandPath()

std::string GNEPythonTool::getCommandPath ( ) const
protectedinherited

get command (python + script)

Definition at line 98 of file GNEPythonTool.cpp.

References GNEPythonTool::myToolPath.

Referenced by getCommand(), GNEPythonTool::getCommand(), and GNEPythonTool::saveConfiguration().

Here is the caller graph for this function:

◆ getDefaultValue()

const std::string GNEPythonTool::getDefaultValue ( const std::string &  name) const
inherited

get default value of the given parameter

Definition at line 163 of file GNEPythonTool.cpp.

References OptionsCont::getValueString(), and GNEPythonTool::myPythonToolsOptionsOriginal.

◆ getGNEApp()

GNEApplicationWindow * GNEPythonTool::getGNEApp ( ) const
inherited

get to GNEApplicationWindow

Definition at line 62 of file GNEPythonTool.cpp.

References GNEPythonTool::myGNEApp.

◆ getMenuCommand()

FXMenuCommand * GNEPythonTool::getMenuCommand ( ) const
inherited

get menu command

Definition at line 80 of file GNEPythonTool.cpp.

References GNEPythonTool::myMenuCommand.

Referenced by GNERunPythonToolDialog::onCmdBack(), GNERunPythonToolDialog::onCmdClose(), and GNEPythonToolDialog::onCmdRun().

Here is the caller graph for this function:

◆ getToolName()

const std::string & GNEPythonTool::getToolName ( ) const
inherited

get tool name

Definition at line 68 of file GNEPythonTool.cpp.

References GNEPythonTool::myPythonToolName.

Referenced by GNEPythonToolDialog::openDialog(), and GNERunPythonToolDialog::runTool().

Here is the caller graph for this function:

◆ getToolsOptions()

OptionsCont & GNEPythonTool::getToolsOptions ( )
inherited

get tools options

Definition at line 74 of file GNEPythonTool.cpp.

References GNEPythonTool::myPythonToolsOptions.

Referenced by GNEPythonToolDialog::buildArguments().

Here is the caller graph for this function:

◆ loadConfiguration()

bool GNEPythonTool::loadConfiguration ( const std::string &  file)
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().

Here is the caller graph for this function:

◆ loadShapes()

void GNENetDiffTool::loadShapes ( const std::string &  file)
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().

Here is the caller graph for this function:

◆ operator=()

GNENetDiffTool & GNENetDiffTool::operator= ( const GNENetDiffTool )
privatedelete

Invalidated assignment operator.

◆ postProcessing()

◆ saveConfiguration()

void GNEPythonTool::saveConfiguration ( const std::string &  file) const
inherited

save configuration

Definition at line 203 of file GNEPythonTool.cpp.

References GNEPythonTool::getCommandPath(), GNEPythonTool::myPythonToolName, GNEPythonTool::myPythonToolsOptions, SysUtils::runHiddenCommand(), TLF, and WRITE_MESSAGE.

Referenced by GNEPythonToolDialog::onCmdSave().

Here is the caller graph for this function:

◆ setCurrentValues()

void GNENetDiffTool::setCurrentValues ( )
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().

Field Documentation

◆ myGNEApp

GNEApplicationWindow* GNEPythonTool::myGNEApp
protectedinherited

pointer to GNEApplicationWindow

Definition at line 82 of file GNEPythonTool.h.

Referenced by GNEPythonTool::getGNEApp(), loadShapes(), and postProcessing().

◆ myMenuCommand

FXMenuCommand* GNEPythonTool::myMenuCommand
protectedinherited

menu command associated with this tool

Definition at line 85 of file GNEPythonTool.h.

Referenced by GNEPythonTool::getMenuCommand(), and GNEPythonTool::GNEPythonTool().

◆ myPythonToolName

const std::string GNEPythonTool::myPythonToolName
protectedinherited

◆ myPythonToolsOptions

◆ myPythonToolsOptionsOriginal

OptionsCont GNEPythonTool::myPythonToolsOptionsOriginal
protectedinherited

original tools options

Definition at line 91 of file GNEPythonTool.h.

Referenced by GNEPythonTool::getDefaultValue(), GNENetDiffTool(), and GNEPythonTool::GNEPythonTool().

◆ myToolPath

const std::string GNEPythonTool::myToolPath
protectedinherited

python tool path relative to SUMO_HOME

Definition at line 94 of file GNEPythonTool.h.

Referenced by GNEPythonTool::getCommandPath().


The documentation for this class was generated from the following files: