![]() |
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, const bool shiftKeyPressed, const bool controlKeyPressed) |
add route | |
bool | addStoppingPlace (GNEAdditional *stoppingPlace, const bool shiftKeyPressed, const bool controlKeyPressed) |
add stoppingPlace | |
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 | |
GNEAdditional * | getToStoppingPlace (SumoXMLTag expectedTag) const |
get to stoppingPlace | |
SUMOVehicleClass | getVClass () const |
get vClass | |
GNEPathCreator (GNEFrame *frameParent) | |
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 (SumoXMLTag element, const bool firstElement, 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 { CONSECUTIVE_EDGES = 1 << 0 , NONCONSECUTIVE_EDGES = 1 << 1 , START_EDGE = 1 << 2 , END_EDGE = 1 << 3 , START_JUNCTION = 1 << 4 , END_JUNCTION = 1 << 5 , START_TAZ = 1 << 6 , END_TAZ = 1 << 7 , STOP = 1 << 8 , ONLY_FROMTO = 1 << 9 , END_BUSSTOP = 1 << 10 , END_TRAINSTOP = 1 << 11 , END_CONTAINERSTOP = 1 << 12 , ROUTE = 1 << 13 , REQUIRE_FIRSTELEMENT = 1 << 14 , SHOW_CANDIDATE_EDGES = 1 << 15 , SHOW_CANDIDATE_JUNCTIONS = 1 << 16 } |
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 | |
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. | |
GNEAdditional * | myToStoppingPlace |
to additional (usually a busStop) | |
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 | |
FXButton * | 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 35 of file GNEPathCreator.h.
|
protected |
Definition at line 198 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, 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 897 of file GNEPathCreator.cpp.
References clearPath(), GNEApplicationWindow::enableUndoRedo(), GNEViewParent::getGNEAppWindows(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, myRoute, mySelectedEdges, mySelectedJunctions, mySelectedTAZs, 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 473 of file GNEPathCreator.cpp.
References CONSECUTIVE_EDGES, createPath(), GNEApplicationWindow::disableUndoRedo(), 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, 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 | ) |
add junction
Definition at line 383 of file GNEPathCreator.cpp.
References GNEApplicationWindow::disableUndoRedo(), 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 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 660 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 583 of file GNEPathCreator.cpp.
References createPath(), GNEApplicationWindow::disableUndoRedo(), END_BUSSTOP, END_CONTAINERSTOP, END_TRAINSTOP, 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, SUMO_TAG_TRAIN_STOP, TL, updateEdgeColors(), updateInfoRouteLabel(), and WRITE_WARNING.
Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().
bool GNEPathCreator::addTAZ | ( | GNETAZ * | taz | ) |
add TAZ
Definition at line 430 of file GNEPathCreator.cpp.
References GNEApplicationWindow::disableUndoRedo(), 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 784 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 775 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 1038 of file GNEPathCreator.cpp.
References clearEdgeColors(), clearJunctionColors(), myPath, myRoute, mySelectedEdges, mySelectedJunctions, mySelectedTAZs, myToStoppingPlace, and updateInfoRouteLabel().
Referenced by abortPathCreation(), and hidePathCreatorModule().
bool GNEPathCreator::createPath | ( | const bool | useLastRoute | ) |
create path
Definition at line 890 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 694 of file GNEPathCreator.cpp.
References myShowCandidateEdges.
Referenced by GNELane::setLaneColor().
void GNEPathCreator::drawTemporalRoute | ( | const GUIVisualizationSettings & | s | ) | const |
draw temporal route
Definition at line 793 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 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(), GNEE2DetectorLegendModule::GNEE2DetectorLegendModule(), GNEOptionsDialog::GNEOptionsDialog(), GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), 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::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNENeteditAttributes::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEFrameAttributeModules::ParametersEditor::ParametersEditor(), GNEFrameAttributeModules::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(), GNETypeDistributionFrame::TypeAttributesEditor::TypeAttributesEditor(), GNETypeDistributionFrame::TypeDistributionSelector::TypeDistributionSelector(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().
const std::vector< GNEPathCreator::Path > & GNEPathCreator::getPath | ( | ) | const |
get path route
Definition at line 688 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 682 of file GNEPathCreator.cpp.
References myRoute.
Referenced by GNERouteHandler::buildPersonPlan().
const std::vector< GNEEdge * > & GNEPathCreator::getSelectedEdges | ( | ) | const |
get current selected edges
Definition at line 565 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 571 of file GNEPathCreator.cpp.
References mySelectedJunctions.
Referenced by GNERouteHandler::buildPersonPlan(), and GNEVehicleFrame::createPath().
const std::vector< GNETAZ * > & GNEPathCreator::getSelectedTAZs | ( | ) | const |
get current selected TAZs
Definition at line 577 of file GNEPathCreator.cpp.
References mySelectedTAZs.
Referenced by GNEVehicleFrame::createPath().
GNEAdditional * GNEPathCreator::getToStoppingPlace | ( | SumoXMLTag | expectedTag | ) | const |
get to stoppingPlace
Definition at line 650 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 360 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 975 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 953 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 983 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 991 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 960 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 966 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 1056 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 921 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 1105 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 1090 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 375 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, END_TAZ, END_TRAINSTOP, GNE_TAG_FLOW_JUNCTIONS, GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_TAZS, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_PERSONTRIP_BUSSTOP, GNE_TAG_PERSONTRIP_EDGE, GNE_TAG_PERSONTRIP_JUNCTIONS, GNE_TAG_PERSONTRIP_TRAINSTOP, GNE_TAG_RIDE_BUSSTOP, GNE_TAG_RIDE_EDGE, GNE_TAG_RIDE_TRAINSTOP, GNE_TAG_ROUTE_EMBEDDED, GNE_TAG_STOPCONTAINER_CONTAINERSTOP, GNE_TAG_STOPCONTAINER_EDGE, GNE_TAG_STOPPERSON_BUSSTOP, GNE_TAG_STOPPERSON_EDGE, GNE_TAG_STOPPERSON_TRAINSTOP, 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_TRIP_TAZS, GNE_TAG_VEHICLE_WITHROUTE, GNE_TAG_WALK_BUSSTOP, GNE_TAG_WALK_EDGE, GNE_TAG_WALK_EDGES, GNE_TAG_WALK_JUNCTIONS, GNE_TAG_WALK_ROUTE, GNE_TAG_WALK_TRAINSTOP, 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, START_TAZ, 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 728 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 1009 of file GNEPathCreator.cpp.
References myInfoRouteLabel, myPath, mySelectedEdges, TL, and toString().
Referenced by abortPathCreation(), addEdge(), addJunction(), addRoute(), addStoppingPlace(), addTAZ(), clearPath(), and removeLastElement().
void GNEPathCreator::updateJunctionColors | ( | ) |
update junction colors
Definition at line 700 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 270 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addStoppingPlace(), addTAZ(), GNEPathCreator(), and showPathCreatorModule().
|
protected |
label for backSpace information
Definition at line 285 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 282 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().
|
protected |
current creation mode
Definition at line 240 of file GNEPathCreator.h.
Referenced by addEdge(), addJunction(), addRoute(), addStoppingPlace(), addTAZ(), 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 267 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addStoppingPlace(), addTAZ(), GNEPathCreator(), and showPathCreatorModule().
|
protected |
current frame parent
Definition at line 234 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addStoppingPlace(), addTAZ(), clearEdgeColors(), clearJunctionColors(), createPath(), onUpdUseLastRoute(), recalculatePath(), removeLastElement(), setPossibleCandidates(), setSpecialCandidates(), updateEdgeColors(), and updateJunctionColors().
|
protected |
label with route info
Definition at line 261 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 258 of file GNEPathCreator.h.
Referenced by clearPath(), drawTemporalRoute(), getPath(), recalculatePath(), and updateInfoRouteLabel().
|
protected |
button for removing last inserted element
Definition at line 273 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addStoppingPlace(), addTAZ(), 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 255 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 249 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addStoppingPlace(), clearPath(), getSelectedEdges(), recalculatePath(), removeLastElement(), updateEdgeColors(), and updateInfoRouteLabel().
|
protected |
vector with selected junctions
Definition at line 243 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addJunction(), clearPath(), drawTemporalRoute(), getSelectedJunctions(), recalculatePath(), and updateJunctionColors().
|
protected |
vector with selected TAZs
Definition at line 246 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addTAZ(), clearPath(), drawTemporalRoute(), and getSelectedTAZs().
|
protected |
label for shift information
Definition at line 279 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().
|
protected |
CheckBox for show candidate edges.
Definition at line 276 of file GNEPathCreator.h.
Referenced by addEdge(), drawCandidateEdgesWithSpecialColor(), GNEPathCreator(), onCmdShowCandidateEdges(), showPathCreatorModule(), and updateEdgeColors().
|
protected |
to additional (usually a busStop)
Definition at line 252 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addStoppingPlace(), clearPath(), getToStoppingPlace(), and recalculatePath().
|
protected |
button for use last inserted route
Definition at line 264 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), and showPathCreatorModule().
|
protected |
current vClass
Definition at line 237 of file GNEPathCreator.h.
Referenced by getVClass(), recalculatePath(), setVClass(), and updateEdgeColors().