![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNERouteFrame.h>
Public Member Functions | |
void | areParametersValid () |
called after setting a new route or vclass, for showing moduls More... | |
const RouteMode & | getCurrentRouteMode () const |
get current route mode More... | |
bool | isValidMode () const |
check if current mode is Valid More... | |
bool | isValidVehicleClass () const |
check if current VClass is Valid More... | |
RouteModeSelector (GNERouteFrame *routeFrameParent) | |
FOX-declaration. More... | |
~RouteModeSelector () | |
destructor More... | |
FOX-callbacks | |
Called when the user select another route mode in ComboBox | |
long | onCmdSelectRouteMode (FXObject *, FXSelector, void *) |
long | onCmdSelectVClass (FXObject *, FXSelector, void *) |
Called when the user select another VClass. More... | |
Private Attributes | |
RouteMode | myCurrentRouteMode |
current selected route mode More... | |
GNERouteFrame * | myRouteFrameParent |
pointer to Frame Parent More... | |
FXComboBox * | myRouteModeMatchBox |
comboBox with the list of route modes More... | |
std::vector< std::pair< RouteMode, std::string > > | myRouteModesStrings |
list of Route modes that will be shown in Match Box More... | |
bool | myValidVClass |
flag to check if VClass is Valid More... | |
FXComboBox * | myVClassMatchBox |
comboBox with the list of VClass More... | |
Definition at line 46 of file GNERouteFrame.h.
GNERouteFrame::RouteModeSelector::RouteModeSelector | ( | GNERouteFrame * | routeFrameParent | ) |
FOX-declaration.
constructor
Definition at line 53 of file GNERouteFrame.cpp.
References GUIDesignComboBox, GUIDesignComboBoxNCol, MID_GNE_ROUTEFRAME_ROUTEMODE, MID_GNE_ROUTEFRAME_VCLASS, and SumoVehicleClassStrings.
GNERouteFrame::RouteModeSelector::~RouteModeSelector | ( | ) |
destructor
Definition at line 84 of file GNERouteFrame.cpp.
void GNERouteFrame::RouteModeSelector::areParametersValid | ( | ) |
called after setting a new route or vclass, for showing moduls
Definition at line 106 of file GNERouteFrame.cpp.
References GNERouteFrame::CONSECUTIVE_EDGES, GNEAttributeCarrier::getTagProperties(), GNERouteFrame::INVALID, and SUMO_TAG_ROUTE.
Referenced by GNERouteFrame::show().
const GNERouteFrame::RouteMode & GNERouteFrame::RouteModeSelector::getCurrentRouteMode | ( | ) | const |
get current route mode
Definition at line 88 of file GNERouteFrame.cpp.
bool GNERouteFrame::RouteModeSelector::isValidMode | ( | ) | const |
check if current mode is Valid
Definition at line 94 of file GNERouteFrame.cpp.
References GNERouteFrame::INVALID.
Referenced by GNERouteFrame::addEdgeRoute().
bool GNERouteFrame::RouteModeSelector::isValidVehicleClass | ( | ) | const |
check if current VClass is Valid
Definition at line 100 of file GNERouteFrame.cpp.
Referenced by GNERouteFrame::addEdgeRoute().
long GNERouteFrame::RouteModeSelector::onCmdSelectRouteMode | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 133 of file GNERouteFrame.cpp.
References GNERouteFrame::INVALID, and WRITE_DEBUG.
Referenced by FXDEFMAP().
long GNERouteFrame::RouteModeSelector::onCmdSelectVClass | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user select another VClass.
Definition at line 158 of file GNERouteFrame.cpp.
References SumoVehicleClassStrings, and WRITE_DEBUG.
Referenced by FXDEFMAP().
|
private |
current selected route mode
Definition at line 92 of file GNERouteFrame.h.
|
private |
pointer to Frame Parent
Definition at line 83 of file GNERouteFrame.h.
|
private |
comboBox with the list of route modes
Definition at line 86 of file GNERouteFrame.h.
|
private |
list of Route modes that will be shown in Match Box
Definition at line 98 of file GNERouteFrame.h.
|
private |
flag to check if VClass is Valid
Definition at line 95 of file GNERouteFrame.h.
|
private |
comboBox with the list of VClass
Definition at line 89 of file GNERouteFrame.h.