![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEPathCreator.h>
Data Structures | |
| class | Path |
| FOX-declaration. More... | |
Public Types | |
| enum | Options { NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , EXTENSIBLE = 1 << 2 , SAVE = 1 << 3 , LOAD = 1 << 4 } |
| GroupBoxModule options. More... | |
Public Member Functions | |
| void | abortPathCreation () |
| abort path creation More... | |
| bool | addEdge (GNEEdge *edge, const bool shiftKeyPressed, const bool controlKeyPressed) |
| add edge More... | |
| bool | addJunction (GNEJunction *junction, const bool shiftKeyPressed, const bool controlKeyPressed) |
| add junction 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 | clearEdgeColors () |
| clear edge colors More... | |
| void | clearJunctionColors () |
| clear junction colors More... | |
| bool | createPath (const bool useLastRoute) |
| 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... | |
| FXVerticalFrame * | getCollapsableFrame () |
| get collapsable frame (used by all elements that will be collapsed if button is toggled) More... | |
| const std::vector< Path > & | getPath () const |
| get path route More... | |
| GNEDemandElement * | getRoute () const |
| get route More... | |
| const std::vector< GNEEdge * > & | getSelectedEdges () const |
| get current selected edges More... | |
| const std::vector< GNEJunction * > & | getSelectedJunctions () const |
| get current selected junctions More... | |
| GNEAdditional * | getToStoppingPlace (SumoXMLTag expectedTag) const |
| get to stoppingPlace More... | |
| SUMOVehicleClass | getVClass () const |
| get vClass More... | |
| GNEPathCreator (GNEFrame *frameParent) | |
| default constructor More... | |
| void | hidePathCreatorModule () |
| show GNEPathCreator More... | |
| long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
| collapse GroupBoxModule More... | |
| long | onCmdExtendButton (FXObject *, FXSelector, void *) |
| extends GroupBoxModule More... | |
| long | onCmdLoadButton (FXObject *, FXSelector, void *) |
| load contents More... | |
| long | onCmdResetButton (FXObject *, FXSelector, void *) |
| reset GroupBoxModule More... | |
| long | onCmdSaveButton (FXObject *, FXSelector, void *) |
| save contents More... | |
| long | onPaint (FXObject *, FXSelector, void *) |
| draw MFXGroupBoxModule More... | |
| long | onUpdResetButton (FXObject *, FXSelector, void *) |
| update reset GroupBoxModule More... | |
| void | removeLastElement () |
| remove path element More... | |
| void | setText (const std::string &text) |
| set text More... | |
| void | setVClass (SUMOVehicleClass vClass) |
| set vClass More... | |
| void | showPathCreatorModule (SumoXMLTag element, const bool firstElement, const bool consecutives) |
| show GNEPathCreator for the given tag More... | |
| void | updateEdgeColors () |
| update edge colors More... | |
| void | updateJunctionColors () |
| update junction colors More... | |
| ~GNEPathCreator () | |
| destructor More... | |
FOX-callbacks | |
Called when the user click over button "Finish route creation" | |
| long | onCmdCreatePath (FXObject *, FXSelector, void *) |
| long | onCmdUseLastRoute (FXObject *, FXSelector, void *) |
| Called when the user click over button "Use last route". More... | |
| long | onUpdUseLastRoute (FXObject *, FXSelector, void *) |
| Called when update button "Use last route". More... | |
| 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 , START_JUNCTION = 1 << 4 , END_JUNCTION = 1 << 5 , STOP = 1 << 6 , ONLY_FROMTO = 1 << 7 , END_BUSSTOP = 1 << 8 , END_CONTAINERSTOP = 1 << 9 , ROUTE = 1 << 10 , REQUIRE_FIRSTELEMENT = 1 << 11 , SHOW_CANDIDATE_EDGES = 1 << 12 , SHOW_CANDIDATE_JUNCTIONS = 1 << 13 } |
Protected Member Functions | |
| void | clearPath () |
| clear edges (and restore colors) More... | |
| virtual bool | loadContents () const |
| load contents (can be reimplemented in children) More... | |
| void | recalculatePath () |
| recalculate path More... | |
| virtual bool | saveContents () const |
| save contents (can be reimplemented in children) 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 | toggleSaveButton (const bool value) |
| enable or disable save buttons More... | |
| void | updateInfoRouteLabel () |
| update InfoRouteLabel More... | |
Protected Attributes | |
| FXButton * | myAbortCreationButton |
| button for abort route creation More... | |
| FXLabel * | myBackSpaceLabel |
| label for backSpace information 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... | |
| 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... | |
| std::vector< GNEJunction * > | mySelectedJunctions |
| vector with selected junctions More... | |
| FXLabel * | myShiftLabel |
| label for shift information More... | |
| FXCheckButton * | myShowCandidateEdges |
| CheckBox for show candidate edges. More... | |
| GNEAdditional * | myToStoppingPlace |
| to additional (usually a busStop) More... | |
| FXButton * | myUseLastRoute |
| button for use last inserted route More... | |
| SUMOVehicleClass | myVClass |
| current vClass More... | |
Private Member Functions | |
| GNEPathCreator (GNEPathCreator *)=delete | |
| Invalidated copy constructor. More... | |
| GNEPathCreator & | operator= (GNEPathCreator *)=delete |
| Invalidated assignment operator. More... | |
Private Attributes | |
| FXVerticalFrame * | myCollapsableFrame = nullptr |
| vertical collapsable frame More... | |
| FXButton * | myCollapseButton = nullptr |
| button for collapse elements More... | |
| bool | myCollapsed |
| flag to check if this groupbox is collapsed More... | |
| FXButton * | myExtendButton = nullptr |
| button for extend elements More... | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable MFXGroupBoxModule More... | |
| FXButton * | myLoadButton = nullptr |
| button for load elements More... | |
| const int | myOptions |
| GroupBoxModule options. More... | |
| FXButton * | myResetWidthButton = nullptr |
| button for reset frame width More... | |
| FXButton * | mySaveButton = nullptr |
| button for save elements More... | |
Definition at line 35 of file GNEPathCreator.h.
|
protected |
Definition at line 192 of file GNEPathCreator.h.
|
inherited |
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| EXTENSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 37 of file MFXGroupBoxModule.h.
| GNEPathCreator::GNEPathCreator | ( | GNEFrame * | frameParent | ) |
default constructor
Definition at line 144 of file GNEPathCreator.cpp.
References MFXGroupBoxModule::getCollapsableFrame(), GUIIconSubSys::getIcon(), GUIDesignButton, GUIDesignCheckButton, GUIDesignLabelFrameInformation, GUIDesignLabelFrameThicked, MID_GNE_PATHCREATOR_ABORT, MID_GNE_PATHCREATOR_FINISH, MID_GNE_PATHCREATOR_REMOVELAST, MID_GNE_PATHCREATOR_SHOWCANDIDATES, MID_GNE_PATHCREATOR_USELASTROUTE, myAbortCreationButton, myBackSpaceLabel, myControlLabel, myFinishCreationButton, myInfoRouteLabel, myRemoveLastInsertedElement, myShiftLabel, myShowCandidateEdges, myUseLastRoute, ROUTE, and TL.
| GNEPathCreator::~GNEPathCreator | ( | ) |
destructor
Definition at line 183 of file GNEPathCreator.cpp.
|
privatedelete |
Invalidated copy constructor.
| void GNEPathCreator::abortPathCreation | ( | ) |
abort path creation
Definition at line 813 of file GNEPathCreator.cpp.
References clearPath(), GNEApplicationWindow::enableUndoRedo(), GNEViewParent::getGNEAppWindows(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, myRoute, mySelectedEdges, mySelectedJunctions, myToStoppingPlace, updateEdgeColors(), updateInfoRouteLabel(), updateJunctionColors(), and GNEViewNet::updateViewNet().
Referenced by GNEViewNet::abortOperation(), GNEEdgeRelDataFrame::createPath(), GNEContainerFrame::createPath(), GNEContainerPlanFrame::createPath(), GNEPersonFrame::createPath(), GNEPersonPlanFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), onCmdAbortPathCreation(), and showPathCreatorModule().
| bool GNEPathCreator::addEdge | ( | GNEEdge * | edge, |
| const bool | shiftKeyPressed, | ||
| const bool | controlKeyPressed | ||
| ) |
add edge
Definition at line 411 of file GNEPathCreator.cpp.
References createPath(), GNEApplicationWindow::disableUndoRedo(), END_EDGE, GNEViewParent::getGNEAppWindows(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GNECandidateElement::isConflictedCandidate(), GNECandidateElement::isPossibleCandidate(), GNECandidateElement::isSpecialCandidate(), myAbortCreationButton, myCreationMode, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, mySelectedEdges, myShowCandidateEdges, recalculatePath(), START_EDGE, STOP, TL, updateEdgeColors(), updateInfoRouteLabel(), and WRITE_WARNING.
Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEEdgeRelDataFrame::addEdgeRelationData(), GNERouteFrame::addEdgeRoute(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNEVehicleFrame::addVehicle(), GNEContainerPlanFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().
| bool GNEPathCreator::addJunction | ( | GNEJunction * | junction, |
| const bool | shiftKeyPressed, | ||
| const bool | controlKeyPressed | ||
| ) |
add junction
Definition at line 364 of file GNEPathCreator.cpp.
References GNEApplicationWindow::disableUndoRedo(), END_JUNCTION, GNEViewParent::getGNEAppWindows(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myCreationMode, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, mySelectedJunctions, recalculatePath(), START_JUNCTION, TL, updateInfoRouteLabel(), updateJunctionColors(), and WRITE_WARNING.
Referenced by GNEContainerFrame::addContainer(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlanElement(), GNEVehicleFrame::addVehicle(), and GNEPersonPlanFrame::tagSelected().
| bool GNEPathCreator::addRoute | ( | GNEDemandElement * | route, |
| const bool | shiftKeyPressed, | ||
| const bool | controlKeyPressed | ||
| ) |
add route
Definition at line 589 of file GNEPathCreator.cpp.
References createPath(), myCreationMode, myRoute, recalculatePath(), ROUTE, updateEdgeColors(), and updateInfoRouteLabel().
Referenced by GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
| bool GNEPathCreator::addStoppingPlace | ( | GNEAdditional * | stoppingPlace, |
| const bool | shiftKeyPressed, | ||
| const bool | controlKeyPressed | ||
| ) |
add stoppingPlace
Definition at line 515 of file GNEPathCreator.cpp.
References createPath(), GNEApplicationWindow::disableUndoRedo(), END_BUSSTOP, END_CONTAINERSTOP, GNEViewParent::getGNEAppWindows(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myCreationMode, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, mySelectedEdges, myToStoppingPlace, recalculatePath(), START_EDGE, STOP, SUMO_TAG_BUS_STOP, SUMO_TAG_CONTAINER_STOP, TL, updateEdgeColors(), updateInfoRouteLabel(), and WRITE_WARNING.
Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
| void GNEPathCreator::clearEdgeColors | ( | ) |
clear edge colors
Definition at line 713 of file GNEPathCreator.cpp.
References GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEViewNet::getNet(), GNEFrame::getViewNet(), and myFrameParent.
Referenced by clearPath(), GNEVehicleFrame::demandElementSelected(), and updateEdgeColors().
| void GNEPathCreator::clearJunctionColors | ( | ) |
clear junction colors
Definition at line 704 of file GNEPathCreator.cpp.
References GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getJunctions(), GNEViewNet::getNet(), GNEFrame::getViewNet(), and myFrameParent.
Referenced by clearPath(), GNEVehicleFrame::demandElementSelected(), and updateJunctionColors().
|
protected |
clear edges (and restore colors)
reset flags
Definition at line 954 of file GNEPathCreator.cpp.
References clearEdgeColors(), clearJunctionColors(), myPath, myRoute, mySelectedEdges, mySelectedJunctions, myToStoppingPlace, and updateInfoRouteLabel().
Referenced by abortPathCreation(), and hidePathCreatorModule().
| bool GNEPathCreator::createPath | ( | const bool | useLastRoute | ) |
create path
Definition at line 806 of file GNEPathCreator.cpp.
References GNEFrame::createPath(), and myFrameParent.
Referenced by addEdge(), addRoute(), addStoppingPlace(), GNEViewNet::hotkeyEnter(), onCmdCreatePath(), and onCmdUseLastRoute().
| bool GNEPathCreator::drawCandidateEdgesWithSpecialColor | ( | ) | const |
draw candidate edges with special color (Only for candidates, special and conflicted)
Definition at line 623 of file GNEPathCreator.cpp.
References myShowCandidateEdges.
Referenced by GNELane::setLaneColor().
| void GNEPathCreator::drawTemporalRoute | ( | const GUIVisualizationSettings & | s | ) | const |
draw temporal route
Definition at line 722 of file GNEPathCreator.cpp.
References GUIVisualizationSettings::candidateColorSettings, GUIVisualizationCandidateColorSettings::conflict, Position::distanceTo2D(), GLHelper::drawBoxLine(), GLHelper::drawBoxLines(), GNELane2laneConnection::exist(), GNELane::getLane2laneConnections(), GNELane2laneConnection::getLane2laneGeometry(), GNELane::getLaneShape(), GUIGeometry::getShape(), GNEPathCreator::Path::getSubPath(), GLO_MAX, RGBColor::GREY, GNEPathCreator::Path::isConflictDisconnected(), GNEPathCreator::Path::isConflictVClass(), M_PI, myCreationMode, myPath, mySelectedJunctions, RGBColor::ORANGE, GLHelper::popMatrix(), GLHelper::pushMatrix(), GLHelper::setColor(), SHOW_CANDIDATE_EDGES, GUIVisualizationCandidateColorSettings::special, Position::x(), and Position::y().
Referenced by GNEViewNet::doPaintGL().
|
inherited |
get collapsable frame (used by all elements that will be collapsed if button is toggled)
Definition at line 118 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myCollapsableFrame.
Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEOverlappedInspection::buildFXElements(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEM_PathLegend::GNEM_PathLegend(), GNEPathCreator(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNENeteditAttributes::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEAttributesCreator::refreshRows(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZParameters::TAZParameters(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), GNESelectorFrame::VisualScaling::VisualScaling(), and GNETypeFrame::VTypeDistributions::VTypeDistributions().
| const std::vector< GNEPathCreator::Path > & GNEPathCreator::getPath | ( | ) | const |
get path route
Definition at line 617 of file GNEPathCreator.cpp.
References myPath.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNERouteFrame::createPath(), and GNEVehicleFrame::createPath().
| GNEDemandElement * GNEPathCreator::getRoute | ( | ) | const |
get route
Definition at line 611 of file GNEPathCreator.cpp.
References myRoute.
Referenced by GNERouteHandler::buildPersonPlan().
| const std::vector< GNEEdge * > & GNEPathCreator::getSelectedEdges | ( | ) | const |
get current selected edges
Definition at line 503 of file GNEPathCreator.cpp.
References mySelectedEdges.
Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEEdgeRelDataFrame::createPath(), GNERouteFrame::createPath(), and GNEVehicleFrame::createPath().
| const std::vector< GNEJunction * > & GNEPathCreator::getSelectedJunctions | ( | ) | const |
get current selected junctions
Definition at line 509 of file GNEPathCreator.cpp.
References mySelectedJunctions.
Referenced by GNERouteHandler::buildPersonPlan(), and GNEVehicleFrame::createPath().
| GNEAdditional * GNEPathCreator::getToStoppingPlace | ( | SumoXMLTag | expectedTag | ) | const |
get to stoppingPlace
Definition at line 579 of file GNEPathCreator.cpp.
References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and myToStoppingPlace.
Referenced by GNERouteHandler::buildContainerPlan(), and GNERouteHandler::buildPersonPlan().
| SUMOVehicleClass GNEPathCreator::getVClass | ( | ) | const |
| void GNEPathCreator::hidePathCreatorModule | ( | ) |
show GNEPathCreator
Definition at line 341 of file GNEPathCreator.cpp.
References clearPath().
Referenced by GNEContainerFrame::demandElementSelected(), GNEContainerPlanFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEPersonPlanFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEContainerPlanFrame::show(), GNEPersonPlanFrame::show(), GNEContainerFrame::tagSelected(), GNEContainerPlanFrame::tagSelected(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), and GNEVehicleFrame::tagSelected().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 226 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdLoadButton().
| long GNEPathCreator::onCmdAbortPathCreation | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user click over button "Abort route creation".
Definition at line 891 of file GNEPathCreator.cpp.
References abortPathCreation().
Referenced by FXDEFMAP().
|
inherited |
collapse GroupBoxModule
Definition at line 137 of file MFXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myCollapseButton, MFXGroupBoxModule::myCollapsed, and UNCOLLAPSE.
Referenced by FXDEFMAP().
| long GNEPathCreator::onCmdCreatePath | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 869 of file GNEPathCreator.cpp.
References createPath().
Referenced by FXDEFMAP().
|
inherited |
extends GroupBoxModule
Definition at line 153 of file MFXGroupBoxModule.cpp.
References GNEFrame::getScrollBarWidth(), GNETLSEditorFrame::TLSPhases::getTLSEditorParent(), GNETLSTable::getTLSPhasesParent(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
|
inherited |
load contents
Definition at line 207 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::loadContents().
Referenced by FXDEFMAP().
| long GNEPathCreator::onCmdRemoveLastElement | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user click over button "Remove las inserted edge".
Definition at line 899 of file GNEPathCreator.cpp.
References removeLastElement().
Referenced by FXDEFMAP().
|
inherited |
reset GroupBoxModule
Definition at line 179 of file MFXGroupBoxModule.cpp.
References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 201 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::saveContents().
Referenced by FXDEFMAP().
| long GNEPathCreator::onCmdShowCandidateEdges | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user click over check button "show candidate edges".
Definition at line 907 of file GNEPathCreator.cpp.
References myControlLabel, myShiftLabel, myShowCandidateEdges, and updateEdgeColors().
Referenced by FXDEFMAP().
| long GNEPathCreator::onCmdUseLastRoute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when the user click over button "Use last route".
Definition at line 876 of file GNEPathCreator.cpp.
References createPath().
Referenced by FXDEFMAP().
|
inherited |
draw MFXGroupBoxModule
Definition at line 124 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
|
inherited |
update reset GroupBoxModule
Definition at line 188 of file MFXGroupBoxModule.cpp.
References GNEViewParent::getFrameAreaWidth(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and MFXGroupBoxModule::myFrameParent.
Referenced by FXDEFMAP().
| long GNEPathCreator::onUpdUseLastRoute | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
Called when update button "Use last route".
Definition at line 882 of file GNEPathCreator.cpp.
References GNEViewNet::getLastCreatedRoute(), GNEFrame::getViewNet(), myCreationMode, myFrameParent, and ROUTE.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
protected |
recalculate path
Definition at line 971 of file GNEPathCreator.cpp.
References GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentLanes(), GNEFrame::getViewNet(), myFrameParent, myPath, myRoute, mySelectedEdges, mySelectedJunctions, myToStoppingPlace, and myVClass.
Referenced by addEdge(), addJunction(), addRoute(), addStoppingPlace(), and removeLastElement().
| void GNEPathCreator::removeLastElement | ( | ) |
remove path element
Definition at line 837 of file GNEPathCreator.cpp.
References GNEFrame::getViewNet(), myFrameParent, myRemoveLastInsertedElement, mySelectedEdges, recalculatePath(), updateEdgeColors(), updateInfoRouteLabel(), updateJunctionColors(), and GNEViewNet::updateViewNet().
Referenced by GNEViewNet::hotkeyBackSpace(), and onCmdRemoveLastElement().
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixDemandElements::FixOptions, and GNEFixNetworkElements::FixOptions.
Definition at line 219 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdSaveButton().
|
protected |
set edgereachability (This function will be called recursively)
Definition at line 1020 of file GNEPathCreator.cpp.
References GNEPathManager::PathCalculator::calculateReachability(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEViewNet::getNet(), GNEPathManager::getPathCalculator(), GNENet::getPathManager(), GNEFrame::getViewNet(), and myFrameParent.
Referenced by updateEdgeColors().
|
protected |
set special candidates (This function will be called recursively)
Definition at line 1005 of file GNEPathCreator.cpp.
References GNEPathManager::PathCalculator::calculateReachability(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEViewNet::getNet(), GNEPathManager::getPathCalculator(), GNENet::getPathManager(), GNEFrame::getViewNet(), myFrameParent, and SVC_PEDESTRIAN.
Referenced by updateEdgeColors().
|
inherited |
set text
Definition at line 112 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myLabel.
Referenced by GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().
| void GNEPathCreator::setVClass | ( | SUMOVehicleClass | vClass | ) |
set vClass
Definition at line 356 of file GNEPathCreator.cpp.
References myVClass, and updateEdgeColors().
Referenced by GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEContainerFrame::GNEContainerFrame(), GNEPersonFrame::GNEPersonFrame(), GNEContainerFrame::show(), GNEPersonFrame::show(), GNEContainerFrame::tagSelected(), GNEPersonFrame::tagSelected(), and GNEPersonPlanFrame::tagSelected().
| void GNEPathCreator::showPathCreatorModule | ( | SumoXMLTag | element, |
| const bool | firstElement, | ||
| const bool | consecutives | ||
| ) |
show GNEPathCreator for the given tag
Definition at line 187 of file GNEPathCreator.cpp.
References abortPathCreation(), CONSECUTIVE_EDGES, END_BUSSTOP, END_CONTAINERSTOP, END_EDGE, END_JUNCTION, GNE_TAG_FLOW_JUNCTIONS, GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_PERSONTRIP_BUSSTOP, GNE_TAG_PERSONTRIP_EDGE, GNE_TAG_PERSONTRIP_JUNCTIONS, GNE_TAG_RIDE_BUSSTOP, GNE_TAG_RIDE_EDGE, GNE_TAG_ROUTE_EMBEDDED, GNE_TAG_STOPCONTAINER_CONTAINERSTOP, GNE_TAG_STOPCONTAINER_EDGE, GNE_TAG_STOPPERSON_BUSSTOP, GNE_TAG_STOPPERSON_EDGE, GNE_TAG_TRANSHIP_CONTAINERSTOP, GNE_TAG_TRANSHIP_EDGE, GNE_TAG_TRANSHIP_EDGES, GNE_TAG_TRANSPORT_CONTAINERSTOP, GNE_TAG_TRANSPORT_EDGE, GNE_TAG_TRIP_JUNCTIONS, GNE_TAG_VEHICLE_WITHROUTE, GNE_TAG_WALK_BUSSTOP, GNE_TAG_WALK_EDGE, GNE_TAG_WALK_EDGES, GNE_TAG_WALK_JUNCTIONS, GNE_TAG_WALK_ROUTE, myAbortCreationButton, myBackSpaceLabel, myControlLabel, myCreationMode, myFinishCreationButton, myInfoRouteLabel, myRemoveLastInsertedElement, myShiftLabel, myShowCandidateEdges, myUseLastRoute, NONCONSECUTIVE_EDGES, ONLY_FROMTO, REQUIRE_FIRSTELEMENT, ROUTE, SHOW_CANDIDATE_EDGES, SHOW_CANDIDATE_JUNCTIONS, START_EDGE, START_JUNCTION, STOP, SUMO_TAG_EDGEREL, SUMO_TAG_FLOW, SUMO_TAG_ROUTE, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, updateEdgeColors(), and updateJunctionColors().
Referenced by GNEContainerFrame::demandElementSelected(), GNEPersonFrame::demandElementSelected(), GNEVehicleFrame::demandElementSelected(), GNEGenericDataFrame::show(), GNEContainerFrame::tagSelected(), GNEContainerPlanFrame::tagSelected(), GNEPersonFrame::tagSelected(), GNEPersonPlanFrame::tagSelected(), GNEVehicleFrame::tagSelected(), and GNEGenericDataFrame::updateFrameAfterUndoRedo().
|
protectedinherited |
enable or disable save buttons
Definition at line 233 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::mySaveButton.
| void GNEPathCreator::updateEdgeColors | ( | ) |
update edge colors
Definition at line 657 of file GNEPathCreator.cpp.
References clearEdgeColors(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEViewNet::getNet(), GNEFrame::getViewNet(), myCreationMode, myFrameParent, mySelectedEdges, myShowCandidateEdges, myVClass, setPossibleCandidates(), setSpecialCandidates(), SHOW_CANDIDATE_EDGES, and GNEViewNet::updateViewNet().
Referenced by abortPathCreation(), addEdge(), addRoute(), addStoppingPlace(), onCmdShowCandidateEdges(), removeLastElement(), setVClass(), and showPathCreatorModule().
|
protected |
update InfoRouteLabel
Definition at line 925 of file GNEPathCreator.cpp.
References myInfoRouteLabel, myPath, mySelectedEdges, TL, and toString().
Referenced by abortPathCreation(), addEdge(), addJunction(), addRoute(), addStoppingPlace(), clearPath(), and removeLastElement().
| void GNEPathCreator::updateJunctionColors | ( | ) |
update junction colors
Definition at line 629 of file GNEPathCreator.cpp.
References clearJunctionColors(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getJunctions(), GNEViewNet::getNet(), GNEFrame::getViewNet(), myCreationMode, myFrameParent, mySelectedJunctions, SHOW_CANDIDATE_JUNCTIONS, and GNEViewNet::updateViewNet().
Referenced by abortPathCreation(), addJunction(), removeLastElement(), and showPathCreatorModule().
|
protected |
button for abort route creation
Definition at line 258 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addStoppingPlace(), GNEPathCreator(), and showPathCreatorModule().
|
protected |
label for backSpace information
Definition at line 273 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), and showPathCreatorModule().
|
privateinherited |
vertical collapsable frame
Definition at line 102 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::getCollapsableFrame(), MFXGroupBoxModule::MFXGroupBoxModule(), MFXGroupBoxModule::onCmdCollapseButton(), and MFXGroupBoxModule::onCmdExtendButton().
|
privateinherited |
button for collapse elements
Definition at line 108 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 123 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::onCmdCollapseButton().
|
protected |
label for control information
Definition at line 270 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().
|
protected |
current creation mode
Definition at line 231 of file GNEPathCreator.h.
Referenced by addEdge(), addJunction(), addRoute(), addStoppingPlace(), drawTemporalRoute(), onUpdUseLastRoute(), showPathCreatorModule(), updateEdgeColors(), and updateJunctionColors().
|
privateinherited |
button for extend elements
Definition at line 111 of file MFXGroupBoxModule.h.
|
protected |
button for finish route creation
Definition at line 255 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addStoppingPlace(), GNEPathCreator(), and showPathCreatorModule().
|
protected |
current frame parent
Definition at line 225 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addStoppingPlace(), clearEdgeColors(), clearJunctionColors(), createPath(), onUpdUseLastRoute(), recalculatePath(), removeLastElement(), setPossibleCandidates(), setSpecialCandidates(), updateEdgeColors(), and updateJunctionColors().
|
protected |
label with route info
Definition at line 249 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), showPathCreatorModule(), and updateInfoRouteLabel().
|
privateinherited |
label used in non collapsable MFXGroupBoxModule
Definition at line 105 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::setText().
|
privateinherited |
button for load elements
Definition at line 120 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
privateinherited |
GroupBoxModule options.
Definition at line 96 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
protected |
vector with current path
Definition at line 246 of file GNEPathCreator.h.
Referenced by clearPath(), drawTemporalRoute(), getPath(), recalculatePath(), and updateInfoRouteLabel().
|
protected |
button for removing last inserted element
Definition at line 261 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addStoppingPlace(), GNEPathCreator(), removeLastElement(), and showPathCreatorModule().
|
privateinherited |
button for reset frame width
Definition at line 114 of file MFXGroupBoxModule.h.
|
protected |
route (usually a busStop)
Definition at line 243 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addRoute(), clearPath(), getRoute(), and recalculatePath().
|
privateinherited |
button for save elements
Definition at line 117 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::toggleSaveButton().
|
protected |
vector with selected edges
Definition at line 237 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addStoppingPlace(), clearPath(), getSelectedEdges(), recalculatePath(), removeLastElement(), updateEdgeColors(), and updateInfoRouteLabel().
|
protected |
vector with selected junctions
Definition at line 234 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addJunction(), clearPath(), drawTemporalRoute(), getSelectedJunctions(), recalculatePath(), and updateJunctionColors().
|
protected |
label for shift information
Definition at line 267 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().
|
protected |
CheckBox for show candidate edges.
Definition at line 264 of file GNEPathCreator.h.
Referenced by addEdge(), drawCandidateEdgesWithSpecialColor(), GNEPathCreator(), onCmdShowCandidateEdges(), showPathCreatorModule(), and updateEdgeColors().
|
protected |
to additional (usually a busStop)
Definition at line 240 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addStoppingPlace(), clearPath(), getToStoppingPlace(), and recalculatePath().
|
protected |
button for use last inserted route
Definition at line 252 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), and showPathCreatorModule().
|
protected |
current vClass
Definition at line 228 of file GNEPathCreator.h.
Referenced by getVClass(), recalculatePath(), setVClass(), and updateEdgeColors().