![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameModuls.h>
Data Structures | |
class | Path |
FOX-declaration. More... | |
Public Member Functions | |
void | abortPathCreation () |
abort path creation More... | |
bool | addEdge (GNEEdge *edge, const bool shiftKeyPressed, const bool controlKeyPressed) |
add edge More... | |
bool | addRoute (GNEDemandElement *route, const bool shiftKeyPressed, const bool controlKeyPressed) |
add route More... | |
bool | addStoppingPlace (GNEAdditional *stoppingPlace, const bool shiftKeyPressed, const bool controlKeyPressed) |
add stoppingPlace More... | |
void | createPath () |
create path More... | |
bool | drawCandidateEdgesWithSpecialColor () const |
draw candidate edges with special color (Only for candidates, special and conflicted) More... | |
void | drawTemporalRoute (const GUIVisualizationSettings &s) const |
draw temporal route More... | |
GNEAdditional * | getFromStoppingPlace (SumoXMLTag expectedTag) const |
get from stoppingPlace More... | |
const std::vector< Path > & | getPath () const |
get path route More... | |
GNEDemandElement * | getRoute () const |
get route More... | |
std::vector< GNEEdge * > | getSelectedEdges () const |
get current selected additionals More... | |
GNEAdditional * | getToStoppingPlace (SumoXMLTag expectedTag) const |
get to stoppingPlace More... | |
SUMOVehicleClass | getVClass () const |
get vClass More... | |
void | hidePathCreatorModul () |
show PathCreator More... | |
PathCreator (GNEFrame *frameParent) | |
default constructor More... | |
void | removeLastElement () |
remove path element More... | |
void | setVClass (SUMOVehicleClass vClass) |
set vClass More... | |
void | showPathCreatorModul (SumoXMLTag tag, const bool firstElement, const bool consecutives) |
show PathCreator for the given tag More... | |
void | updateEdgeColors () |
update edge colors More... | |
~PathCreator () | |
destructor More... | |
FOX-callbacks | |
Called when the user click over button "Finish route creation" | |
long | onCmdCreatePath (FXObject *, FXSelector, void *) |
long | onCmdAbortPathCreation (FXObject *, FXSelector, void *) |
Called when the user click over button "Abort route creation". More... | |
long | onCmdRemoveLastElement (FXObject *, FXSelector, void *) |
Called when the user click over button "Remove las inserted edge". More... | |
long | onCmdShowCandidateEdges (FXObject *, FXSelector, void *) |
Called when the user click over check button "show candidate edges". More... | |
Protected Types | |
enum | Mode { CONSECUTIVE_EDGES = 1 << 0 , NONCONSECUTIVE_EDGES = 1 << 1 , START_EDGE = 1 << 2 , END_EDGE = 1 << 3 , SINGLE_ELEMENT = 1 << 4 , ONLY_FROMTO = 1 << 5 , START_BUSSTOP = 1 << 6 , END_BUSSTOP = 1 << 7 , ROUTE = 1 << 8 , REQUIERE_FIRSTELEMENT = 1 << 9 , SHOW_CANDIDATE_EDGES = 1 << 10 } |
Protected Member Functions | |
void | clearPath () |
clear edges (and restore colors) More... | |
void | recalculatePath () |
recalculate path More... | |
void | setPossibleCandidates (GNEEdge *originEdge, const SUMOVehicleClass vClass) |
set edgereachability (This function will be called recursively) More... | |
void | setSpecialCandidates (GNEEdge *originEdge) |
set special candidates (This function will be called recursively) More... | |
void | updateInfoRouteLabel () |
update InfoRouteLabel More... | |
Protected Attributes | |
FXButton * | myAbortCreationButton |
button for abort route creation More... | |
FXLabel * | myControlLabel |
label for control information More... | |
int | myCreationMode |
current creation mode More... | |
FXButton * | myFinishCreationButton |
button for finish route creation More... | |
GNEFrame * | myFrameParent |
current frame parent More... | |
GNEAdditional * | myFromStoppingPlace |
from additional (usually a busStop) More... | |
FXLabel * | myInfoRouteLabel |
label with route info More... | |
std::vector< Path > | myPath |
vector with current path More... | |
FXButton * | myRemoveLastInsertedElement |
button for removing last inserted element More... | |
GNEDemandElement * | myRoute |
route (usually a busStop) More... | |
std::vector< GNEEdge * > | mySelectedEdges |
vector with selected edges More... | |
FXLabel * | myShiftLabel |
label for shift information More... | |
FXCheckButton * | myShowCandidateEdges |
CheckBox for show candidate edges. More... | |
GNEAdditional * | myToStoppingPlace |
to additional (usually a busStop) More... | |
SUMOVehicleClass | myVClass |
current vClass More... | |
Private Member Functions | |
PathCreator & | operator= (PathCreator *)=delete |
Invalidated assignment operator. More... | |
PathCreator (PathCreator *)=delete | |
Invalidated copy constructor. More... | |
Definition at line 522 of file GNEFrameModuls.h.
|
protected |
Enumerator | |
---|---|
CONSECUTIVE_EDGES | |
NONCONSECUTIVE_EDGES | |
START_EDGE | |
END_EDGE | |
SINGLE_ELEMENT | |
ONLY_FROMTO | |
START_BUSSTOP | |
END_BUSSTOP | |
ROUTE | |
REQUIERE_FIRSTELEMENT | |
SHOW_CANDIDATE_EDGES |
Definition at line 658 of file GNEFrameModuls.h.
GNEFrameModuls::PathCreator::PathCreator | ( | GNEFrame * | frameParent | ) |
default constructor
Definition at line 2046 of file GNEFrameModuls.cpp.
References GUIDesignButton, GUIDesignCheckButton, GUIDesignLabelFrameInformation, GUIDesignLabelFrameThicked, MID_GNE_EDGEPATH_ABORT, MID_GNE_EDGEPATH_FINISH, MID_GNE_EDGEPATH_REMOVELAST, MID_GNE_EDGEPATH_SHOWCANDIDATES, myAbortCreationButton, myControlLabel, myFinishCreationButton, myInfoRouteLabel, myRemoveLastInsertedElement, myShiftLabel, and myShowCandidateEdges.
GNEFrameModuls::PathCreator::~PathCreator | ( | ) |
destructor
Definition at line 2083 of file GNEFrameModuls.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNEFrameModuls::PathCreator::abortPathCreation | ( | ) |
abort path creation
Definition at line 2559 of file GNEFrameModuls.cpp.
Referenced by GNEViewNet::abortOperation(), GNEEdgeRelDataFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), and GNEVehicleFrame::createPath().
bool GNEFrameModuls::PathCreator::addEdge | ( | GNEEdge * | edge, |
const bool | shiftKeyPressed, | ||
const bool | controlKeyPressed | ||
) |
add edge
Definition at line 2231 of file GNEFrameModuls.cpp.
References GNECandidateElement::isConflictedCandidate(), GNECandidateElement::isPossibleCandidate(), GNECandidateElement::isSpecialCandidate(), and WRITE_WARNING.
Referenced by GNEEdgeRelDataFrame::addEdgeRelationData(), GNERouteFrame::addEdgeRoute(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNEVehicleFrame::addVehicle(), and GNEPersonPlanFrame::tagSelected().
bool GNEFrameModuls::PathCreator::addRoute | ( | GNEDemandElement * | route, |
const bool | shiftKeyPressed, | ||
const bool | controlKeyPressed | ||
) |
add route
Definition at line 2391 of file GNEFrameModuls.cpp.
References ROUTE.
Referenced by GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
bool GNEFrameModuls::PathCreator::addStoppingPlace | ( | GNEAdditional * | stoppingPlace, |
const bool | shiftKeyPressed, | ||
const bool | controlKeyPressed | ||
) |
add stoppingPlace
Definition at line 2318 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
|
protected |
clear edges (and restore colors)
Definition at line 2682 of file GNEFrameModuls.cpp.
void GNEFrameModuls::PathCreator::createPath | ( | ) |
create path
Definition at line 2552 of file GNEFrameModuls.cpp.
Referenced by GNEViewNet::hotkeyEnter().
bool GNEFrameModuls::PathCreator::drawCandidateEdgesWithSpecialColor | ( | ) | const |
draw candidate edges with special color (Only for candidates, special and conflicted)
Definition at line 2423 of file GNEFrameModuls.cpp.
Referenced by GNELane::setLaneColor().
void GNEFrameModuls::PathCreator::drawTemporalRoute | ( | const GUIVisualizationSettings & | s | ) | const |
draw temporal route
Definition at line 2479 of file GNEFrameModuls.cpp.
References GUIVisualizationSettings::candidateColorSettings, GUIVisualizationCandidateColorSettings::conflict, GLHelper::drawBoxLines(), GNEGeometry::Lane2laneConnection::exist(), GNELane::getLane2laneConnections(), GNEGeometry::Lane2laneConnection::getLane2laneGeometry(), GNELane::getLaneShape(), GNEGeometry::Geometry::getShape(), GNEFrameModuls::PathCreator::Path::getSubPath(), GLO_MAX, RGBColor::GREY, GNEFrameModuls::PathCreator::Path::isConflictDisconnected(), GNEFrameModuls::PathCreator::Path::isConflictVClass(), RGBColor::ORANGE, GLHelper::setColor(), and GUIVisualizationCandidateColorSettings::special.
Referenced by GNEViewNet::doPaintGL().
GNEAdditional * GNEFrameModuls::PathCreator::getFromStoppingPlace | ( | SumoXMLTag | expectedTag | ) | const |
get from stoppingPlace
Definition at line 2371 of file GNEFrameModuls.cpp.
Referenced by GNERouteHandler::buildPersonPlan().
const std::vector< GNEFrameModuls::PathCreator::Path > & GNEFrameModuls::PathCreator::getPath | ( | ) | const |
get path route
Definition at line 2417 of file GNEFrameModuls.cpp.
Referenced by GNERouteHandler::buildPersonPlan(), GNERouteFrame::createPath(), and GNEVehicleFrame::createPath().
GNEDemandElement * GNEFrameModuls::PathCreator::getRoute | ( | ) | const |
get route
Definition at line 2411 of file GNEFrameModuls.cpp.
Referenced by GNERouteHandler::buildPersonPlan().
std::vector< GNEEdge * > GNEFrameModuls::PathCreator::getSelectedEdges | ( | ) | const |
get current selected additionals
Definition at line 2312 of file GNEFrameModuls.cpp.
Referenced by GNERouteHandler::buildPersonPlan(), GNEEdgeRelDataFrame::createPath(), GNERouteFrame::createPath(), and GNEVehicleFrame::createPath().
GNEAdditional * GNEFrameModuls::PathCreator::getToStoppingPlace | ( | SumoXMLTag | expectedTag | ) | const |
get to stoppingPlace
Definition at line 2381 of file GNEFrameModuls.cpp.
Referenced by GNERouteHandler::buildPersonPlan().
SUMOVehicleClass GNEFrameModuls::PathCreator::getVClass | ( | ) | const |
get vClass
Definition at line 2217 of file GNEFrameModuls.cpp.
Referenced by GNERouteFrame::createPath().
void GNEFrameModuls::PathCreator::hidePathCreatorModul | ( | ) |
show PathCreator
Definition at line 2208 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEPersonPlanFrame::show(), GNEPersonFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().
long GNEFrameModuls::PathCreator::onCmdAbortPathCreation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Abort route creation".
Definition at line 2619 of file GNEFrameModuls.cpp.
Referenced by FXDEFMAP().
long GNEFrameModuls::PathCreator::onCmdCreatePath | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 2611 of file GNEFrameModuls.cpp.
Referenced by FXDEFMAP().
long GNEFrameModuls::PathCreator::onCmdRemoveLastElement | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Remove las inserted edge".
Definition at line 2627 of file GNEFrameModuls.cpp.
Referenced by FXDEFMAP().
long GNEFrameModuls::PathCreator::onCmdShowCandidateEdges | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over check button "show candidate edges".
Definition at line 2635 of file GNEFrameModuls.cpp.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
protected |
recalculate path
Definition at line 2700 of file GNEFrameModuls.cpp.
void GNEFrameModuls::PathCreator::removeLastElement | ( | ) |
remove path element
Definition at line 2581 of file GNEFrameModuls.cpp.
Referenced by GNEViewNet::hotkeyBackSpace().
|
protected |
set edgereachability (This function will be called recursively)
Definition at line 2750 of file GNEFrameModuls.cpp.
|
protected |
set special candidates (This function will be called recursively)
Definition at line 2735 of file GNEFrameModuls.cpp.
References SVC_PEDESTRIAN.
void GNEFrameModuls::PathCreator::setVClass | ( | SUMOVehicleClass | vClass | ) |
set vClass
Definition at line 2223 of file GNEFrameModuls.cpp.
Referenced by GNEPersonFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEPersonFrame::GNEPersonFrame(), GNEPersonFrame::show(), and GNEPersonFrame::tagSelected().
void GNEFrameModuls::PathCreator::showPathCreatorModul | ( | SumoXMLTag | tag, |
const bool | firstElement, | ||
const bool | consecutives | ||
) |
show PathCreator for the given tag
Definition at line 2087 of file GNEFrameModuls.cpp.
References GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_PERSONSTOP_BUSSTOP, GNE_TAG_PERSONSTOP_EDGE, GNE_TAG_PERSONTRIP_BUSSTOP_BUSSTOP, GNE_TAG_PERSONTRIP_BUSSTOP_EDGE, GNE_TAG_PERSONTRIP_EDGE_BUSSTOP, GNE_TAG_PERSONTRIP_EDGE_EDGE, GNE_TAG_RIDE_BUSSTOP_BUSSTOP, GNE_TAG_RIDE_BUSSTOP_EDGE, GNE_TAG_RIDE_EDGE_BUSSTOP, GNE_TAG_RIDE_EDGE_EDGE, GNE_TAG_ROUTE_EMBEDDED, GNE_TAG_VEHICLE_WITHROUTE, GNE_TAG_WALK_BUSSTOP_BUSSTOP, GNE_TAG_WALK_BUSSTOP_EDGE, GNE_TAG_WALK_EDGE_BUSSTOP, GNE_TAG_WALK_EDGE_EDGE, GNE_TAG_WALK_EDGES, GNE_TAG_WALK_ROUTE, ROUTE, SUMO_TAG_EDGEREL, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_TRIP, and SUMO_TAG_VEHICLE.
Referenced by GNEPersonFrame::demandElementSelected(), GNEGenericDataFrame::show(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), and GNEVehicleFrame::tagSelected().
void GNEFrameModuls::PathCreator::updateEdgeColors | ( | ) |
update edge colors
Definition at line 2429 of file GNEFrameModuls.cpp.
|
protected |
|
protected |
button for abort route creation
Definition at line 718 of file GNEFrameModuls.h.
Referenced by PathCreator().
|
protected |
label for control information
Definition at line 730 of file GNEFrameModuls.h.
Referenced by PathCreator().
|
protected |
current creation mode
Definition at line 694 of file GNEFrameModuls.h.
|
protected |
button for finish route creation
Definition at line 715 of file GNEFrameModuls.h.
Referenced by PathCreator().
|
protected |
current frame parent
Definition at line 688 of file GNEFrameModuls.h.
|
protected |
from additional (usually a busStop)
Definition at line 700 of file GNEFrameModuls.h.
|
protected |
|
protected |
vector with current path
Definition at line 709 of file GNEFrameModuls.h.
|
protected |
button for removing last inserted element
Definition at line 721 of file GNEFrameModuls.h.
Referenced by PathCreator().
|
protected |
route (usually a busStop)
Definition at line 706 of file GNEFrameModuls.h.
|
protected |
vector with selected edges
Definition at line 697 of file GNEFrameModuls.h.
|
protected |
label for shift information
Definition at line 727 of file GNEFrameModuls.h.
Referenced by PathCreator().
|
protected |
CheckBox for show candidate edges.
Definition at line 724 of file GNEFrameModuls.h.
Referenced by PathCreator().
|
protected |
to additional (usually a busStop)
Definition at line 703 of file GNEFrameModuls.h.
|
protected |
current vClass
Definition at line 691 of file GNEFrameModuls.h.