![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameModuls.h>
Public Types | |
enum | EdgePathCreatorModes { GNE_EDGEPATHCREATOR_CONSECUTIVE = 1 << 0, GNE_EDGEPATHCREATOR_FROM_TO_VIA = 1 << 1, GNE_EDGEPATHCREATOR_FROM_BUSSTOP = 1 << 2, GNE_EDGEPATHCREATOR_TO_BUSSTOP = 1 << 3 } |
FOX-declaration. More... | |
Public Member Functions | |
void | abortEdgePathCreation () |
abort edge path creation More... | |
bool | addBusStop (GNEAdditional *busStop) |
add busStop to route More... | |
bool | addEdge (GNEEdge *edge) |
add edge to route More... | |
void | clearEdges () |
clear edges (and restore colors) More... | |
void | drawTemporalRoute () const |
draw temporal route More... | |
EdgePathCreator (GNEFrame *frameParent, int edgePathCreatorModes) | |
default constructor More... | |
void | edgePathCreatorName (const std::string &name) |
update EdgePathCreator name More... | |
void | finishEdgePathCreation () |
finish edge path creation More... | |
GNEAdditional * | getClickedBusStop () const |
get current clicked edges More... | |
std::vector< GNEEdge * > | getClickedEdges () const |
get current clicked edges More... | |
void | hideEdgePathCreator () |
show EdgePathCreator More... | |
void | removeLastInsertedElement () |
remove last added element (either a BusStop or an edge) More... | |
void | setEdgePathCreatorModes (int edgePathCreatorModes) |
set EdgePathCreatorModes More... | |
void | setVClass (SUMOVehicleClass vClass) |
set SUMOVehicleClass More... | |
void | showEdgePathCreator () |
show EdgePathCreator More... | |
~EdgePathCreator () | |
destructor More... | |
FOX-callbacks | |
Called when the user click over button "Abort route creation" | |
long | onCmdAbortRouteCreation (FXObject *, FXSelector, void *) |
long | onCmdFinishRouteCreation (FXObject *, FXSelector, void *) |
Called when the user click over button "Finish route creation". More... | |
long | onCmdRemoveLastInsertedElement (FXObject *, FXSelector, void *) |
Called when the user click over button "Remove las inserted edge/busStop". More... | |
Private Member Functions | |
void | restoreEdgeColor (const GNEEdge *edge) |
restore colors of given edge More... | |
Private Attributes | |
FXButton * | myAbortCreationButton |
button for abort route creation More... | |
std::vector< GNEEdge * > | myClickedEdges |
current clicked edges More... | |
int | myEdgePathCreatorModes |
current edge path creator modes More... | |
FXButton * | myFinishCreationButton |
button for finish route creation More... | |
GNEFrame * | myFrameParent |
pointer to GNEFrame Parent More... | |
FXButton * | myRemoveLastInsertedEdge |
button for removing last inserted edge More... | |
GNEAdditional * | mySelectedBusStop |
pointer to selected busStop More... | |
std::vector< GNEEdge * > | myTemporalRoute |
vector with temporal route edges More... | |
SUMOVehicleClass | myVClass |
VClass used for this trip. More... | |
Definition at line 174 of file GNEFrameModuls.h.
FOX-declaration.
list of the edge path creator modes
Enumerator | |
---|---|
GNE_EDGEPATHCREATOR_CONSECUTIVE | |
GNE_EDGEPATHCREATOR_FROM_TO_VIA | |
GNE_EDGEPATHCREATOR_FROM_BUSSTOP | |
GNE_EDGEPATHCREATOR_TO_BUSSTOP |
Definition at line 181 of file GNEFrameModuls.h.
GNEFrameModuls::EdgePathCreator::EdgePathCreator | ( | GNEFrame * | frameParent, |
int | edgePathCreatorModes | ||
) |
default constructor
Definition at line 519 of file GNEFrameModuls.cpp.
References GUIDesignButton, MID_GNE_EDGEPATH_ABORT, MID_GNE_EDGEPATH_FINISH, MID_GNE_EDGEPATH_REMOVELAST, myAbortCreationButton, myFinishCreationButton, and myRemoveLastInsertedEdge.
GNEFrameModuls::EdgePathCreator::~EdgePathCreator | ( | ) |
destructor
Definition at line 540 of file GNEFrameModuls.cpp.
void GNEFrameModuls::EdgePathCreator::abortEdgePathCreation | ( | ) |
abort edge path creation
Definition at line 751 of file GNEFrameModuls.cpp.
Referenced by GNEViewNet::abortOperation().
bool GNEFrameModuls::EdgePathCreator::addBusStop | ( | GNEAdditional * | busStop | ) |
add busStop to route
Definition at line 669 of file GNEFrameModuls.cpp.
References GNEAdditional::setSpecialColor().
Referenced by GNEPersonFrame::addPerson().
bool GNEFrameModuls::EdgePathCreator::addEdge | ( | GNEEdge * | edge | ) |
add edge to route
Definition at line 605 of file GNEFrameModuls.cpp.
References GNEDemandElement::RouteCalculator::calculateDijkstraRoute(), NBEdge::getLanes(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), GNEDemandElement::getRouteCalculatorInstance(), and WRITE_DEBUG.
Referenced by GNEPersonFrame::addPerson(), and GNEVehicleFrame::addVehicle().
void GNEFrameModuls::EdgePathCreator::clearEdges | ( | ) |
clear edges (and restore colors)
Definition at line 680 of file GNEFrameModuls.cpp.
void GNEFrameModuls::EdgePathCreator::drawTemporalRoute | ( | ) | const |
draw temporal route
Definition at line 699 of file GNEFrameModuls.cpp.
References GLHelper::drawLine(), GLO_MAX, RGBColor::ORANGE, and GLHelper::setColor().
Referenced by GNEViewNet::doPaintGL().
void GNEFrameModuls::EdgePathCreator::edgePathCreatorName | ( | const std::string & | name | ) |
update EdgePathCreator name
Definition at line 544 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), and GNEPersonFrame::tagSelected().
void GNEFrameModuls::EdgePathCreator::finishEdgePathCreation | ( | ) |
finish edge path creation
Definition at line 759 of file GNEFrameModuls.cpp.
Referenced by GNEViewNet::hotkeyEnter().
GNEAdditional * GNEFrameModuls::EdgePathCreator::getClickedBusStop | ( | ) | const |
get current clicked edges
Definition at line 599 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::edgePathCreated().
std::vector< GNEEdge * > GNEFrameModuls::EdgePathCreator::getClickedEdges | ( | ) | const |
get current clicked edges
Definition at line 593 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::edgePathCreated(), and GNEVehicleFrame::edgePathCreated().
void GNEFrameModuls::EdgePathCreator::hideEdgePathCreator | ( | ) |
show EdgePathCreator
Definition at line 566 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEPersonFrame::tagSelected(), and GNEVehicleFrame::tagSelected().
long GNEFrameModuls::EdgePathCreator::onCmdAbortRouteCreation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 775 of file GNEFrameModuls.cpp.
Referenced by FXDEFMAP().
long GNEFrameModuls::EdgePathCreator::onCmdFinishRouteCreation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Finish route creation".
Definition at line 787 of file GNEFrameModuls.cpp.
References SUMO_TAG_BUS_STOP, toString(), and WRITE_WARNING.
Referenced by FXDEFMAP().
long GNEFrameModuls::EdgePathCreator::onCmdRemoveLastInsertedElement | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Remove las inserted edge/busStop".
Definition at line 811 of file GNEFrameModuls.cpp.
References GNEDemandElement::RouteCalculator::calculateDijkstraRoute(), and GNEDemandElement::getRouteCalculatorInstance().
Referenced by FXDEFMAP().
void GNEFrameModuls::EdgePathCreator::removeLastInsertedElement | ( | ) |
remove last added element (either a BusStop or an edge)
Definition at line 767 of file GNEFrameModuls.cpp.
Referenced by GNEViewNet::hotkeyBackSpace().
|
private |
restore colors of given edge
Definition at line 832 of file GNEFrameModuls.cpp.
References GNEEdge::getLanes().
void GNEFrameModuls::EdgePathCreator::setEdgePathCreatorModes | ( | int | edgePathCreatorModes | ) |
set EdgePathCreatorModes
Definition at line 587 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected().
void GNEFrameModuls::EdgePathCreator::setVClass | ( | SUMOVehicleClass | vClass | ) |
set SUMOVehicleClass
Definition at line 581 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEPersonFrame::GNEPersonFrame(), GNEPersonFrame::show(), and GNEPersonFrame::tagSelected().
void GNEFrameModuls::EdgePathCreator::showEdgePathCreator | ( | ) |
show EdgePathCreator
Definition at line 555 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEPersonFrame::tagSelected(), and GNEVehicleFrame::tagSelected().
|
private |
button for abort route creation
Definition at line 259 of file GNEFrameModuls.h.
Referenced by EdgePathCreator().
|
private |
current clicked edges
Definition at line 268 of file GNEFrameModuls.h.
|
private |
current edge path creator modes
Definition at line 277 of file GNEFrameModuls.h.
|
private |
button for finish route creation
Definition at line 256 of file GNEFrameModuls.h.
Referenced by EdgePathCreator().
|
private |
pointer to GNEFrame Parent
Definition at line 253 of file GNEFrameModuls.h.
|
private |
button for removing last inserted edge
Definition at line 262 of file GNEFrameModuls.h.
Referenced by EdgePathCreator().
|
private |
pointer to selected busStop
Definition at line 271 of file GNEFrameModuls.h.
|
private |
vector with temporal route edges
Definition at line 274 of file GNEFrameModuls.h.
|
private |
VClass used for this trip.
Definition at line 265 of file GNEFrameModuls.h.