Eclipse SUMO - Simulation of Urban MObility
GNEAdditionalFrame::E2MultilaneLaneSelector Class Reference

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame::E2MultilaneLaneSelector:
Collaboration diagram for GNEAdditionalFrame::E2MultilaneLaneSelector:

Public Types

enum  Options { NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , SAVE = 1 << 2 , LOAD = 1 << 3 }
 GroupBoxModule options. More...
 

Public Member Functions

void abortPathCreation ()
 abort path creation More...
 
bool addLane (GNELane *lane)
 add lane More...
 
bool createPath ()
 create path More...
 
bool drawCandidateLanesWithSpecialColor () const
 draw candidate lanes with special color (Only for candidates, special and conflicted) More...
 
void drawTemporalE2Multilane (const GUIVisualizationSettings &s) const
 draw temporal E2Multilane More...
 
 E2MultilaneLaneSelector (GNEAdditionalFrame *additionalFrameParent)
 FOX-declaration. More...
 
FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toogled) More...
 
void hideE2MultilaneLaneSelectorModule ()
 show E2MultilaneLaneSelector More...
 
long onCmdCollapseButton (FXObject *, FXSelector, void *)
 collapse GroupBoxModule More...
 
long onCmdLoadButton (FXObject *, FXSelector, void *)
 load contents More...
 
long onCmdSaveButton (FXObject *, FXSelector, void *)
 save contents More...
 
long onPaint (FXObject *, FXSelector, void *)
 draw FXGroupBoxModule More...
 
void removeLastElement ()
 remove path element More...
 
void setText (const std::string &text)
 set text More...
 
void showE2MultilaneLaneSelectorModule ()
 show E2MultilaneLaneSelector More...
 
void updateLaneColors ()
 update lane colors More...
 
 ~E2MultilaneLaneSelector ()
 destructor More...
 
FOX-callbacks

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

long onCmdCreatePath (FXObject *, FXSelector, void *)
 
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 lane". More...
 
long onCmdShowCandidateLanes (FXObject *, FXSelector, void *)
 Called when the user click over check button "show candidate lanes". More...
 

Protected Member Functions

void clearPath ()
 clear lanes (and restore colors) More...
 
virtual bool loadContents () const
 load contents (can be reimplemented in children) More...
 
virtual bool saveContents () const
 save contents (can be reimplemented in children) More...
 
void toogleSaveButton (const bool value)
 enable or disable save buttons More...
 
void updateInfoRouteLabel ()
 fox need this More...
 

Protected Attributes

FXButton * myAbortCreationButton
 button for abort route creation More...
 
GNEAdditionalFramemyAdditionalFrameParent
 current additional frame parent More...
 
FXButton * myFinishCreationButton
 button for finish route creation More...
 
FXLabel * myInfoRouteLabel
 label with route info More...
 
std::vector< std::pair< GNELane *, double > > myLanePath
 vector with lanes and clicked positions More...
 
FXButton * myRemoveLastInsertedElement
 button for removing last inserted element More...
 
FXCheckButton * myShowCandidateLanes
 CheckBox for show candidate lanes. More...
 

Private Member Functions

 E2MultilaneLaneSelector (E2MultilaneLaneSelector *)=delete
 Invalidated copy constructor. More...
 
E2MultilaneLaneSelectoroperator= (E2MultilaneLaneSelector *)=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...
 
FXLabel * myLabel = nullptr
 label used in non collapsable FXGroupBoxModule More...
 
FXButton * myLoadButton = nullptr
 button for load elements More...
 
const int myOptions
 GroupBoxModule options. More...
 
FXButton * mySaveButton = nullptr
 button for save elements More...
 

Detailed Description

Definition at line 254 of file GNEAdditionalFrame.h.

Member Enumeration Documentation

◆ Options

enum FXGroupBoxModule::Options
inherited

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
SAVE 
LOAD 

Definition at line 32 of file FXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ E2MultilaneLaneSelector() [1/2]

◆ ~E2MultilaneLaneSelector()

GNEAdditionalFrame::E2MultilaneLaneSelector::~E2MultilaneLaneSelector ( )

destructor

Definition at line 630 of file GNEAdditionalFrame.cpp.

◆ E2MultilaneLaneSelector() [2/2]

GNEAdditionalFrame::E2MultilaneLaneSelector::E2MultilaneLaneSelector ( E2MultilaneLaneSelector )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ abortPathCreation()

void GNEAdditionalFrame::E2MultilaneLaneSelector::abortPathCreation ( )

abort path creation

Definition at line 884 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::abortOperation().

Here is the caller graph for this function:

◆ addLane()

bool GNEAdditionalFrame::E2MultilaneLaneSelector::addLane ( GNELane lane)

◆ clearPath()

void GNEAdditionalFrame::E2MultilaneLaneSelector::clearPath ( )
protected

clear lanes (and restore colors)

Definition at line 989 of file GNEAdditionalFrame.cpp.

◆ createPath()

bool GNEAdditionalFrame::E2MultilaneLaneSelector::createPath ( )

create path

Definition at line 825 of file GNEAdditionalFrame.cpp.

References GNE_TAG_E2DETECTOR_MULTILANE, AdditionalHandler::parseSumoBaseObject(), SUMO_ATTR_ENDPOS, SUMO_ATTR_ID, SUMO_ATTR_LANES, SUMO_ATTR_POSITION, and WRITE_WARNING.

Referenced by GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

◆ drawCandidateLanesWithSpecialColor()

bool GNEAdditionalFrame::E2MultilaneLaneSelector::drawCandidateLanesWithSpecialColor ( ) const

draw candidate lanes with special color (Only for candidates, special and conflicted)

Definition at line 708 of file GNEAdditionalFrame.cpp.

◆ drawTemporalE2Multilane()

◆ getCollapsableFrame()

FXVerticalFrame * FXGroupBoxModule::getCollapsableFrame ( )
inherited

get collapsable frame (used by all elements that will be collapsed if button is toogled)

Definition at line 82 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::myCollapsableFrame.

Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesCreator::AttributesCreator(), GNEFrameAttributeModules::AttributesCreatorFlow::AttributesCreatorFlow(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEFrameAttributeModules::AttributesEditorFlow::AttributesEditorFlow(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEFrameModules::DemandElementSelector::DemandElementSelector(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEFrameAttributeModules::DrawingShape::DrawingShape(), GNEFrameModules::DrawingShape::DrawingShape(), E2MultilaneLaneSelector(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEFrameModules::HierarchicalElementTree::HierarchicalElementTree(), GNECrossingFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEProhibitionFrame::Modifications::Modifications(), GNEFrameAttributeModules::NeteditAttributes::NeteditAttributes(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNEInspectorFrame::ParametersEditor::ParametersEditor(), GNEFrameModules::PathCreator::PathCreator(), GNEFrameModules::PathLegend::PathLegend(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEAdditionalFrame::SelectorChildEdges::SelectorChildEdges(), GNEAdditionalFrame::SelectorChildLanes::SelectorChildLanes(), GNEFrameModules::SelectorParent::SelectorParent(), 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::TLSModifications::TLSModifications(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().

◆ hideE2MultilaneLaneSelectorModule()

void GNEAdditionalFrame::E2MultilaneLaneSelector::hideE2MultilaneLaneSelectorModule ( )

show E2MultilaneLaneSelector

Definition at line 651 of file GNEAdditionalFrame.cpp.

References GNEFrame::hide().

Referenced by GNEAdditionalFrame::tagSelected().

Here is the caller graph for this function:

◆ loadContents()

bool FXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 142 of file FXGroupBoxModule.cpp.

Referenced by FXGroupBoxModule::onCmdLoadButton().

Here is the caller graph for this function:

◆ onCmdAbortPathCreation()

long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdAbortPathCreation ( FXObject *  ,
FXSelector  ,
void *   
)

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

Definition at line 942 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

long FXGroupBoxModule::onCmdCollapseButton ( FXObject *  ,
FXSelector  ,
void *   
)
inherited

collapse GroupBoxModule

Definition at line 101 of file FXGroupBoxModule.cpp.

References COLLAPSE, GUIIconSubSys::getIcon(), FXGroupBoxModule::myCollapsableFrame, FXGroupBoxModule::myCollapseButton, FXGroupBoxModule::myCollapsed, and UNCOLLAPSE.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCreatePath()

long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdCreatePath ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 934 of file GNEAdditionalFrame.cpp.

References GNEFrame::createPath().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdLoadButton()

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

load contents

Definition at line 123 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdRemoveLastElement()

long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdRemoveLastElement ( FXObject *  ,
FXSelector  ,
void *   
)

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

Definition at line 950 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

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

save contents

Definition at line 117 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::saveContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdShowCandidateLanes()

long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdShowCandidateLanes ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user click over check button "show candidate lanes".

Definition at line 958 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onPaint()

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

draw FXGroupBoxModule

Definition at line 88 of file FXGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

E2MultilaneLaneSelector& GNEAdditionalFrame::E2MultilaneLaneSelector::operator= ( E2MultilaneLaneSelector )
privatedelete

Invalidated assignment operator.

◆ removeLastElement()

void GNEAdditionalFrame::E2MultilaneLaneSelector::removeLastElement ( )

remove path element

Definition at line 906 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::hotkeyBackSpace().

Here is the caller graph for this function:

◆ saveContents()

bool FXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixDemandElements::FixOptions.

Definition at line 135 of file FXGroupBoxModule.cpp.

Referenced by FXGroupBoxModule::onCmdSaveButton().

Here is the caller graph for this function:

◆ setText()

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

set text

Definition at line 76 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::myLabel.

Referenced by GNESelectorFrame::SelectionInformation::updateInformationLabel().

Here is the caller graph for this function:

◆ showE2MultilaneLaneSelectorModule()

void GNEAdditionalFrame::E2MultilaneLaneSelector::showE2MultilaneLaneSelectorModule ( )

show E2MultilaneLaneSelector

Definition at line 634 of file GNEAdditionalFrame.cpp.

References GNEAdditionalFrame::show().

Referenced by GNEAdditionalFrame::tagSelected().

Here is the caller graph for this function:

◆ toogleSaveButton()

void FXGroupBoxModule::toogleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 149 of file FXGroupBoxModule.cpp.

References FXGroupBoxModule::mySaveButton.

◆ updateInfoRouteLabel()

void GNEAdditionalFrame::E2MultilaneLaneSelector::updateInfoRouteLabel ( )
protected

fox need this

update InfoRouteLabel

Definition at line 968 of file GNEAdditionalFrame.cpp.

References toString().

◆ updateLaneColors()

void GNEAdditionalFrame::E2MultilaneLaneSelector::updateLaneColors ( )

update lane colors

Definition at line 714 of file GNEAdditionalFrame.cpp.

References GNEEdge::getGNEConnections(), and GNECandidateElement::setConflictedCandidate().

Field Documentation

◆ myAbortCreationButton

FXButton* GNEAdditionalFrame::E2MultilaneLaneSelector::myAbortCreationButton
protected

button for abort route creation

Definition at line 330 of file GNEAdditionalFrame.h.

Referenced by E2MultilaneLaneSelector().

◆ myAdditionalFrameParent

GNEAdditionalFrame* GNEAdditionalFrame::E2MultilaneLaneSelector::myAdditionalFrameParent
protected

current additional frame parent

Definition at line 318 of file GNEAdditionalFrame.h.

◆ myCollapsableFrame

FXVerticalFrame* FXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

vertical collapsable frame

Definition at line 81 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::getCollapsableFrame(), and FXGroupBoxModule::onCmdCollapseButton().

◆ myCollapseButton

FXButton* FXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 87 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCmdCollapseButton().

◆ myCollapsed

bool FXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 96 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::onCmdCollapseButton().

◆ myFinishCreationButton

FXButton* GNEAdditionalFrame::E2MultilaneLaneSelector::myFinishCreationButton
protected

button for finish route creation

Definition at line 327 of file GNEAdditionalFrame.h.

Referenced by E2MultilaneLaneSelector().

◆ myInfoRouteLabel

FXLabel* GNEAdditionalFrame::E2MultilaneLaneSelector::myInfoRouteLabel
protected

label with route info

Definition at line 324 of file GNEAdditionalFrame.h.

Referenced by E2MultilaneLaneSelector().

◆ myLabel

FXLabel* FXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable FXGroupBoxModule

Definition at line 84 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::setText().

◆ myLanePath

std::vector<std::pair<GNELane*, double> > GNEAdditionalFrame::E2MultilaneLaneSelector::myLanePath
protected

vector with lanes and clicked positions

Definition at line 321 of file GNEAdditionalFrame.h.

◆ myLoadButton

FXButton* FXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 93 of file FXGroupBoxModule.h.

◆ myOptions

const int FXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 78 of file FXGroupBoxModule.h.

◆ myRemoveLastInsertedElement

FXButton* GNEAdditionalFrame::E2MultilaneLaneSelector::myRemoveLastInsertedElement
protected

button for removing last inserted element

Definition at line 333 of file GNEAdditionalFrame.h.

Referenced by E2MultilaneLaneSelector().

◆ mySaveButton

FXButton* FXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 90 of file FXGroupBoxModule.h.

Referenced by FXGroupBoxModule::toogleSaveButton().

◆ myShowCandidateLanes

FXCheckButton* GNEAdditionalFrame::E2MultilaneLaneSelector::myShowCandidateLanes
protected

CheckBox for show candidate lanes.

Definition at line 336 of file GNEAdditionalFrame.h.

Referenced by E2MultilaneLaneSelector().


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