Eclipse SUMO - Simulation of Urban MObility
GNERouteFrame Class Reference

#include <GNERouteFrame.h>

Inheritance diagram for GNERouteFrame:
Collaboration diagram for GNERouteFrame:

Data Structures

class  ConsecutiveEdges
 
class  NonConsecutiveEdges
 
class  RouteModeSelector
 

Public Types

enum  RouteMode { ROUTEMODE_INVALID, ROUTEMODE_CONSECUTIVE_EDGES, ROUTEMODE_NONCONSECUTIVE_EDGES }
 route creation modes More...
 

Public Member Functions

void drawTemporalRoute () const
 draw temporal route More...
 
void focusUpperElement ()
 focus upper element of frame More...
 
FXFont * getFrameHeaderFont () const
 get font of the header's frame More...
 
FXLabel * getFrameHeaderLabel () const
 get the label for the frame's header More...
 
GNEViewNetgetViewNet () const
 get view net More...
 
 GNERouteFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
 Constructor. More...
 
void handleEdgeClick (GNEEdge *clickedEdge)
 handle edge click More...
 
void hide ()
 hide delete frame More...
 
void hotkeyBackSpace ()
 function called when user press BACKSPACE key More...
 
void hotkeyEnter ()
 function called when user press ENTER key More...
 
void hotkeyEsc ()
 function called when user press ESC key More...
 
void setFrameWidth (int newWidth)
 set width of GNEFrame More...
 
void show ()
 show delete frame More...
 
virtual void updateFrameAfterUndoRedo ()
 function called after undo/redo in the current frame (can be reimplemented in frame children) More...
 
 ~GNERouteFrame ()
 Destructor. More...
 

Protected Member Functions

const RGBColorgetEdgeCandidateColor () const
 get edge candidate color More...
 
const RGBColorgetEdgeCandidateSelectedColor () const
 get selected color More...
 
const std::map< int, std::string > & getPredefinedTagsMML () const
 get predefinedTagsMML More...
 
void openHelpAttributesDialog (const GNEAttributeCarrier::TagProperties &tagProperties) const
 Open help attributes dialog. More...
 
functions called by moduls that can be reimplemented in frame children
virtual void tagSelected ()
 Tag selected in TagSelector. More...
 
virtual void demandElementSelected ()
 selected demand element in DemandElementSelector More...
 
virtual void edgePathCreated ()
 finish edge path creation More...
 
virtual bool shapeDrawed ()
 build a shaped element using the drawed shape (can be reimplemented in frame children) More...
 
virtual void attributeUpdated ()
 function called after set a valid attribute in AttributeCreator/AttributeEditor/GenericParametersEditor/... More...
 
virtual void attributesEditorExtendedDialogOpened ()
 open AttributesCreator extended dialog (can be reimplemented in frame children) More...
 

Protected Attributes

FXVerticalFrame * myContentFrame
 Vertical frame that holds all widgets of frame. More...
 
FXHorizontalFrame * myHeaderFrame
 fame for header elements More...
 
FXHorizontalFrame * myHeaderLeftFrame
 fame for left header elements More...
 
FXHorizontalFrame * myHeaderRightFrame
 fame for right header elements More...
 
GNEViewNetmyViewNet
 View Net. More...
 

Private Attributes

ConsecutiveEdgesmyConsecutiveEdges
 Create routes using consecutive edges modul. More...
 
NonConsecutiveEdgesmyNonConsecutiveEdges
 Create routes using non consecutive edges modul. More...
 
GNEFrameAttributesModuls::AttributesCreatormyRouteAttributes
 internal additional attributes More...
 
RouteModeSelectormyRouteModeSelector
 route mode selector More...
 

Detailed Description

The Widget for create route elements

Definition at line 32 of file GNERouteFrame.h.

Member Enumeration Documentation

◆ RouteMode

route creation modes

Enumerator
ROUTEMODE_INVALID 
ROUTEMODE_CONSECUTIVE_EDGES 
ROUTEMODE_NONCONSECUTIVE_EDGES 

Definition at line 37 of file GNERouteFrame.h.

Constructor & Destructor Documentation

◆ GNERouteFrame()

GNERouteFrame::GNERouteFrame ( FXHorizontalFrame *  horizontalFrameParent,
GNEViewNet viewNet 
)

Constructor.

parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame

Definition at line 717 of file GNERouteFrame.cpp.

References myConsecutiveEdges, myNonConsecutiveEdges, myRouteAttributes, myRouteModeSelector, ROUTEMODE_CONSECUTIVE_EDGES, and GNERouteFrame::RouteModeSelector::setCurrentRouteMode().

◆ ~GNERouteFrame()

GNERouteFrame::~GNERouteFrame ( )

Destructor.

Definition at line 737 of file GNERouteFrame.cpp.

Member Function Documentation

◆ attributesEditorExtendedDialogOpened()

void GNEFrame::attributesEditorExtendedDialogOpened ( )
protectedvirtualinherited

open AttributesCreator extended dialog (can be reimplemented in frame children)

Reimplemented in GNEVehicleTypeFrame.

Definition at line 191 of file GNEFrame.cpp.

Referenced by GNEFrame::GNEFrame(), and GNEFrameAttributesModuls::AttributesEditorExtended::onCmdOpenDialog().

◆ attributeUpdated()

void GNEFrame::attributeUpdated ( )
protectedvirtualinherited

◆ demandElementSelected()

void GNEFrame::demandElementSelected ( )
protectedvirtualinherited

◆ drawTemporalRoute()

◆ edgePathCreated()

void GNEFrame::edgePathCreated ( )
protectedvirtualinherited

finish edge path creation

Reimplemented in GNEVehicleFrame, and GNEPersonFrame.

Definition at line 172 of file GNEFrame.cpp.

Referenced by GNEFrame::GNEFrame(), and GNEFrameModuls::EdgePathCreator::onCmdFinishRouteCreation().

◆ focusUpperElement()

◆ getEdgeCandidateColor()

◆ getEdgeCandidateSelectedColor()

◆ getFrameHeaderFont()

FXFont * GNEFrame::getFrameHeaderFont ( ) const
inherited

get font of the header's frame

Definition at line 145 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderFont.

◆ getFrameHeaderLabel()

FXLabel * GNEFrame::getFrameHeaderLabel ( ) const
inherited

get the label for the frame's header

Definition at line 139 of file GNEFrame.cpp.

References GNEFrame::myFrameHeaderLabel.

Referenced by GNEProhibitionFrame::GNEProhibitionFrame(), and GNEInspectorFrame::inspectMultisection().

◆ getPredefinedTagsMML()

◆ getViewNet()

GNEViewNet * GNEFrame::getViewNet ( ) const
inherited

get view net

Definition at line 133 of file GNEFrame.cpp.

References GNEFrame::myViewNet.

Referenced by GNEAdditionalFrame::SelectorLaneParents::abortConsecutiveLaneSelector(), GNEFrameModuls::EdgePathCreator::addEdge(), GNEAdditionalFrame::SelectorLaneParents::addSelectedLane(), GNECrossingFrame::EdgesSelector::enableEdgeSelector(), GNEAdditionalFrame::SelectorEdgeChildren::getEdgeIdsSelected(), GNEAdditionalFrame::SelectorLaneChildren::getLaneIdsSelected(), GNEInspectorFrame::OverlappedInspection::inspectOverlappedAttributeCarrier(), GNERouteFrame::ConsecutiveEdges::onCmdAbortRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdAbortRoute(), GNEConnectorFrame::ConnectionModifications::onCmdCancelModifications(), GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections(), GNEInspectorFrame::TemplateEditor::onCmdCopyTemplate(), GNERouteFrame::ConsecutiveEdges::onCmdCreateRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdCreateRoute(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNERouteFrame::ConsecutiveEdges::onCmdRemoveLastRouteEdge(), GNEPersonTypeFrame::PersonTypeEditor::onCmdResetPersonType(), GNEConnectorFrame::ConnectionOperations::onCmdResetSelectedConnections(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdResetVehicleType(), GNEConnectorFrame::ConnectionModifications::onCmdSaveModifications(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadEnds(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNEFrameModuls::DemandElementSelector::onCmdSelectDemandElement(), GNEPersonTypeFrame::PersonTypeSelector::onCmdSelectItem(), GNEVehicleTypeFrame::VehicleTypeSelector::onCmdSelectItem(), GNEConnectorFrame::ConnectionOperations::onCmdSelectPass(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEInspectorFrame::GEOAttributesEditor::onCmdSetGEOAttribute(), GNEInspectorFrame::NeteditAttributesEditor::onCmdSetNeteditAttribute(), GNEFrameModuls::DemandElementSelector::refreshDemandElementSelector(), GNERouteFrame::ConsecutiveEdges::refreshEdgeCandidates(), GNEPersonTypeFrame::PersonTypeSelector::refreshPersonTypeSelector(), GNEFrameModuls::SelectorParent::refreshSelectorParentModul(), GNEVehicleTypeFrame::VehicleTypeSelector::refreshVehicleTypeSelector(), GNEDeleteFrame::removeAttributeCarrier(), GNECrossingFrame::EdgesSelector::restoreEdgeColors(), GNEInspectorFrame::GEOAttributesEditor::showGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::showNeteditAttributesEditor(), GNEAdditionalFrame::SelectorEdgeChildren::showSelectorEdgeChildrenModul(), GNEAdditionalFrame::SelectorLaneChildren::showSelectorLaneChildrenModul(), GNEInspectorFrame::TemplateEditor::showTemplateEditor(), GNEAdditionalFrame::SelectorEdgeChildren::updateUseSelectedEdges(), and GNEAdditionalFrame::SelectorLaneChildren::updateUseSelectedLanes().

◆ handleEdgeClick()

◆ hide()

void GNERouteFrame::hide ( )
virtual

◆ hotkeyBackSpace()

◆ hotkeyEnter()

◆ hotkeyEsc()

◆ openHelpAttributesDialog()

◆ setFrameWidth()

void GNEFrame::setFrameWidth ( int  newWidth)
inherited

set width of GNEFrame

Definition at line 126 of file GNEFrame.cpp.

References GNEFrame::myScrollWindowsContents.

Referenced by GNEViewParent::Frames::setWidth().

◆ shapeDrawed()

bool GNEFrame::shapeDrawed ( )
protectedvirtualinherited

build a shaped element using the drawed shape (can be reimplemented in frame children)

Reimplemented in GNETAZFrame, and GNEPolygonFrame.

Definition at line 178 of file GNEFrame.cpp.

Referenced by GNEFrame::GNEFrame(), GNEFrameModuls::DrawingShape::stopDrawing(), and GNEFrameAttributesModuls::DrawingShape::stopDrawing().

◆ show()

◆ tagSelected()

◆ updateFrameAfterUndoRedo()

void GNEFrame::updateFrameAfterUndoRedo ( )
virtualinherited

function called after undo/redo in the current frame (can be reimplemented in frame children)

Reimplemented in GNEInspectorFrame.

Definition at line 151 of file GNEFrame.cpp.

Referenced by GNEApplicationWindow::onCmdRedo(), and GNEApplicationWindow::onCmdUndo().

Field Documentation

◆ myConsecutiveEdges

◆ myContentFrame

FXVerticalFrame* GNEFrame::myContentFrame
protectedinherited

Vertical frame that holds all widgets of frame.

Definition at line 123 of file GNEFrame.h.

Referenced by GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNEInspectorFrame::inspectMultisection().

◆ myHeaderFrame

FXHorizontalFrame* GNEFrame::myHeaderFrame
protectedinherited

fame for header elements

Definition at line 126 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myHeaderLeftFrame

FXHorizontalFrame* GNEFrame::myHeaderLeftFrame
protectedinherited

◆ myHeaderRightFrame

FXHorizontalFrame* GNEFrame::myHeaderRightFrame
protectedinherited

fame for right header elements

Definition at line 132 of file GNEFrame.h.

Referenced by GNEFrame::GNEFrame().

◆ myNonConsecutiveEdges

◆ myRouteAttributes

◆ myRouteModeSelector

◆ myViewNet

GNEViewNet* GNEFrame::myViewNet
protectedinherited

View Net.

Definition at line 120 of file GNEFrame.h.

Referenced by GNEFrameModuls::DrawingShape::abortDrawing(), GNEFrameAttributesModuls::DrawingShape::abortDrawing(), GNEDeleteFrame::ACsToDelete(), GNESelectorFrame::ACsToSelected(), GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNEPersonPlanFrame::PersonPlanCreator::addEdge(), GNERouteFrame::ConsecutiveEdges::addEdge(), GNERouteFrame::NonConsecutiveEdges::addEdge(), GNEFrameModuls::EdgePathCreator::addEdge(), GNETAZFrame::addOrRemoveTAZMember(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEStopFrame::addStop(), GNETAZFrame::TAZCurrent::addTAZChild(), GNEVehicleFrame::addVehicle(), GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow(), GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverLanes(), GNEAdditionalFrame::buildAdditionalOverView(), GNEConnectorFrame::buildConnection(), GNETLSEditorFrame::buildIinternalLanes(), GNEPersonFrame::buildPerson(), GNEPersonFrame::buildPersonOverRoute(), GNEPersonFrame::buildPersonOverStop(), GNEProhibitionFrame::buildProhibition(), GNETLSEditorFrame::cleanup(), GNESelectorFrame::clearCurrentSelection(), GNEFrameModuls::EdgePathCreator::clearEdges(), GNEInspectorFrame::clearInspectedAC(), GNEFrameModuls::AttributeCarrierHierarchy::createPopUpMenu(), GNETAZFrame::dropTAZMembers(), GNEPersonFrame::edgePathCreated(), GNEVehicleFrame::edgePathCreated(), GNETLSEditorFrame::editJunction(), GNETAZFrame::TAZSaveChanges::enableButtonsAndBeginUndoList(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrameAttributesModuls::NeteditAttributes::getNeteditAttributesAndValues(), GNEFrame::getViewNet(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNETLSEditorFrame::handleChange(), handleEdgeClick(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEProhibitionFrame::handleProhibitionClick(), GNEFrame::hide(), GNEInspectorFrame::hide(), hotkeyBackSpace(), hotkeyEnter(), hotkeyEsc(), GNEConnectorFrame::initTargets(), GNEInspectorFrame::inspectSingleElement(), GNEPersonPlanFrame::PersonPlanCreator::onCmdAbortPersonPlanCreation(), GNERouteFrame::ConsecutiveEdges::onCmdAbortRoute(), GNERouteFrame::NonConsecutiveEdges::onCmdAbortRoute(), GNEProhibitionFrame::onCmdCancel(), GNETLSEditorFrame::onCmdCancel(), GNETAZFrame::TAZSaveChanges::onCmdCancelChanges(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdCenterItem(), GNEPersonTypeFrame::PersonTypeEditor::onCmdCopyPersonType(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdCopyVehicleType(), GNECrossingFrame::CreateCrossing::onCmdCreateCrossing(), GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI(), GNEPersonTypeFrame::PersonTypeEditor::onCmdCreatePersonType(), GNERouteFrame::NonConsecutiveEdges::onCmdCreateRoute(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdCreateVehicleType(), GNETLSEditorFrame::onCmdDefCreate(), GNETLSEditorFrame::onCmdDefDelete(), GNETLSEditorFrame::onCmdDefSwitch(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdDeleteItem(), GNEPersonTypeFrame::PersonTypeEditor::onCmdDeletePersonType(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdDeleteVehicleType(), GNEFrameAttributesModuls::GenericParametersEditor::onCmdEditGenericParameter(), GNEPersonPlanFrame::PersonPlanCreator::onCmdFinishPersonPlanCreation(), GNEFrameModuls::EdgePathCreator::onCmdFinishRouteCreation(), GNEInspectorFrame::onCmdGoBack(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdInspectItem(), GNESelectorFrame::SelectionOperation::onCmdInvert(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemDown(), GNEFrameModuls::AttributeCarrierHierarchy::onCmdMoveItemUp(), GNETLSEditorFrame::onCmdOK(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog(), GNETLSEditorFrame::onCmdPhaseSwitch(), GNEFrameModuls::EdgePathCreator::onCmdRemoveLastInsertedElement(), GNERouteFrame::NonConsecutiveEdges::onCmdRemoveLastRouteEdge(), GNEPersonTypeFrame::PersonTypeEditor::onCmdResetPersonType(), GNEVehicleTypeFrame::VehicleTypeEditor::onCmdResetVehicleType(), GNESelectorFrame::SelectionOperation::onCmdSave(), GNETAZFrame::TAZSaveChanges::onCmdSaveChanges(), GNESelectorFrame::VisualScaling::onCmdScaleSelection(), GNETAZFrame::TAZSelectionStatistics::onCmdSelectEdges(), GNESelectorFrame::ElementSet::onCmdSelectElementSet(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectRadioButton(), GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute(), GNEFrameAttributesModuls::GenericParametersEditor::onCmdSetGenericParameter(), GNETAZFrame::TAZSelectionStatistics::onCmdSetNewValues(), GNETAZFrame::TAZChildDefaultParameters::onCmdUseSelectedEdges(), GNETLSEditorFrame::parseTLSPrograms(), GNEPersonPlanFrame::personPlanCreated(), GNECreateEdgeFrame::processClick(), GNEPolygonFrame::processClick(), GNEInspectorFrame::processDemandSupermodeClick(), GNEInspectorFrame::processNetworkSupermodeClick(), GNEProhibitionFrame::ProhibitionLegend::ProhibitionLegend(), GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow(), GNESelectorFrame::ElementSet::refreshElementSet(), GNEFrameAttributesModuls::GenericParametersEditor::refreshGenericParametersEditor(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNETAZFrame::TAZCurrent::setTAZ(), GNEPolygonFrame::shapeDrawed(), GNETAZFrame::shapeDrawed(), GNEFrame::show(), GNEStopFrame::show(), GNEDeleteFrame::show(), GNEPersonPlanFrame::show(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierChildren(), GNEFrameModuls::AttributeCarrierHierarchy::showAttributeCarrierParents(), GNESelectorFrame::LockGLObjectTypes::showTypeEntries(), GNEFrameAttributesModuls::AttributesCreator::showWarningMessage(), GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector(), GNEFrameModuls::DrawingShape::stopDrawing(), GNEFrameAttributesModuls::DrawingShape::stopDrawing(), and GNETAZFrame::TAZEdgesGraphic::updateEdgeColors().


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