![]() |
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 | |
| bool | addEdge (GNEEdge *edge, const bool shiftKeyPressed, const bool controlKeyPressed) |
| add edge | |
| bool | addJunction (GNEJunction *junction) |
| add junction | |
| bool | addRoute (GNEDemandElement *route) |
| add route | |
| bool | addTAZ (GNETAZ *taz) |
| add TAZ | |
| void | clearEdgeColors () |
| clear edge colors | |
| void | clearJunctionColors () |
| clear junction colors | |
| bool | createPath (const bool useLastRoute) |
| create path | |
| bool | drawCandidateEdgesWithSpecialColor () const |
| draw candidate edges with special color (Only for candidates, special and conflicted) | |
| void | drawTemporalRoute (const GUIVisualizationSettings &s) const |
| draw temporal route | |
| FXVerticalFrame * | getCollapsableFrame () |
| get collapsable frame (used by all elements that will be collapsed if button is toggled) | |
| const std::vector< Path > & | getPath () const |
| get path route | |
| GNEDemandElement * | getRoute () const |
| get route | |
| const std::vector< GNEEdge * > & | getSelectedEdges () const |
| get current selected edges | |
| const std::vector< GNEJunction * > & | getSelectedJunctions () const |
| get current selected junctions | |
| const std::vector< GNETAZ * > & | getSelectedTAZs () const |
| get current selected TAZs | |
| SUMOVehicleClass | getVClass () const |
| get vClass | |
| GNEPathCreator (GNEFrame *frameParent, GNEPathManager *pathManager) | |
| default constructor | |
| void | hidePathCreatorModule () |
| show GNEPathCreator | |
| long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
| collapse GroupBoxModule | |
| long | onCmdExtendButton (FXObject *, FXSelector, void *) |
| extends GroupBoxModule | |
| long | onCmdLoadButton (FXObject *, FXSelector, void *) |
| load contents | |
| long | onCmdResetButton (FXObject *, FXSelector, void *) |
| reset GroupBoxModule | |
| long | onCmdSaveButton (FXObject *, FXSelector, void *) |
| save contents | |
| long | onPaint (FXObject *, FXSelector, void *) |
| draw MFXGroupBoxModule | |
| long | onUpdResetButton (FXObject *, FXSelector, void *) |
| update reset GroupBoxModule | |
| void | removeLastElement () |
| remove path element | |
| void | setText (const std::string &text) |
| set text | |
| void | setVClass (SUMOVehicleClass vClass) |
| set vClass | |
| void | showPathCreatorModule (const GNETagProperties *tagProperty, const bool consecutives) |
| show GNEPathCreator for the given tag | |
| void | updateEdgeColors () |
| update edge colors | |
| void | updateJunctionColors () |
| update junction colors | |
| ~GNEPathCreator () | |
| destructor | |
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". | |
| long | onUpdUseLastRoute (FXObject *, FXSelector, void *) |
| Called when update button "Use last route". | |
| long | onCmdAbortPathCreation (FXObject *, FXSelector, void *) |
| Called when the user click over button "Abort route creation". | |
| long | onCmdRemoveLastElement (FXObject *, FXSelector, void *) |
| Called when the user click over button "Remove las inserted edge". | |
| long | onCmdShowCandidateEdges (FXObject *, FXSelector, void *) |
| Called when the user click over check button "show candidate edges". | |
Protected Types | |
| enum | Mode { ONLY_FROMTO = 1 << 0 , CONSECUTIVE_EDGES = 1 << 1 , NONCONSECUTIVE_EDGES = 1 << 2 , START_EDGE = 1 << 3 , END_EDGE = 1 << 4 , START_JUNCTION = 1 << 5 , END_JUNCTION = 1 << 6 , START_TAZ = 1 << 7 , END_TAZ = 1 << 8 , ROUTE = 1 << 9 , SHOW_CANDIDATE_EDGES = 1 << 10 , SHOW_CANDIDATE_JUNCTIONS = 1 << 11 } |
Protected Member Functions | |
| void | clearPath () |
| clear edges (and restore colors) | |
| virtual bool | loadContents () const |
| load contents (can be reimplemented in children) | |
| void | recalculatePath () |
| recalculate path | |
| virtual bool | saveContents () const |
| save contents (can be reimplemented in children) | |
| void | setPossibleCandidates (GNEEdge *originEdge, const SUMOVehicleClass vClass) |
| set edgereachability (This function will be called recursively) | |
| void | setSpecialCandidates (GNEEdge *originEdge) |
| set special candidates (This function will be called recursively) | |
| void | toggleSaveButton (const bool value) |
| enable or disable save buttons | |
| void | updateInfoRouteLabel () |
| update InfoRouteLabel | |
Protected Attributes | |
| FXButton * | myAbortCreationButton |
| button for abort route creation | |
| FXLabel * | myBackSpaceLabel |
| label for backSpace information | |
| FXLabel * | myControlLabel |
| label for control information | |
| int | myCreationMode |
| current creation mode | |
| FXButton * | myFinishCreationButton |
| button for finish route creation | |
| GNEFrame * | myFrameParent |
| current frame parent | |
| FXLabel * | myInfoRouteLabel |
| label with route info | |
| std::vector< Path > | myPath |
| vector with current path | |
| GNEPathManager * | myPathManager |
| path manager | |
| FXButton * | myRemoveLastInsertedElement |
| button for removing last inserted element | |
| GNEDemandElement * | myRoute |
| route (usually a busStop) | |
| std::vector< GNEEdge * > | mySelectedEdges |
| vector with selected edges | |
| std::vector< GNEJunction * > | mySelectedJunctions |
| vector with selected junctions | |
| std::vector< GNETAZ * > | mySelectedTAZs |
| vector with selected TAZs | |
| FXLabel * | myShiftLabel |
| label for shift information | |
| FXCheckButton * | myShowCandidateEdges |
| CheckBox for show candidate edges. | |
| FXButton * | myUseLastRoute |
| button for use last inserted route | |
| SUMOVehicleClass | myVClass |
| current vClass | |
Private Member Functions | |
| GNEPathCreator (GNEPathCreator *)=delete | |
| Invalidated copy constructor. | |
| GNEPathCreator & | operator= (GNEPathCreator *)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| FXVerticalFrame * | myCollapsableFrame = nullptr |
| vertical collapsable frame | |
| FXButton * | myCollapseButton = nullptr |
| button for collapse elements | |
| bool | myCollapsed |
| flag to check if this groupbox is collapsed | |
| MFXButtonTooltip * | myExtendButton = nullptr |
| button for extend elements | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable MFXGroupBoxModule | |
| FXButton * | myLoadButton = nullptr |
| button for load elements | |
| const int | myOptions |
| GroupBoxModule options. | |
| FXButton * | myResetWidthButton = nullptr |
| button for reset frame width | |
| FXButton * | mySaveButton = nullptr |
| button for save elements | |
Definition at line 37 of file GNEPathCreator.h.
|
protected |
| Enumerator | |
|---|---|
| ONLY_FROMTO | |
| CONSECUTIVE_EDGES | |
| NONCONSECUTIVE_EDGES | |
| START_EDGE | |
| END_EDGE | |
| START_JUNCTION | |
| END_JUNCTION | |
| START_TAZ | |
| END_TAZ | |
| ROUTE | |
| SHOW_CANDIDATE_EDGES | |
| SHOW_CANDIDATE_JUNCTIONS | |
Definition at line 182 of file GNEPathCreator.h.
|
inherited |
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| EXTENSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 38 of file MFXGroupBoxModule.h.
| GNEPathCreator::GNEPathCreator | ( | GNEFrame * | frameParent, |
| GNEPathManager * | pathManager | ||
| ) |
default constructor
Definition at line 125 of file GNEPathCreator.cpp.
References GUIDesigns::buildFXButton(), MFXGroupBoxModule::getCollapsableFrame(), GUIIconSubSys::getIcon(), GUIDesignButton, GUIDesignCheckButton, GUIDesignLabelFrameInformation, 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 164 of file GNEPathCreator.cpp.
|
privatedelete |
Invalidated copy constructor.
| void GNEPathCreator::abortPathCreation | ( | ) |
abort path creation
Definition at line 689 of file GNEPathCreator.cpp.
References clearPath(), GNEApplicationWindow::enableUndoRedoTemporally(), GNEViewParent::getGNEAppWindows(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, myRoute, mySelectedEdges, mySelectedJunctions, mySelectedTAZs, updateEdgeColors(), updateInfoRouteLabel(), updateJunctionColors(), and GNEViewNet::updateViewNet().
Referenced by GNEViewNet::abortOperation(), GNEEdgeRelDataFrame::createPath(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), onCmdAbortPathCreation(), and showPathCreatorModule().
| bool GNEPathCreator::addEdge | ( | GNEEdge * | edge, |
| const bool | shiftKeyPressed, | ||
| const bool | controlKeyPressed | ||
| ) |
add edge
Definition at line 357 of file GNEPathCreator.cpp.
References CONSECUTIVE_EDGES, GNEApplicationWindow::disableUndoRedoTemporally(), END_EDGE, GNEViewParent::getGNEAppWindows(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GNECandidateElement::isConflictedCandidate(), GNECandidateElement::isPossibleCandidate(), GNECandidateElement::isSpecialCandidate(), myAbortCreationButton, myCreationMode, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, mySelectedEdges, myShowCandidateEdges, ONLY_FROMTO, recalculatePath(), START_EDGE, TL, updateEdgeColors(), updateInfoRouteLabel(), and WRITE_WARNING.
Referenced by GNEEdgeRelDataFrame::addEdgeRelationData(), GNERouteFrame::addEdgeRoute(), and GNEVehicleFrame::addVehicle().
| bool GNEPathCreator::addJunction | ( | GNEJunction * | junction | ) |
add junction
Definition at line 267 of file GNEPathCreator.cpp.
References GNEApplicationWindow::disableUndoRedoTemporally(), END_JUNCTION, GNEViewParent::getGNEAppWindows(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myCreationMode, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, mySelectedJunctions, ONLY_FROMTO, recalculatePath(), START_JUNCTION, TL, updateInfoRouteLabel(), updateJunctionColors(), and WRITE_WARNING.
Referenced by GNEVehicleFrame::addVehicle().
| bool GNEPathCreator::addRoute | ( | GNEDemandElement * | route | ) |
add route
Definition at line 452 of file GNEPathCreator.cpp.
References createPath(), myCreationMode, myRoute, recalculatePath(), ROUTE, updateEdgeColors(), and updateInfoRouteLabel().
| bool GNEPathCreator::addTAZ | ( | GNETAZ * | taz | ) |
add TAZ
Definition at line 314 of file GNEPathCreator.cpp.
References GNEApplicationWindow::disableUndoRedoTemporally(), END_TAZ, GNEViewParent::getGNEAppWindows(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myCreationMode, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, mySelectedTAZs, ONLY_FROMTO, START_TAZ, TAZ, TL, updateInfoRouteLabel(), and WRITE_WARNING.
Referenced by GNEVehicleFrame::addVehicle().
| void GNEPathCreator::clearEdgeColors | ( | ) |
clear edge colors
Definition at line 576 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 567 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 830 of file GNEPathCreator.cpp.
References clearEdgeColors(), clearJunctionColors(), myPath, myRoute, mySelectedEdges, mySelectedJunctions, mySelectedTAZs, and updateInfoRouteLabel().
Referenced by abortPathCreation(), and hidePathCreatorModule().
| bool GNEPathCreator::createPath | ( | const bool | useLastRoute | ) |
create path
Definition at line 682 of file GNEPathCreator.cpp.
References GNEFrame::createPath(), and myFrameParent.
Referenced by addRoute(), GNEViewNet::hotkeyEnter(), onCmdCreatePath(), and onCmdUseLastRoute().
| bool GNEPathCreator::drawCandidateEdgesWithSpecialColor | ( | ) | const |
draw candidate edges with special color (Only for candidates, special and conflicted)
Definition at line 486 of file GNEPathCreator.cpp.
References myShowCandidateEdges.
Referenced by GNELane::setLaneColor().
| void GNEPathCreator::drawTemporalRoute | ( | const GUIVisualizationSettings & | s | ) | const |
draw temporal route
Definition at line 585 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, mySelectedTAZs, 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 126 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myCollapsableFrame.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEMoveFrame::DemandMoveOptions::DemandMoveOptions(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFixElementsDialog< T >::FixOptions::FixOptions(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEMatchAttribute::GNEMatchAttribute(), GNEOptionsEditor::GNEOptionsEditor(), GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator::GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkMoveOptions::NetworkMoveOptions(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNEAttributesEditorRow::showAttributeRow(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
| const std::vector< GNEPathCreator::Path > & GNEPathCreator::getPath | ( | ) | const |
get path route
Definition at line 480 of file GNEPathCreator.cpp.
References myPath.
Referenced by GNERouteFrame::createPath(), and GNEVehicleFrame::createPath().
| GNEDemandElement * GNEPathCreator::getRoute | ( | ) | const |
| const std::vector< GNEEdge * > & GNEPathCreator::getSelectedEdges | ( | ) | const |
get current selected edges
Definition at line 434 of file GNEPathCreator.cpp.
References mySelectedEdges.
Referenced by GNEEdgeRelDataFrame::createPath(), GNERouteFrame::createPath(), and GNEVehicleFrame::createPath().
| const std::vector< GNEJunction * > & GNEPathCreator::getSelectedJunctions | ( | ) | const |
get current selected junctions
Definition at line 440 of file GNEPathCreator.cpp.
References mySelectedJunctions.
Referenced by GNEVehicleFrame::createPath().
| const std::vector< GNETAZ * > & GNEPathCreator::getSelectedTAZs | ( | ) | const |
get current selected TAZs
Definition at line 446 of file GNEPathCreator.cpp.
References mySelectedTAZs.
Referenced by GNEVehicleFrame::createPath().
| SUMOVehicleClass GNEPathCreator::getVClass | ( | ) | const |
| void GNEPathCreator::hidePathCreatorModule | ( | ) |
show GNEPathCreator
Definition at line 244 of file GNEPathCreator.cpp.
References clearPath().
Referenced by GNEVehicleFrame::demandElementSelected(), and GNEVehicleFrame::tagSelected().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 234 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 767 of file GNEPathCreator.cpp.
References abortPathCreation().
Referenced by FXDEFMAP().
|
inherited |
collapse GroupBoxModule
Definition at line 145 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 745 of file GNEPathCreator.cpp.
References createPath().
Referenced by FXDEFMAP(), and GNEViewNet::hotkeyEnter().
|
inherited |
extends GroupBoxModule
Definition at line 161 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 215 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 775 of file GNEPathCreator.cpp.
References removeLastElement().
Referenced by FXDEFMAP().
|
inherited |
reset GroupBoxModule
Definition at line 187 of file MFXGroupBoxModule.cpp.
References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 209 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 783 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 752 of file GNEPathCreator.cpp.
References createPath().
Referenced by FXDEFMAP().
|
inherited |
draw MFXGroupBoxModule
Definition at line 132 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
|
inherited |
update reset GroupBoxModule
Definition at line 196 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 758 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 847 of file GNEPathCreator.cpp.
References GNEHierarchicalElement::getParentEdges(), myPath, myPathManager, myRoute, mySelectedEdges, mySelectedJunctions, and myVClass.
Referenced by addEdge(), addJunction(), addRoute(), and removeLastElement().
| void GNEPathCreator::removeLastElement | ( | ) |
remove path element
Definition at line 713 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 GNEFixElementsDialog< T >::FixOptions.
Definition at line 227 of file MFXGroupBoxModule.cpp.
Referenced by MFXGroupBoxModule::onCmdSaveButton().
|
protected |
set edgereachability (This function will be called recursively)
Definition at line 892 of file GNEPathCreator.cpp.
References GNEPathManager::PathCalculator::calculateReachability(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEViewNet::getNet(), GNEPathManager::getPathCalculator(), GNEFrame::getViewNet(), myFrameParent, and myPathManager.
Referenced by updateEdgeColors().
|
protected |
set special candidates (This function will be called recursively)
Definition at line 877 of file GNEPathCreator.cpp.
References GNEPathManager::PathCalculator::calculateReachability(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEViewNet::getNet(), GNEPathManager::getPathCalculator(), GNEFrame::getViewNet(), myFrameParent, myPathManager, and SVC_PEDESTRIAN.
Referenced by updateEdgeColors().
|
inherited |
set text
Definition at line 120 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::myLabel.
Referenced by GNETLSEditorFrame::TLSPrograms::onCmdDefSwitchTLSProgram(), GNEViewObjectSelector::showNetworkElementsSelector(), GNESelectorFrame::SelectionInformation::updateInformationLabel(), and GNETagSelector::updateTagTypes().
| void GNEPathCreator::setVClass | ( | SUMOVehicleClass | vClass | ) |
set vClass
Definition at line 259 of file GNEPathCreator.cpp.
References myVClass, and updateEdgeColors().
Referenced by GNEVehicleFrame::demandElementSelected().
| void GNEPathCreator::showPathCreatorModule | ( | const GNETagProperties * | tagProperty, |
| const bool | consecutives | ||
| ) |
show GNEPathCreator for the given tag
Definition at line 168 of file GNEPathCreator.cpp.
References abortPathCreation(), CONSECUTIVE_EDGES, END_EDGE, END_JUNCTION, END_TAZ, GNETagProperties::getTag(), GNETagProperties::isRoute(), myAbortCreationButton, myBackSpaceLabel, myControlLabel, myCreationMode, myFinishCreationButton, myInfoRouteLabel, myRemoveLastInsertedElement, myShiftLabel, myShowCandidateEdges, myUseLastRoute, NONCONSECUTIVE_EDGES, ONLY_FROMTO, ROUTE, SHOW_CANDIDATE_EDGES, SHOW_CANDIDATE_JUNCTIONS, START_EDGE, START_JUNCTION, START_TAZ, SUMO_TAG_EDGEREL, updateEdgeColors(), updateJunctionColors(), GNETagProperties::vehicleEdges(), GNETagProperties::vehicleJunctions(), GNETagProperties::vehicleRoute(), GNETagProperties::vehicleRouteEmbedded(), and GNETagProperties::vehicleTAZs().
Referenced by GNEVehicleFrame::demandElementSelected(), GNEGenericDataFrame::show(), GNEVehicleFrame::tagSelected(), and GNEGenericDataFrame::updateFrameAfterUndoRedo().
|
protectedinherited |
enable or disable save buttons
Definition at line 241 of file MFXGroupBoxModule.cpp.
References MFXGroupBoxModule::mySaveButton.
| void GNEPathCreator::updateEdgeColors | ( | ) |
update edge colors
Definition at line 520 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(), onCmdShowCandidateEdges(), removeLastElement(), setVClass(), and showPathCreatorModule().
|
protected |
update InfoRouteLabel
Definition at line 801 of file GNEPathCreator.cpp.
References myInfoRouteLabel, myPath, mySelectedEdges, TL, and toString().
Referenced by abortPathCreation(), addEdge(), addJunction(), addRoute(), addTAZ(), clearPath(), and removeLastElement().
| void GNEPathCreator::updateJunctionColors | ( | ) |
update junction colors
Definition at line 492 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 249 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addTAZ(), GNEPathCreator(), and showPathCreatorModule().
|
protected |
label for backSpace information
Definition at line 264 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), and showPathCreatorModule().
|
privateinherited |
vertical collapsable frame
Definition at line 103 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::getCollapsableFrame(), MFXGroupBoxModule::MFXGroupBoxModule(), MFXGroupBoxModule::onCmdCollapseButton(), and MFXGroupBoxModule::onCmdExtendButton().
|
privateinherited |
button for collapse elements
Definition at line 109 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 124 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::onCmdCollapseButton().
|
protected |
label for control information
Definition at line 261 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().
|
protected |
current creation mode
Definition at line 222 of file GNEPathCreator.h.
Referenced by addEdge(), addJunction(), addRoute(), addTAZ(), drawTemporalRoute(), onUpdUseLastRoute(), showPathCreatorModule(), updateEdgeColors(), and updateJunctionColors().
|
privateinherited |
button for extend elements
Definition at line 112 of file MFXGroupBoxModule.h.
|
protected |
button for finish route creation
Definition at line 246 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addTAZ(), GNEPathCreator(), and showPathCreatorModule().
|
protected |
current frame parent
Definition at line 213 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addTAZ(), clearEdgeColors(), clearJunctionColors(), createPath(), onUpdUseLastRoute(), removeLastElement(), setPossibleCandidates(), setSpecialCandidates(), updateEdgeColors(), and updateJunctionColors().
|
protected |
label with route info
Definition at line 240 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), showPathCreatorModule(), and updateInfoRouteLabel().
|
privateinherited |
label used in non collapsable MFXGroupBoxModule
Definition at line 106 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::setText().
|
privateinherited |
button for load elements
Definition at line 121 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
privateinherited |
GroupBoxModule options.
Definition at line 97 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule().
|
protected |
vector with current path
Definition at line 237 of file GNEPathCreator.h.
Referenced by clearPath(), drawTemporalRoute(), getPath(), recalculatePath(), and updateInfoRouteLabel().
|
protected |
path manager
Definition at line 216 of file GNEPathCreator.h.
Referenced by recalculatePath(), setPossibleCandidates(), and setSpecialCandidates().
|
protected |
button for removing last inserted element
Definition at line 252 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addTAZ(), GNEPathCreator(), removeLastElement(), and showPathCreatorModule().
|
privateinherited |
button for reset frame width
Definition at line 115 of file MFXGroupBoxModule.h.
|
protected |
route (usually a busStop)
Definition at line 234 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addRoute(), clearPath(), getRoute(), and recalculatePath().
|
privateinherited |
button for save elements
Definition at line 118 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::toggleSaveButton().
|
protected |
vector with selected edges
Definition at line 231 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), clearPath(), getSelectedEdges(), recalculatePath(), removeLastElement(), updateEdgeColors(), and updateInfoRouteLabel().
|
protected |
vector with selected junctions
Definition at line 225 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addJunction(), clearPath(), drawTemporalRoute(), getSelectedJunctions(), recalculatePath(), and updateJunctionColors().
|
protected |
vector with selected TAZs
Definition at line 228 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addTAZ(), clearPath(), drawTemporalRoute(), and getSelectedTAZs().
|
protected |
label for shift information
Definition at line 258 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().
|
protected |
CheckBox for show candidate edges.
Definition at line 255 of file GNEPathCreator.h.
Referenced by addEdge(), drawCandidateEdgesWithSpecialColor(), GNEPathCreator(), onCmdShowCandidateEdges(), showPathCreatorModule(), and updateEdgeColors().
|
protected |
button for use last inserted route
Definition at line 243 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), and showPathCreatorModule().
|
protected |
current vClass
Definition at line 219 of file GNEPathCreator.h.
Referenced by getVClass(), recalculatePath(), setVClass(), and updateEdgeColors().