![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNERouteFrame.h>
Public Member Functions | |
bool | addEdge (GNEEdge *edge) |
add edge to current route (note: edge must be included in set of candidate edges More... | |
void | clearEdges () |
clear edges (and restore colors) More... | |
ConsecutiveEdges (GNERouteFrame *routeFrameParent) | |
FOX-declaration. More... | |
const std::vector< GNEEdge * > & | getRouteEdges () const |
get temporal route More... | |
void | hideConsecutiveEdgesModul () |
hide ConsecutiveEdges modul More... | |
void | refreshEdgeCandidates () |
refresh edge candidates More... | |
void | showConsecutiveEdgesModul () |
show ConsecutiveEdges modul More... | |
~ConsecutiveEdges () | |
destructor More... | |
FOX-callbacks | |
Called when the user press create route button | |
long | onCmdCreateRoute (FXObject *, FXSelector, void *) |
long | onCmdAbortRoute (FXObject *, FXSelector, void *) |
Called when the user press create route button. More... | |
long | onCmdRemoveLastRouteEdge (FXObject *, FXSelector, void *) |
Called when the user click over button "Remove las inserted edge". More... | |
Protected Member Functions | |
void | updateInfoRouteLabel () |
update InfoRouteLabel More... | |
Private Attributes | |
FXButton * | myAbortCreationButton |
@bief FXButton for abort creating route More... | |
FXButton * | myCreateRouteButton |
FXButton for create routes. More... | |
FXLabel * | myInfoRouteLabel |
label with route info More... | |
FXButton * | myRemoveLastInsertedEdge |
button for removing last inserted edge More... | |
std::vector< GNEEdge * > | myRouteEdges |
vector with current route edges More... | |
GNERouteFrame * | myRouteFrameParent |
pointer to Frame Parent More... | |
Definition at line 108 of file GNERouteFrame.h.
GNERouteFrame::ConsecutiveEdges::ConsecutiveEdges | ( | GNERouteFrame * | routeFrameParent | ) |
FOX-declaration.
constructor
Definition at line 250 of file GNERouteFrame.cpp.
References GUIDesignButton, GUIDesignLabelFrameInformation, MID_GNE_EDGEPATH_ABORT, MID_GNE_EDGEPATH_FINISH, MID_GNE_EDGEPATH_REMOVELAST, myAbortCreationButton, myCreateRouteButton, myInfoRouteLabel, myRemoveLastInsertedEdge, and GNERouteFrame::show().
GNERouteFrame::ConsecutiveEdges::~ConsecutiveEdges | ( | ) |
destructor
Definition at line 269 of file GNERouteFrame.cpp.
bool GNERouteFrame::ConsecutiveEdges::addEdge | ( | GNEEdge * | edge | ) |
add edge to current route (note: edge must be included in set of candidate edges
Definition at line 291 of file GNERouteFrame.cpp.
References GNEDemandElement::getRouteCalculatorInstance().
Referenced by GNERouteFrame::handleEdgeClick().
void GNERouteFrame::ConsecutiveEdges::clearEdges | ( | ) |
clear edges (and restore colors)
Definition at line 359 of file GNERouteFrame.cpp.
const std::vector< GNEEdge * > & GNERouteFrame::ConsecutiveEdges::getRouteEdges | ( | ) | const |
get temporal route
Definition at line 378 of file GNERouteFrame.cpp.
Referenced by GNERouteFrame::drawTemporalRoute().
void GNERouteFrame::ConsecutiveEdges::hideConsecutiveEdgesModul | ( | ) |
hide ConsecutiveEdges modul
Definition at line 282 of file GNERouteFrame.cpp.
References GNERouteFrame::hide().
long GNERouteFrame::ConsecutiveEdges::onCmdAbortRoute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user press create route button.
Definition at line 419 of file GNERouteFrame.cpp.
Referenced by FXDEFMAP(), and GNERouteFrame::hotkeyEsc().
long GNERouteFrame::ConsecutiveEdges::onCmdCreateRoute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 384 of file GNERouteFrame.cpp.
References GNERouteHandler::RouteParameter::color, GNERouteHandler::RouteParameter::edges, GNEAttributeCarrier::getTagStr(), GNERouteHandler::RouteParameter::routeID, SUMO_ATTR_COLOR, SUMO_ATTR_ID, SUMO_TAG_ROUTE, and GNERouteHandler::RouteParameter::vClass.
Referenced by FXDEFMAP(), and GNERouteFrame::hotkeyEnter().
long GNERouteFrame::ConsecutiveEdges::onCmdRemoveLastRouteEdge | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Remove las inserted edge".
Definition at line 440 of file GNERouteFrame.cpp.
Referenced by FXDEFMAP(), and GNERouteFrame::hotkeyBackSpace().
void GNERouteFrame::ConsecutiveEdges::refreshEdgeCandidates | ( | ) |
refresh edge candidates
Definition at line 332 of file GNERouteFrame.cpp.
References GNEDemandElement::getRouteCalculatorInstance().
void GNERouteFrame::ConsecutiveEdges::showConsecutiveEdgesModul | ( | ) |
show ConsecutiveEdges modul
Definition at line 273 of file GNERouteFrame.cpp.
References GNERouteFrame::show().
|
protected |
|
private |
@bief FXButton for abort creating route
Definition at line 166 of file GNERouteFrame.h.
Referenced by ConsecutiveEdges().
|
private |
FXButton for create routes.
Definition at line 163 of file GNERouteFrame.h.
Referenced by ConsecutiveEdges().
|
private |
label with route info
Definition at line 160 of file GNERouteFrame.h.
Referenced by ConsecutiveEdges().
|
private |
button for removing last inserted edge
Definition at line 169 of file GNERouteFrame.h.
Referenced by ConsecutiveEdges().
|
private |
vector with current route edges
Definition at line 172 of file GNERouteFrame.h.
|
private |
pointer to Frame Parent
Definition at line 157 of file GNERouteFrame.h.