Eclipse SUMO - Simulation of Urban MObility
GNEPathCreator Class Reference

#include <GNEPathCreator.h>

Inheritance diagram for GNEPathCreator:
[legend]
Collaboration diagram for GNEPathCreator:
[legend]

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...
 
GNEDemandElementgetRoute () 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...
 
GNEFramemyFrameParent
 current frame parent More...
 
FXLabel * myInfoRouteLabel
 label with route info More...
 
std::vector< PathmyPath
 vector with current path More...
 
FXButton * myRemoveLastInsertedElement
 button for removing last inserted element More...
 
GNEDemandElementmyRoute
 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...
 
GNEPathCreatoroperator= (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...
 
MFXButtonTooltipmyExtendButton = 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...
 

Detailed Description

Definition at line 35 of file GNEPathCreator.h.

Member Enumeration Documentation

◆ Mode

enum GNEPathCreator::Mode
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.

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 38 of file MFXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ GNEPathCreator() [1/2]

◆ ~GNEPathCreator()

GNEPathCreator::~GNEPathCreator ( )

destructor

Definition at line 164 of file GNEPathCreator.cpp.

◆ GNEPathCreator() [2/2]

GNEPathCreator::GNEPathCreator ( GNEPathCreator )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ abortPathCreation()

◆ addEdge()

◆ addJunction()

bool GNEPathCreator::addJunction ( GNEJunction junction)

◆ addRoute()

bool GNEPathCreator::addRoute ( GNEDemandElement route)

◆ addTAZ()

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().

Here is the caller graph for this function:

◆ clearEdgeColors()

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().

Here is the caller graph for this function:

◆ clearJunctionColors()

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().

Here is the caller graph for this function:

◆ clearPath()

void GNEPathCreator::clearPath ( )
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().

Here is the caller graph for this function:

◆ createPath()

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().

Here is the caller graph for this function:

◆ drawCandidateEdgesWithSpecialColor()

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().

Here is the caller graph for this function:

◆ drawTemporalRoute()

◆ getCollapsableFrame()

FXVerticalFrame * MFXGroupBoxModule::getCollapsableFrame ( )
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().

◆ getPath()

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().

Here is the caller graph for this function:

◆ getRoute()

GNEDemandElement * GNEPathCreator::getRoute ( ) const

get route

Definition at line 474 of file GNEPathCreator.cpp.

References myRoute.

◆ getSelectedEdges()

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().

Here is the caller graph for this function:

◆ getSelectedJunctions()

const std::vector< GNEJunction * > & GNEPathCreator::getSelectedJunctions ( ) const

get current selected junctions

Definition at line 440 of file GNEPathCreator.cpp.

References mySelectedJunctions.

Referenced by GNEJunction::checkDrawFromContour(), GNEJunction::checkDrawToContour(), and GNEVehicleFrame::createPath().

Here is the caller graph for this function:

◆ getSelectedTAZs()

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().

Here is the caller graph for this function:

◆ getVClass()

SUMOVehicleClass GNEPathCreator::getVClass ( ) const

get vClass

Definition at line 253 of file GNEPathCreator.cpp.

References myVClass.

◆ hidePathCreatorModule()

void GNEPathCreator::hidePathCreatorModule ( )

show GNEPathCreator

Definition at line 244 of file GNEPathCreator.cpp.

References clearPath().

Referenced by GNEVehicleFrame::demandElementSelected(), and GNEVehicleFrame::tagSelected().

Here is the caller graph for this function:

◆ loadContents()

bool MFXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 231 of file MFXGroupBoxModule.cpp.

Referenced by MFXGroupBoxModule::onCmdLoadButton().

Here is the caller graph for this function:

◆ onCmdAbortPathCreation()

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().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

long MFXGroupBoxModule::onCmdCollapseButton ( FXObject *  ,
FXSelector  ,
void *   
)
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().

Here is the caller graph for this function:

◆ onCmdCreatePath()

long GNEPathCreator::onCmdCreatePath ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 745 of file GNEPathCreator.cpp.

References createPath().

Referenced by FXDEFMAP(), and GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

◆ onCmdExtendButton()

long MFXGroupBoxModule::onCmdExtendButton ( FXObject *  ,
FXSelector  ,
void *   
)
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().

Here is the caller graph for this function:

◆ onCmdLoadButton()

long MFXGroupBoxModule::onCmdLoadButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

load contents

Definition at line 212 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdRemoveLastElement()

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().

Here is the caller graph for this function:

◆ onCmdResetButton()

long MFXGroupBoxModule::onCmdResetButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

reset GroupBoxModule

Definition at line 184 of file MFXGroupBoxModule.cpp.

References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

long MFXGroupBoxModule::onCmdSaveButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

save contents

Definition at line 206 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::saveContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdShowCandidateEdges()

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().

Here is the caller graph for this function:

◆ onCmdUseLastRoute()

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().

Here is the caller graph for this function:

◆ onPaint()

long MFXGroupBoxModule::onPaint ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
inherited

draw MFXGroupBoxModule

Definition at line 129 of file MFXGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdResetButton()

long MFXGroupBoxModule::onUpdResetButton ( FXObject *  sender,
FXSelector  ,
void *   
)
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().

Here is the caller graph for this function:

◆ onUpdUseLastRoute()

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().

Here is the caller graph for this function:

◆ operator=()

GNEPathCreator& GNEPathCreator::operator= ( GNEPathCreator )
privatedelete

Invalidated assignment operator.

◆ recalculatePath()

void GNEPathCreator::recalculatePath ( )
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().

Here is the caller graph for this function:

◆ 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().

Here is the caller graph for this function:

◆ saveContents()

bool MFXGroupBoxModule::saveContents ( ) const
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().

Here is the caller graph for this function:

◆ setPossibleCandidates()

void GNEPathCreator::setPossibleCandidates ( GNEEdge originEdge,
const SUMOVehicleClass  vClass 
)
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().

Here is the caller graph for this function:

◆ setSpecialCandidates()

void GNEPathCreator::setSpecialCandidates ( GNEEdge originEdge)
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().

Here is the caller graph for this function:

◆ setText()

void MFXGroupBoxModule::setText ( const std::string &  text)
inherited

set text

Definition at line 117 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myLabel.

Referenced by GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().

Here is the caller graph for this function:

◆ setVClass()

void GNEPathCreator::setVClass ( SUMOVehicleClass  vClass)

set vClass

Definition at line 259 of file GNEPathCreator.cpp.

References myVClass, and updateEdgeColors().

Referenced by GNEVehicleFrame::demandElementSelected().

Here is the caller graph for this function:

◆ showPathCreatorModule()

◆ toggleSaveButton()

void MFXGroupBoxModule::toggleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 238 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::mySaveButton.

◆ updateEdgeColors()

void GNEPathCreator::updateEdgeColors ( )

◆ updateInfoRouteLabel()

void GNEPathCreator::updateInfoRouteLabel ( )
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().

Here is the caller graph for this function:

◆ updateJunctionColors()

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().

Here is the caller graph for this function:

Field Documentation

◆ myAbortCreationButton

FXButton* GNEPathCreator::myAbortCreationButton
protected

button for abort route creation

Definition at line 244 of file GNEPathCreator.h.

Referenced by abortPathCreation(), addEdge(), addJunction(), addTAZ(), GNEPathCreator(), and showPathCreatorModule().

◆ myBackSpaceLabel

FXLabel* GNEPathCreator::myBackSpaceLabel
protected

label for backSpace information

Definition at line 259 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), and showPathCreatorModule().

◆ myCollapsableFrame

FXVerticalFrame* MFXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

◆ myCollapseButton

FXButton* MFXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 109 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::onCmdCollapseButton().

◆ myCollapsed

bool MFXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 124 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::onCmdCollapseButton().

◆ myControlLabel

FXLabel* GNEPathCreator::myControlLabel
protected

label for control information

Definition at line 256 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().

◆ myCreationMode

int GNEPathCreator::myCreationMode
protected

◆ myExtendButton

MFXButtonTooltip* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 112 of file MFXGroupBoxModule.h.

◆ myFinishCreationButton

FXButton* GNEPathCreator::myFinishCreationButton
protected

button for finish route creation

Definition at line 241 of file GNEPathCreator.h.

Referenced by abortPathCreation(), addEdge(), addJunction(), addTAZ(), GNEPathCreator(), and showPathCreatorModule().

◆ myFrameParent

◆ myInfoRouteLabel

FXLabel* GNEPathCreator::myInfoRouteLabel
protected

label with route info

Definition at line 235 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), showPathCreatorModule(), and updateInfoRouteLabel().

◆ myLabel

FXLabel* MFXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable MFXGroupBoxModule

Definition at line 106 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::setText().

◆ myLoadButton

FXButton* MFXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 121 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myOptions

const int MFXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 97 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myPath

std::vector<Path> GNEPathCreator::myPath
protected

vector with current path

Definition at line 232 of file GNEPathCreator.h.

Referenced by clearPath(), drawTemporalRoute(), getPath(), recalculatePath(), and updateInfoRouteLabel().

◆ myRemoveLastInsertedElement

FXButton* GNEPathCreator::myRemoveLastInsertedElement
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().

◆ myResetWidthButton

FXButton* MFXGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 115 of file MFXGroupBoxModule.h.

◆ myRoute

GNEDemandElement* GNEPathCreator::myRoute
protected

route (usually a busStop)

Definition at line 229 of file GNEPathCreator.h.

Referenced by abortPathCreation(), addRoute(), clearPath(), getRoute(), and recalculatePath().

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 118 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::toggleSaveButton().

◆ mySelectedEdges

std::vector<GNEEdge*> GNEPathCreator::mySelectedEdges
protected

◆ mySelectedJunctions

std::vector<GNEJunction*> GNEPathCreator::mySelectedJunctions
protected

◆ mySelectedTAZs

std::vector<GNETAZ*> GNEPathCreator::mySelectedTAZs
protected

vector with selected TAZs

Definition at line 223 of file GNEPathCreator.h.

Referenced by abortPathCreation(), addTAZ(), clearPath(), drawTemporalRoute(), and getSelectedTAZs().

◆ myShiftLabel

FXLabel* GNEPathCreator::myShiftLabel
protected

label for shift information

Definition at line 253 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), onCmdShowCandidateEdges(), and showPathCreatorModule().

◆ myShowCandidateEdges

FXCheckButton* GNEPathCreator::myShowCandidateEdges
protected

◆ myUseLastRoute

FXButton* GNEPathCreator::myUseLastRoute
protected

button for use last inserted route

Definition at line 238 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), and showPathCreatorModule().

◆ myVClass

SUMOVehicleClass GNEPathCreator::myVClass
protected

current vClass

Definition at line 214 of file GNEPathCreator.h.

Referenced by getVClass(), recalculatePath(), setVClass(), and updateEdgeColors().


The documentation for this class was generated from the following files: