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) |
add junction More... | |
bool | addRoute (GNEDemandElement *route) |
add route More... | |
bool | addTAZ (GNETAZ *taz) |
add TAZ 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... | |
const std::vector< GNETAZ * > & | getSelectedTAZs () const |
get current selected TAZs 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 (const GNETagProperties &tagProperty, 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 { 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) 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... | |
std::vector< GNETAZ * > | mySelectedTAZs |
vector with selected TAZs More... | |
FXLabel * | myShiftLabel |
label for shift information More... | |
FXCheckButton * | myShowCandidateEdges |
CheckBox for show candidate edges. 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... | |
MFXButtonTooltip * | 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 |
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 180 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 | ) |
default constructor
Definition at line 126 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::enableUndoRedo(), 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 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, 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::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 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::disableUndoRedo(), END_TAZ, GNEViewParent::getGNEAppWindows(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myCreationMode, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, mySelectedTAZs, 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 123 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(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEOptionsDialog::GNEOptionsDialog(), 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::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNENeteditAttributes::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), 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(), 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 231 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 142 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 158 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 212 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 184 of file MFXGroupBoxModule.cpp.
References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 206 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 129 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
|
inherited |
update reset GroupBoxModule
Definition at line 193 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(), GNEFrame::getViewNet(), myFrameParent, myPath, 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 GNEFixNetworkElements::FixOptions, and GNEFixDemandElements::FixOptions.
Definition at line 224 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(), GNENet::getPathManager(), GNEFrame::getViewNet(), and myFrameParent.
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(), GNENet::getPathManager(), GNEFrame::getViewNet(), myFrameParent, and SVC_PEDESTRIAN.
Referenced by updateEdgeColors().
|
inherited |
set text
Definition at line 117 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 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 238 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 244 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addTAZ(), GNEPathCreator(), and showPathCreatorModule().
|
protected |
label for backSpace information
Definition at line 259 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 256 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().
|
protected |
current creation mode
Definition at line 217 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 241 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addTAZ(), GNEPathCreator(), and showPathCreatorModule().
|
protected |
current frame parent
Definition at line 211 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), addJunction(), addTAZ(), clearEdgeColors(), clearJunctionColors(), createPath(), onUpdUseLastRoute(), recalculatePath(), removeLastElement(), setPossibleCandidates(), setSpecialCandidates(), updateEdgeColors(), and updateJunctionColors().
|
protected |
label with route info
Definition at line 235 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 232 of file GNEPathCreator.h.
Referenced by clearPath(), drawTemporalRoute(), getPath(), recalculatePath(), and updateInfoRouteLabel().
|
protected |
button for removing last inserted element
Definition at line 247 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 229 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 226 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addEdge(), clearPath(), getSelectedEdges(), recalculatePath(), removeLastElement(), updateEdgeColors(), and updateInfoRouteLabel().
|
protected |
vector with selected junctions
Definition at line 220 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addJunction(), clearPath(), drawTemporalRoute(), getSelectedJunctions(), recalculatePath(), and updateJunctionColors().
|
protected |
vector with selected TAZs
Definition at line 223 of file GNEPathCreator.h.
Referenced by abortPathCreation(), addTAZ(), clearPath(), drawTemporalRoute(), and getSelectedTAZs().
|
protected |
label for shift information
Definition at line 253 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().
|
protected |
CheckBox for show candidate edges.
Definition at line 250 of file GNEPathCreator.h.
Referenced by addEdge(), drawCandidateEdgesWithSpecialColor(), GNEPathCreator(), onCmdShowCandidateEdges(), showPathCreatorModule(), and updateEdgeColors().
|
protected |
button for use last inserted route
Definition at line 238 of file GNEPathCreator.h.
Referenced by GNEPathCreator(), and showPathCreatorModule().
|
protected |
current vClass
Definition at line 214 of file GNEPathCreator.h.
Referenced by getVClass(), recalculatePath(), setVClass(), and updateEdgeColors().