Eclipse SUMO - Simulation of Urban MObility
GNERouteFrame::RouteModeSelector Class Reference

#include <GNERouteFrame.h>

Inheritance diagram for GNERouteFrame::RouteModeSelector:
[legend]
Collaboration diagram for GNERouteFrame::RouteModeSelector:
[legend]

Public Member Functions

void areParametersValid ()
 called after setting a new route or vclass, for showing moduls More...
 
const RouteModegetCurrentRouteMode () 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...
 
GNERouteFramemyRouteFrameParent
 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...
 

Detailed Description

Definition at line 46 of file GNERouteFrame.h.

Constructor & Destructor Documentation

◆ RouteModeSelector()

GNERouteFrame::RouteModeSelector::RouteModeSelector ( GNERouteFrame routeFrameParent)

◆ ~RouteModeSelector()

GNERouteFrame::RouteModeSelector::~RouteModeSelector ( )

destructor

Definition at line 84 of file GNERouteFrame.cpp.

Member Function Documentation

◆ areParametersValid()

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().

Here is the caller graph for this function:

◆ getCurrentRouteMode()

const GNERouteFrame::RouteMode & GNERouteFrame::RouteModeSelector::getCurrentRouteMode ( ) const

get current route mode

Definition at line 88 of file GNERouteFrame.cpp.

◆ isValidMode()

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().

Here is the caller graph for this function:

◆ isValidVehicleClass()

bool GNERouteFrame::RouteModeSelector::isValidVehicleClass ( ) const

check if current VClass is Valid

Definition at line 100 of file GNERouteFrame.cpp.

Referenced by GNERouteFrame::addEdgeRoute().

Here is the caller graph for this function:

◆ onCmdSelectRouteMode()

long GNERouteFrame::RouteModeSelector::onCmdSelectRouteMode ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 133 of file GNERouteFrame.cpp.

References GNERouteFrame::INVALID, and WRITE_DEBUG.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectVClass()

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().

Here is the caller graph for this function:

Field Documentation

◆ myCurrentRouteMode

RouteMode GNERouteFrame::RouteModeSelector::myCurrentRouteMode
private

current selected route mode

Definition at line 92 of file GNERouteFrame.h.

◆ myRouteFrameParent

GNERouteFrame* GNERouteFrame::RouteModeSelector::myRouteFrameParent
private

pointer to Frame Parent

Definition at line 83 of file GNERouteFrame.h.

◆ myRouteModeMatchBox

FXComboBox* GNERouteFrame::RouteModeSelector::myRouteModeMatchBox
private

comboBox with the list of route modes

Definition at line 86 of file GNERouteFrame.h.

◆ myRouteModesStrings

std::vector<std::pair<RouteMode, std::string> > GNERouteFrame::RouteModeSelector::myRouteModesStrings
private

list of Route modes that will be shown in Match Box

Definition at line 98 of file GNERouteFrame.h.

◆ myValidVClass

bool GNERouteFrame::RouteModeSelector::myValidVClass
private

flag to check if VClass is Valid

Definition at line 95 of file GNERouteFrame.h.

◆ myVClassMatchBox

FXComboBox* GNERouteFrame::RouteModeSelector::myVClassMatchBox
private

comboBox with the list of VClass

Definition at line 89 of file GNERouteFrame.h.


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