![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNERouteFrame.h>
Public Member Functions | |
const RouteMode & | getCurrentRouteMode () const |
get current route mode More... | |
SUMOVehicleClass | getCurrentVehicleClass () const |
get current selected VClass More... | |
bool | isValidVehicleClass () const |
check if current VClass is Valid More... | |
RouteModeSelector (GNERouteFrame *routeFrameParent) | |
FOX-declaration. More... | |
void | setCurrentRouteMode (RouteMode routemode) |
set current route mode type manually 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... | |
SUMOVehicleClass | myCurrentVehicleClass |
current selected VClass 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 75 of file GNERouteFrame.cpp.
References GUIDesignComboBox, GUIDesignComboBoxNCol, MID_GNE_ROUTEFRAME_ROUTEMODE, MID_GNE_ROUTEFRAME_VCLASS, and SumoVehicleClassStrings.
GNERouteFrame::RouteModeSelector::~RouteModeSelector | ( | ) |
destructor
Definition at line 107 of file GNERouteFrame.cpp.
const GNERouteFrame::RouteMode & GNERouteFrame::RouteModeSelector::getCurrentRouteMode | ( | ) | const |
get current route mode
Definition at line 111 of file GNERouteFrame.cpp.
Referenced by GNERouteFrame::drawTemporalRoute(), GNERouteFrame::handleEdgeClick(), GNERouteFrame::hotkeyBackSpace(), GNERouteFrame::hotkeyEnter(), GNERouteFrame::hotkeyEsc(), and GNERouteFrame::show().
SUMOVehicleClass GNERouteFrame::RouteModeSelector::getCurrentVehicleClass | ( | ) | const |
get current selected VClass
Definition at line 117 of file GNERouteFrame.cpp.
bool GNERouteFrame::RouteModeSelector::isValidVehicleClass | ( | ) | const |
check if current VClass is Valid
Definition at line 123 of file GNERouteFrame.cpp.
Referenced by GNERouteFrame::handleEdgeClick(), GNERouteFrame::hotkeyBackSpace(), GNERouteFrame::hotkeyEnter(), and GNERouteFrame::hotkeyEsc().
long GNERouteFrame::RouteModeSelector::onCmdSelectRouteMode | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 162 of file GNERouteFrame.cpp.
References GNEAttributeCarrier::getTagProperties(), GNERouteFrame::ROUTEMODE_CONSECUTIVE_EDGES, GNERouteFrame::ROUTEMODE_INVALID, GNERouteFrame::ROUTEMODE_NONCONSECUTIVE_EDGES, SUMO_TAG_ROUTE, SVC_IGNORING, and WRITE_DEBUG.
long GNERouteFrame::RouteModeSelector::onCmdSelectVClass | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user select another VClass.
Definition at line 203 of file GNERouteFrame.cpp.
References GNEAttributeCarrier::getTagProperties(), GNERouteFrame::ROUTEMODE_CONSECUTIVE_EDGES, GNERouteFrame::ROUTEMODE_NONCONSECUTIVE_EDGES, SUMO_TAG_ROUTE, SumoVehicleClassStrings, SVC_IGNORING, and WRITE_DEBUG.
void GNERouteFrame::RouteModeSelector::setCurrentRouteMode | ( | RouteMode | routemode | ) |
set current route mode type manually
Definition at line 129 of file GNERouteFrame.cpp.
References GNEAttributeCarrier::getTagProperties(), GNERouteFrame::ROUTEMODE_CONSECUTIVE_EDGES, GNERouteFrame::ROUTEMODE_INVALID, GNERouteFrame::ROUTEMODE_NONCONSECUTIVE_EDGES, SUMO_TAG_ROUTE, and SVC_IGNORING.
Referenced by GNERouteFrame::GNERouteFrame(), and GNERouteFrame::show().
|
private |
current selected route mode
Definition at line 92 of file GNERouteFrame.h.
|
private |
current selected VClass
Definition at line 95 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 101 of file GNERouteFrame.h.
|
private |
flag to check if VClass is Valid
Definition at line 98 of file GNERouteFrame.h.
|
private |
comboBox with the list of VClass
Definition at line 89 of file GNERouteFrame.h.