Eclipse SUMO - Simulation of Urban MObility
GNEPlanCreator Class Reference

#include <GNEPlanCreator.h>

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

Data Structures

class  PlanPath
 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 (GNELane *lane)
 add edge (clicking over lanes) More...
 
bool addJunction (GNEJunction *junction)
 add junction More...
 
bool addRoute (GNEDemandElement *route)
 add route More...
 
bool addStoppingPlace (GNEAdditional *stoppingPlace)
 add from to stoppingPlace More...
 
bool addTAZ (GNEAdditional *taz)
 add TAZ More...
 
void drawTemporalRoute (const GUIVisualizationSettings &s) const
 draw temporal route More...
 
GNEAdditionalgetBusStop () const
 get busStop More...
 
double getClickedPositionOverLane () const
 get clicked position over lane More...
 
FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toggled) More...
 
const std::vector< std::string > getConsecutiveEdgeIDs () const
 get consecutive edge IDs More...
 
const std::vector< GNEEdge * > getConsecutiveEdges () const
 get consecutive edge More...
 
GNEAdditionalgetContainerStop () const
 get containerStop More...
 
GNEEdgegetEdge () const
 get edge More...
 
GNEAdditionalgetFromBusStop () const
 get from bus stop More...
 
GNEAdditionalgetFromContainerStop () const
 get from container stop More...
 
GNEEdgegetFromEdge () const
 get from edge More...
 
GNEJunctiongetFromJunction () const
 get from junction More...
 
GNEAdditionalgetFromTAZ () const
 get from TAZ More...
 
GNEAdditionalgetFromTrainStop () const
 get from train stop More...
 
const std::vector< PlanPath > & getPath () const
 get path route More...
 
GNEDemandElementgetRoute () const
 get route More...
 
GNEAdditionalgetToBusStop () const
 get to bus stop More...
 
GNEAdditionalgetToContainerStop () const
 get to container stop More...
 
GNEEdgegetToEdge () const
 get to edge More...
 
GNEJunctiongetToJunction () const
 get to junction More...
 
GNEAdditionalgetToTAZ () const
 get to TAZ More...
 
GNEAdditionalgetToTrainStop () const
 get to train stop More...
 
GNEAdditionalgetTrainStop () const
 get trainStop More...
 
 GNEPlanCreator (GNEFrame *frameParent)
 default constructor More...
 
void hidePathCreatorModule ()
 show GNEPlanCreator 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...
 
bool planCanBeCreated (const GNEDemandElement *planTemplate) const
 check if plan can be created More...
 
void removeLastElement ()
 remove path element More...
 
void setText (const std::string &text)
 set text More...
 
void showPlanCreatorModule (const GNEPlanSelector *planSelector, const GNEDemandElement *previousPlan)
 show plan creator for the given tag property More...
 
 ~GNEPlanCreator ()
 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...
 

Protected Types

enum  PlanParents {
  CONSECUTIVE_EDGES = 1 << 0 , ROUTE = 1 << 1 , EDGE = 1 << 2 , BUSSTOP = 1 << 3 ,
  TRAINSTOP = 1 << 4 , CONTAINERSTOP = 1 << 5 , START_EDGE = 1 << 6 , START_TAZ = 1 << 7 ,
  START_JUNCTION = 1 << 8 , START_BUSSTOP = 1 << 9 , START_TRAINSTOP = 1 << 10 , START_CONTAINERSTOP = 1 << 11 ,
  END_EDGE = 1 << 12 , END_TAZ = 1 << 13 , END_JUNCTION = 1 << 14 , END_BUSSTOP = 1 << 15 ,
  END_TRAINSTOP = 1 << 16 , END_CONTAINERSTOP = 1 << 17
}
 FOX need this. More...
 

Protected Member Functions

void clearPath ()
 clear edges 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 toggleSaveButton (const bool value)
 enable or disable save buttons More...
 

Protected Attributes

FXButton * myAbortCreationButton
 button for abort route creation More...
 
double myClickedPositionOverLane = 0
 clicked position over lane More...
 
std::vector< GNEEdge * > myConsecutiveEdges
 vector with consecutive edges More...
 
GNEEdgemyEdge = nullptr
 ege More...
 
FXButton * myFinishCreationButton
 button for finish route creation More...
 
GNEFramemyFrameParent
 current frame parent More...
 
GNEEdgemyFromEdge = nullptr
 from edge More...
 
GNEJunctionmyFromJunction = nullptr
 from junction More...
 
GNEAdditionalmyFromStoppingPlace = nullptr
 from StoppingPlace More...
 
GNEAdditionalmyFromTAZ = nullptr
 from TAZ More...
 
FXLabel * myInfoLabel
 info label More...
 
std::vector< PlanPathmyPath
 vector with current path More...
 
int myPlanParents
 allowed plan parents More...
 
const GNEDemandElementmyPreviousPlanElement = nullptr
 previous person plan element More...
 
FXButton * myRemoveLastInsertedElement
 button for removing last inserted element More...
 
GNEDemandElementmyRoute = nullptr
 route More...
 
GNEAdditionalmyStoppingPlace = nullptr
 stoppingPlace More...
 
GNEEdgemyToEdge = nullptr
 to edge More...
 
GNEJunctionmyToJunction = nullptr
 to junction More...
 
GNEAdditionalmyToStoppingPlace = nullptr
 to StoppingPlace More...
 
GNEAdditionalmyToTAZ = nullptr
 to TAZ More...
 
FXButton * myUseLastRoute
 button for use last inserted route More...
 
SUMOVehicleClass myVClass
 current vClass More...
 

Private Member Functions

bool addConsecutiveEdge (GNEEdge *edge)
 add consecutive edge More...
 
bool addFromToEdge (GNEEdge *edge)
 add from to edge More...
 
bool addFromToJunction (GNEJunction *junction)
 add junction More...
 
bool addFromToStoppingPlace (GNEAdditional *stoppingPlace)
 add from to stoppingPlace More...
 
bool addFromToTAZ (GNEAdditional *taz)
 add TAZ More...
 
bool addSingleEdge (GNELane *lane)
 add edge More...
 
bool addSingleStoppingPlace (GNEAdditional *stoppingPlace)
 add stoppingPlace More...
 
int getNumberOfSelectedElements () const
 get number of selected elements More...
 
 GNEPlanCreator (GNEPlanCreator *)=delete
 Invalidated copy constructor. More...
 
void hideCreationButtons ()
 hide creation buttons More...
 
GNEPlanCreatoroperator= (GNEPlanCreator *)=delete
 Invalidated assignment operator. More...
 
void showCreationButtons ()
 show creation buttons More...
 
void updateInfoLabel ()
 update info label More...
 
void updateRemoveLastItemButton () const
 check if enable remove last item button 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 GNEPlanCreator.h.

Member Enumeration Documentation

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 38 of file MFXGroupBoxModule.h.

◆ PlanParents

FOX need this.

Enumerator
CONSECUTIVE_EDGES 
ROUTE 
EDGE 
BUSSTOP 
TRAINSTOP 
CONTAINERSTOP 
START_EDGE 
START_TAZ 
START_JUNCTION 
START_BUSSTOP 
START_TRAINSTOP 
START_CONTAINERSTOP 
END_EDGE 
END_TAZ 
END_JUNCTION 
END_BUSSTOP 
END_TRAINSTOP 
END_CONTAINERSTOP 

Definition at line 211 of file GNEPlanCreator.h.

Constructor & Destructor Documentation

◆ GNEPlanCreator() [1/2]

◆ ~GNEPlanCreator()

GNEPlanCreator::~GNEPlanCreator ( )

destructor

Definition at line 176 of file GNEPlanCreator.cpp.

◆ GNEPlanCreator() [2/2]

GNEPlanCreator::GNEPlanCreator ( GNEPlanCreator )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ abortPathCreation()

◆ addConsecutiveEdge()

bool GNEPlanCreator::addConsecutiveEdge ( GNEEdge edge)
private

add consecutive edge

Definition at line 920 of file GNEPlanCreator.cpp.

References myAbortCreationButton, myConsecutiveEdges, myFinishCreationButton, recalculatePath(), TL, updateRemoveLastItemButton(), and WRITE_WARNING.

Referenced by addEdge().

Here is the caller graph for this function:

◆ addEdge()

bool GNEPlanCreator::addEdge ( GNELane lane)

add edge (clicking over lanes)

Definition at line 350 of file GNEPlanCreator.cpp.

References addConsecutiveEdge(), addFromToEdge(), addSingleEdge(), CONSECUTIVE_EDGES, EDGE, END_EDGE, GNELane::getParentEdge(), myPlanParents, and START_EDGE.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ addFromToEdge()

bool GNEPlanCreator::addFromToEdge ( GNEEdge edge)
private

add from to edge

Definition at line 1012 of file GNEPlanCreator.cpp.

References getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myFromEdge, myToEdge, recalculatePath(), TL, updateRemoveLastItemButton(), and WRITE_WARNING.

Referenced by addEdge(), and showPlanCreatorModule().

Here is the caller graph for this function:

◆ addFromToJunction()

bool GNEPlanCreator::addFromToJunction ( GNEJunction junction)
private

add junction

Definition at line 944 of file GNEPlanCreator.cpp.

References getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myFromJunction, myToJunction, recalculatePath(), TL, updateRemoveLastItemButton(), and WRITE_WARNING.

Referenced by addJunction(), and showPlanCreatorModule().

Here is the caller graph for this function:

◆ addFromToStoppingPlace()

bool GNEPlanCreator::addFromToStoppingPlace ( GNEAdditional stoppingPlace)
private

add from to stoppingPlace

Definition at line 1047 of file GNEPlanCreator.cpp.

References GNEApplicationWindow::disableUndoRedo(), GNEViewParent::getGNEAppWindows(), getNumberOfSelectedElements(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), myAbortCreationButton, myFinishCreationButton, myFrameParent, myFromStoppingPlace, myRemoveLastInsertedElement, myToStoppingPlace, recalculatePath(), TL, and WRITE_WARNING.

Referenced by addStoppingPlace(), and showPlanCreatorModule().

Here is the caller graph for this function:

◆ addFromToTAZ()

bool GNEPlanCreator::addFromToTAZ ( GNEAdditional taz)
private

add TAZ

Definition at line 978 of file GNEPlanCreator.cpp.

References getNumberOfSelectedElements(), myAbortCreationButton, myFinishCreationButton, myFromTAZ, myToTAZ, recalculatePath(), TAZ, TL, updateRemoveLastItemButton(), and WRITE_WARNING.

Referenced by addTAZ(), and showPlanCreatorModule().

Here is the caller graph for this function:

◆ addJunction()

bool GNEPlanCreator::addJunction ( GNEJunction junction)

add junction

Definition at line 365 of file GNEPlanCreator.cpp.

References addFromToJunction(), END_JUNCTION, myPlanParents, and START_JUNCTION.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ addRoute()

bool GNEPlanCreator::addRoute ( GNEDemandElement route)

add route

Definition at line 337 of file GNEPlanCreator.cpp.

References GNEFrame::createPath(), myFrameParent, myPlanParents, myRoute, and ROUTE.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ addSingleEdge()

bool GNEPlanCreator::addSingleEdge ( GNELane lane)
private

add edge

Definition at line 899 of file GNEPlanCreator.cpp.

References GNEFrame::createPath(), GNELane::getLaneShape(), GNELane::getParentEdge(), GUISUMOAbstractView::getPositionInformation(), GNEFrame::getViewNet(), myClickedPositionOverLane, myEdge, myFrameParent, and PositionVector::nearest_offset_to_point2D().

Referenced by addEdge().

Here is the caller graph for this function:

◆ addSingleStoppingPlace()

bool GNEPlanCreator::addSingleStoppingPlace ( GNEAdditional stoppingPlace)
private

add stoppingPlace

Definition at line 911 of file GNEPlanCreator.cpp.

References GNEFrame::createPath(), myFrameParent, and myStoppingPlace.

Referenced by addStoppingPlace().

Here is the caller graph for this function:

◆ addStoppingPlace()

bool GNEPlanCreator::addStoppingPlace ( GNEAdditional stoppingPlace)

◆ addTAZ()

bool GNEPlanCreator::addTAZ ( GNEAdditional taz)

add TAZ

Definition at line 375 of file GNEPlanCreator.cpp.

References addFromToTAZ(), END_TAZ, myPlanParents, and START_TAZ.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ clearPath()

void GNEPlanCreator::clearPath ( )
protected

clear edges

Definition at line 749 of file GNEPlanCreator.cpp.

References myClickedPositionOverLane, myConsecutiveEdges, myEdge, myFromEdge, myFromJunction, myFromStoppingPlace, myFromTAZ, myPath, myRoute, myStoppingPlace, myToEdge, myToJunction, myToStoppingPlace, and myToTAZ.

Referenced by abortPathCreation(), and hidePathCreatorModule().

Here is the caller graph for this function:

◆ drawTemporalRoute()

◆ getBusStop()

GNEAdditional * GNEPlanCreator::getBusStop ( ) const

get busStop

Definition at line 531 of file GNEPlanCreator.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myStoppingPlace, and SUMO_TAG_BUS_STOP.

Referenced by GNERouteHandler::buildPersonPlan(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getClickedPositionOverLane()

double GNEPlanCreator::getClickedPositionOverLane ( ) const

get clicked position over lane

Definition at line 561 of file GNEPlanCreator.cpp.

References myClickedPositionOverLane.

Referenced by GNERouteHandler::buildContainerPlan(), and GNERouteHandler::buildPersonPlan().

Here is the caller graph for this function:

◆ 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::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), 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().

◆ getConsecutiveEdgeIDs()

const std::vector< std::string > GNEPlanCreator::getConsecutiveEdgeIDs ( ) const

get consecutive edge IDs

Definition at line 413 of file GNEPlanCreator.cpp.

References myConsecutiveEdges.

Referenced by GNERouteHandler::buildContainerPlan(), and GNERouteHandler::buildPersonPlan().

Here is the caller graph for this function:

◆ getConsecutiveEdges()

const std::vector< GNEEdge * > GNEPlanCreator::getConsecutiveEdges ( ) const

get consecutive edge

Definition at line 407 of file GNEPlanCreator.cpp.

References myConsecutiveEdges.

Referenced by GNEEdge::checkDrawFromContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getContainerStop()

GNEAdditional * GNEPlanCreator::getContainerStop ( ) const

get containerStop

Definition at line 551 of file GNEPlanCreator.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myStoppingPlace, and SUMO_TAG_CONTAINER_STOP.

Referenced by GNERouteHandler::buildContainerPlan(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getEdge()

GNEEdge * GNEPlanCreator::getEdge ( ) const

get edge

Definition at line 525 of file GNEPlanCreator.cpp.

References myEdge.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getFromBusStop()

GNEAdditional * GNEPlanCreator::getFromBusStop ( ) const

get from bus stop

Definition at line 459 of file GNEPlanCreator.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myFromStoppingPlace, and SUMO_TAG_BUS_STOP.

Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawFromContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getFromContainerStop()

GNEAdditional * GNEPlanCreator::getFromContainerStop ( ) const

get from container stop

Definition at line 499 of file GNEPlanCreator.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myFromStoppingPlace, and SUMO_TAG_CONTAINER_STOP.

Referenced by GNERouteHandler::buildContainerPlan(), GNEAdditional::checkDrawFromContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getFromEdge()

GNEEdge * GNEPlanCreator::getFromEdge ( ) const

get from edge

Definition at line 423 of file GNEPlanCreator.cpp.

References myFromEdge.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEEdge::checkDrawFromContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getFromJunction()

GNEJunction * GNEPlanCreator::getFromJunction ( ) const

get from junction

Definition at line 435 of file GNEPlanCreator.cpp.

References myFromJunction.

Referenced by GNERouteHandler::buildPersonPlan(), GNEJunction::checkDrawFromContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getFromTAZ()

GNEAdditional * GNEPlanCreator::getFromTAZ ( ) const

get from TAZ

Definition at line 447 of file GNEPlanCreator.cpp.

References myFromTAZ.

Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawFromContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getFromTrainStop()

GNEAdditional * GNEPlanCreator::getFromTrainStop ( ) const

get from train stop

Definition at line 479 of file GNEPlanCreator.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myFromStoppingPlace, and SUMO_TAG_TRAIN_STOP.

Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawFromContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getNumberOfSelectedElements()

int GNEPlanCreator::getNumberOfSelectedElements ( ) const
private

get number of selected elements

Definition at line 809 of file GNEPlanCreator.cpp.

References myConsecutiveEdges, myFromEdge, myFromJunction, myFromStoppingPlace, myFromTAZ, myToEdge, myToJunction, myToStoppingPlace, and myToTAZ.

Referenced by abortPathCreation(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), and updateRemoveLastItemButton().

Here is the caller graph for this function:

◆ getPath()

const std::vector< GNEPlanCreator::PlanPath > & GNEPlanCreator::getPath ( ) const

get path route

Definition at line 567 of file GNEPlanCreator.cpp.

References myPath.

◆ getRoute()

GNEDemandElement * GNEPlanCreator::getRoute ( ) const

get route

Definition at line 519 of file GNEPlanCreator.cpp.

References myRoute.

Referenced by GNERouteHandler::buildPersonPlan(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getToBusStop()

GNEAdditional * GNEPlanCreator::getToBusStop ( ) const

get to bus stop

Definition at line 469 of file GNEPlanCreator.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myToStoppingPlace, and SUMO_TAG_BUS_STOP.

Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawToContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getToContainerStop()

GNEAdditional * GNEPlanCreator::getToContainerStop ( ) const

get to container stop

Definition at line 509 of file GNEPlanCreator.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myToStoppingPlace, and SUMO_TAG_CONTAINER_STOP.

Referenced by GNERouteHandler::buildContainerPlan(), GNEAdditional::checkDrawToContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getToEdge()

GNEEdge * GNEPlanCreator::getToEdge ( ) const

get to edge

Definition at line 429 of file GNEPlanCreator.cpp.

References myToEdge.

Referenced by GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildPersonPlan(), GNEEdge::checkDrawToContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getToJunction()

GNEJunction * GNEPlanCreator::getToJunction ( ) const

get to junction

Definition at line 441 of file GNEPlanCreator.cpp.

References myToJunction.

Referenced by GNERouteHandler::buildPersonPlan(), GNEJunction::checkDrawToContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getToTAZ()

GNEAdditional * GNEPlanCreator::getToTAZ ( ) const

get to TAZ

Definition at line 453 of file GNEPlanCreator.cpp.

References myToTAZ.

Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawToContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getToTrainStop()

GNEAdditional * GNEPlanCreator::getToTrainStop ( ) const

get to train stop

Definition at line 489 of file GNEPlanCreator.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myToStoppingPlace, and SUMO_TAG_TRAIN_STOP.

Referenced by GNERouteHandler::buildPersonPlan(), GNEAdditional::checkDrawToContour(), and planCanBeCreated().

Here is the caller graph for this function:

◆ getTrainStop()

GNEAdditional * GNEPlanCreator::getTrainStop ( ) const

get trainStop

Definition at line 541 of file GNEPlanCreator.cpp.

References GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), myStoppingPlace, and SUMO_TAG_TRAIN_STOP.

Referenced by GNERouteHandler::buildPersonPlan(), and planCanBeCreated().

Here is the caller graph for this function:

◆ hideCreationButtons()

void GNEPlanCreator::hideCreationButtons ( )
private

hide creation buttons

Definition at line 849 of file GNEPlanCreator.cpp.

References myAbortCreationButton, myFinishCreationButton, and myRemoveLastInsertedElement.

Referenced by showPlanCreatorModule().

Here is the caller graph for this function:

◆ hidePathCreatorModule()

void GNEPlanCreator::hidePathCreatorModule ( )

◆ 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 GNEPlanCreator::onCmdAbortPathCreation ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user click over button "Abort route creation".

Definition at line 733 of file GNEPlanCreator.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 GNEPlanCreator::onCmdCreatePath ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 710 of file GNEPlanCreator.cpp.

References GNEFrame::createPath(), and myFrameParent.

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 GNEPlanCreator::onCmdRemoveLastElement ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user click over button "Remove las inserted edge".

Definition at line 741 of file GNEPlanCreator.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:

◆ onCmdUseLastRoute()

long GNEPlanCreator::onCmdUseLastRoute ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user click over button "Use last route".

Definition at line 717 of file GNEPlanCreator.cpp.

References GNEFrame::createPath(), and myFrameParent.

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 GNEPlanCreator::onUpdUseLastRoute ( FXObject *  sender,
FXSelector  ,
void *   
)

Called when update button "Use last route".

Definition at line 724 of file GNEPlanCreator.cpp.

References GNEViewNet::getLastCreatedRoute(), GNEFrame::getViewNet(), myFrameParent, myPlanParents, and ROUTE.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

GNEPlanCreator& GNEPlanCreator::operator= ( GNEPlanCreator )
privatedelete

Invalidated assignment operator.

◆ planCanBeCreated()

◆ recalculatePath()

void GNEPlanCreator::recalculatePath ( )
protected

recalculate path

Definition at line 770 of file GNEPlanCreator.cpp.

References GNEHierarchicalElement::getParentLanes(), GNEFrame::getViewNet(), myConsecutiveEdges, myFrameParent, myFromEdge, myFromJunction, myFromStoppingPlace, myPath, myToEdge, myToJunction, myToStoppingPlace, and myVClass.

Referenced by addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToStoppingPlace(), addFromToTAZ(), and removeLastElement().

Here is the caller graph for this function:

◆ removeLastElement()

void GNEPlanCreator::removeLastElement ( )

remove path element

Definition at line 680 of file GNEPlanCreator.cpp.

References myConsecutiveEdges, myFromEdge, myFromJunction, myFromStoppingPlace, myFromTAZ, myRemoveLastInsertedElement, myToEdge, myToJunction, myToStoppingPlace, myToTAZ, recalculatePath(), and updateRemoveLastItemButton().

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:

◆ 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:

◆ showCreationButtons()

void GNEPlanCreator::showCreationButtons ( )
private

show creation buttons

Definition at line 841 of file GNEPlanCreator.cpp.

References myAbortCreationButton, myFinishCreationButton, and myRemoveLastInsertedElement.

Referenced by showPlanCreatorModule().

Here is the caller graph for this function:

◆ showPlanCreatorModule()

◆ toggleSaveButton()

void MFXGroupBoxModule::toggleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 238 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::mySaveButton.

◆ updateInfoLabel()

void GNEPlanCreator::updateInfoLabel ( )
private

update info label

Definition at line 857 of file GNEPlanCreator.cpp.

References BUSSTOP, CONSECUTIVE_EDGES, CONTAINERSTOP, EDGE, END_BUSSTOP, END_CONTAINERSTOP, END_EDGE, END_JUNCTION, END_TAZ, END_TRAINSTOP, myInfoLabel, myPlanParents, ROUTE, START_BUSSTOP, START_CONTAINERSTOP, START_EDGE, START_JUNCTION, START_TAZ, START_TRAINSTOP, TL, and TRAINSTOP.

Referenced by showPlanCreatorModule().

Here is the caller graph for this function:

◆ updateRemoveLastItemButton()

void GNEPlanCreator::updateRemoveLastItemButton ( ) const
private

check if enable remove last item button

Definition at line 823 of file GNEPlanCreator.cpp.

References getNumberOfSelectedElements(), myPreviousPlanElement, and myRemoveLastInsertedElement.

Referenced by addConsecutiveEdge(), addFromToEdge(), addFromToJunction(), addFromToTAZ(), and removeLastElement().

Here is the caller graph for this function:

Field Documentation

◆ myAbortCreationButton

FXButton* GNEPlanCreator::myAbortCreationButton
protected

◆ myClickedPositionOverLane

double GNEPlanCreator::myClickedPositionOverLane = 0
protected

clicked position over lane

Definition at line 287 of file GNEPlanCreator.h.

Referenced by addSingleEdge(), clearPath(), and getClickedPositionOverLane().

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

◆ myConsecutiveEdges

std::vector<GNEEdge*> GNEPlanCreator::myConsecutiveEdges
protected

◆ myEdge

GNEEdge* GNEPlanCreator::myEdge = nullptr
protected

ege

Definition at line 281 of file GNEPlanCreator.h.

Referenced by addSingleEdge(), clearPath(), and getEdge().

◆ myExtendButton

MFXButtonTooltip* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 112 of file MFXGroupBoxModule.h.

◆ myFinishCreationButton

FXButton* GNEPlanCreator::myFinishCreationButton
protected

◆ myFrameParent

GNEFrame* GNEPlanCreator::myFrameParent
protected

◆ myFromEdge

GNEEdge* GNEPlanCreator::myFromEdge = nullptr
protected

◆ myFromJunction

GNEJunction* GNEPlanCreator::myFromJunction = nullptr
protected

◆ myFromStoppingPlace

GNEAdditional* GNEPlanCreator::myFromStoppingPlace = nullptr
protected

◆ myFromTAZ

GNEAdditional* GNEPlanCreator::myFromTAZ = nullptr
protected

◆ myInfoLabel

FXLabel* GNEPlanCreator::myInfoLabel
protected

info label

Definition at line 305 of file GNEPlanCreator.h.

Referenced by GNEPlanCreator(), and updateInfoLabel().

◆ 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<PlanPath> GNEPlanCreator::myPath
protected

vector with current path

Definition at line 290 of file GNEPlanCreator.h.

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

◆ myPlanParents

int GNEPlanCreator::myPlanParents
protected

◆ myPreviousPlanElement

const GNEDemandElement* GNEPlanCreator::myPreviousPlanElement = nullptr
protected

previous person plan element

Definition at line 248 of file GNEPlanCreator.h.

Referenced by showPlanCreatorModule(), and updateRemoveLastItemButton().

◆ myRemoveLastInsertedElement

FXButton* GNEPlanCreator::myRemoveLastInsertedElement
protected

◆ myResetWidthButton

FXButton* MFXGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 115 of file MFXGroupBoxModule.h.

◆ myRoute

GNEDemandElement* GNEPlanCreator::myRoute = nullptr
protected

route

Definition at line 278 of file GNEPlanCreator.h.

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

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

◆ myStoppingPlace

GNEAdditional* GNEPlanCreator::myStoppingPlace = nullptr
protected

stoppingPlace

Definition at line 284 of file GNEPlanCreator.h.

Referenced by addSingleStoppingPlace(), clearPath(), getBusStop(), getContainerStop(), and getTrainStop().

◆ myToEdge

GNEEdge* GNEPlanCreator::myToEdge = nullptr
protected

◆ myToJunction

GNEJunction* GNEPlanCreator::myToJunction = nullptr
protected

◆ myToStoppingPlace

GNEAdditional* GNEPlanCreator::myToStoppingPlace = nullptr
protected

◆ myToTAZ

GNEAdditional* GNEPlanCreator::myToTAZ = nullptr
protected

◆ myUseLastRoute

FXButton* GNEPlanCreator::myUseLastRoute
protected

button for use last inserted route

Definition at line 293 of file GNEPlanCreator.h.

Referenced by GNEPlanCreator(), and showPlanCreatorModule().

◆ myVClass

SUMOVehicleClass GNEPlanCreator::myVClass
protected

current vClass

Definition at line 242 of file GNEPlanCreator.h.

Referenced by recalculatePath(), and showPlanCreatorModule().


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