Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
 
bool addEdge (GNEEdge *edge, const bool shiftKeyPressed, const bool controlKeyPressed)
 add edge
 
bool addJunction (GNEJunction *junction)
 add junction
 
bool addRoute (GNEDemandElement *route)
 add route
 
bool addTAZ (GNETAZ *taz)
 add TAZ
 
void clearEdgeColors ()
 clear edge colors
 
void clearJunctionColors ()
 clear junction colors
 
bool createPath (const bool useLastRoute)
 create path
 
bool drawCandidateEdgesWithSpecialColor () const
 draw candidate edges with special color (Only for candidates, special and conflicted)
 
void drawTemporalRoute (const GUIVisualizationSettings &s) const
 draw temporal route
 
FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toggled)
 
const std::vector< Path > & getPath () const
 get path route
 
GNEDemandElementgetRoute () const
 get route
 
const std::vector< GNEEdge * > & getSelectedEdges () const
 get current selected edges
 
const std::vector< GNEJunction * > & getSelectedJunctions () const
 get current selected junctions
 
const std::vector< GNETAZ * > & getSelectedTAZs () const
 get current selected TAZs
 
SUMOVehicleClass getVClass () const
 get vClass
 
 GNEPathCreator (GNEFrame *frameParent, GNEPathManager *pathManager)
 default constructor
 
void hidePathCreatorModule ()
 show GNEPathCreator
 
long onCmdCollapseButton (FXObject *, FXSelector, void *)
 collapse GroupBoxModule
 
long onCmdExtendButton (FXObject *, FXSelector, void *)
 extends GroupBoxModule
 
long onCmdLoadButton (FXObject *, FXSelector, void *)
 load contents
 
long onCmdResetButton (FXObject *, FXSelector, void *)
 reset GroupBoxModule
 
long onCmdSaveButton (FXObject *, FXSelector, void *)
 save contents
 
long onPaint (FXObject *, FXSelector, void *)
 draw MFXGroupBoxModule
 
long onUpdResetButton (FXObject *, FXSelector, void *)
 update reset GroupBoxModule
 
void removeLastElement ()
 remove path element
 
void setText (const std::string &text)
 set text
 
void setVClass (SUMOVehicleClass vClass)
 set vClass
 
void showPathCreatorModule (const GNETagProperties &tagProperty, const bool consecutives)
 show GNEPathCreator for the given tag
 
void updateEdgeColors ()
 update edge colors
 
void updateJunctionColors ()
 update junction colors
 
 ~GNEPathCreator ()
 destructor
 
FOX-callbacks

Called when the user click over button "Finish route creation"

long onCmdCreatePath (FXObject *, FXSelector, void *)
 
long onCmdUseLastRoute (FXObject *, FXSelector, void *)
 Called when the user click over button "Use last route".
 
long onUpdUseLastRoute (FXObject *, FXSelector, void *)
 Called when update button "Use last route".
 
long onCmdAbortPathCreation (FXObject *, FXSelector, void *)
 Called when the user click over button "Abort route creation".
 
long onCmdRemoveLastElement (FXObject *, FXSelector, void *)
 Called when the user click over button "Remove las inserted edge".
 
long onCmdShowCandidateEdges (FXObject *, FXSelector, void *)
 Called when the user click over check button "show candidate edges".
 

Protected Types

enum  Mode {
  ONLY_FROMTO = 1 << 0 , CONSECUTIVE_EDGES = 1 << 1 , NONCONSECUTIVE_EDGES = 1 << 2 , START_EDGE = 1 << 3 ,
  END_EDGE = 1 << 4 , START_JUNCTION = 1 << 5 , END_JUNCTION = 1 << 6 , START_TAZ = 1 << 7 ,
  END_TAZ = 1 << 8 , ROUTE = 1 << 9 , SHOW_CANDIDATE_EDGES = 1 << 10 , SHOW_CANDIDATE_JUNCTIONS = 1 << 11
}
 

Protected Member Functions

void clearPath ()
 clear edges (and restore colors)
 
virtual bool loadContents () const
 load contents (can be reimplemented in children)
 
void recalculatePath ()
 recalculate path
 
virtual bool saveContents () const
 save contents (can be reimplemented in children)
 
void setPossibleCandidates (GNEEdge *originEdge, const SUMOVehicleClass vClass)
 set edgereachability (This function will be called recursively)
 
void setSpecialCandidates (GNEEdge *originEdge)
 set special candidates (This function will be called recursively)
 
void toggleSaveButton (const bool value)
 enable or disable save buttons
 
void updateInfoRouteLabel ()
 update InfoRouteLabel
 

Protected Attributes

FXButton * myAbortCreationButton
 button for abort route creation
 
FXLabel * myBackSpaceLabel
 label for backSpace information
 
FXLabel * myControlLabel
 label for control information
 
int myCreationMode
 current creation mode
 
FXButton * myFinishCreationButton
 button for finish route creation
 
GNEFramemyFrameParent
 current frame parent
 
FXLabel * myInfoRouteLabel
 label with route info
 
std::vector< PathmyPath
 vector with current path
 
GNEPathManagermyPathManager
 path manager
 
FXButton * myRemoveLastInsertedElement
 button for removing last inserted element
 
GNEDemandElementmyRoute
 route (usually a busStop)
 
std::vector< GNEEdge * > mySelectedEdges
 vector with selected edges
 
std::vector< GNEJunction * > mySelectedJunctions
 vector with selected junctions
 
std::vector< GNETAZ * > mySelectedTAZs
 vector with selected TAZs
 
FXLabel * myShiftLabel
 label for shift information
 
FXCheckButton * myShowCandidateEdges
 CheckBox for show candidate edges.
 
FXButton * myUseLastRoute
 button for use last inserted route
 
SUMOVehicleClass myVClass
 current vClass
 

Private Member Functions

 GNEPathCreator (GNEPathCreator *)=delete
 Invalidated copy constructor.
 
GNEPathCreatoroperator= (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
 
MFXButtonTooltipmyExtendButton = 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
 

Detailed Description

Definition at line 36 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 181 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 165 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 315 of file GNEPathCreator.cpp.

References GNEApplicationWindow::disableUndoRedoTemporally(), END_TAZ, GNEViewParent::getGNEAppWindows(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myCreationMode, myFinishCreationButton, myFrameParent, myRemoveLastInsertedElement, mySelectedTAZs, ONLY_FROMTO, START_TAZ, TAZ, TL, updateInfoRouteLabel(), and WRITE_WARNING.

Referenced by GNEVehicleFrame::addVehicle().

Here is the caller graph for this function:

◆ clearEdgeColors()

void GNEPathCreator::clearEdgeColors ( )

clear edge colors

Definition at line 577 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 568 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 831 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 683 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 487 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(), 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 481 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 475 of file GNEPathCreator.cpp.

References myRoute.

◆ getSelectedEdges()

const std::vector< GNEEdge * > & GNEPathCreator::getSelectedEdges ( ) const

get current selected edges

Definition at line 435 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 441 of file GNEPathCreator.cpp.

References mySelectedJunctions.

Referenced by 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 447 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 254 of file GNEPathCreator.cpp.

References myVClass.

◆ hidePathCreatorModule()

void GNEPathCreator::hidePathCreatorModule ( )

show GNEPathCreator

Definition at line 245 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 768 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 746 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 776 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 784 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 753 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 759 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 848 of file GNEPathCreator.cpp.

References GNEHierarchicalElement::getParentEdges(), myPath, myPathManager, 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 714 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 GNEFixDemandElements::FixOptions, and GNEFixNetworkElements::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 893 of file GNEPathCreator.cpp.

References GNEPathManager::PathCalculator::calculateReachability(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEViewNet::getNet(), GNEPathManager::getPathCalculator(), GNEFrame::getViewNet(), myFrameParent, and myPathManager.

Referenced by updateEdgeColors().

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 878 of file GNEPathCreator.cpp.

References GNEPathManager::PathCalculator::calculateReachability(), GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getEdges(), GNEViewNet::getNet(), GNEPathManager::getPathCalculator(), GNEFrame::getViewNet(), myFrameParent, myPathManager, and SVC_PEDESTRIAN.

Referenced by updateEdgeColors().

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 260 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 802 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 493 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 248 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 263 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 260 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 245 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 239 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 236 of file GNEPathCreator.h.

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

◆ myPathManager

GNEPathManager* GNEPathCreator::myPathManager
protected

path manager

Definition at line 215 of file GNEPathCreator.h.

Referenced by recalculatePath(), setPossibleCandidates(), and setSpecialCandidates().

◆ myRemoveLastInsertedElement

FXButton* GNEPathCreator::myRemoveLastInsertedElement
protected

button for removing last inserted element

Definition at line 251 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 233 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 227 of file GNEPathCreator.h.

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

◆ myShiftLabel

FXLabel* GNEPathCreator::myShiftLabel
protected

label for shift information

Definition at line 257 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 242 of file GNEPathCreator.h.

Referenced by GNEPathCreator(), and showPathCreatorModule().

◆ myVClass

SUMOVehicleClass GNEPathCreator::myVClass
protected

current vClass

Definition at line 218 of file GNEPathCreator.h.

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


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