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

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame::SelectorParentLanes:
Collaboration diagram for GNEAdditionalFrame::SelectorParentLanes:

Public Member Functions

void abortConsecutiveLaneSelector ()
 abort selection of consecutive lanes More...
 
bool addSelectedLane (GNELane *lane, const Position &clickedPosition)
 return true if lane can be selected as consecutive lane More...
 
const std::vector< std::pair< GNELane *, double > > & getSelectedLanes () const
 get current selected lanes More...
 
void hideSelectorParentLanesModul ()
 hide SelectorParentLanes More...
 
bool isSelectingLanes () const
 return true if modul is selecting lane More...
 
bool isShown () const
 return true if modul is shown More...
 
void removeLastSelectedLane ()
 remove last added point More...
 
 SelectorParentLanes (GNEAdditionalFrame *additionalFrameParent)
 FOX-declaration. More...
 
void showSelectorParentLanesModul ()
 show SelectorParentLanes modul More...
 
void startConsecutiveLaneSelector (GNELane *lane, const Position &clickedPosition)
 start selection of consecutive lanes More...
 
bool stopConsecutiveLaneSelector ()
 stop selection of consecutive lanes More...
 
 ~SelectorParentLanes ()
 destructor More...
 
FOX-callbacks

Called when the user press stop selection button

long onCmdStopSelection (FXObject *, FXSelector, void *)
 
long onCmdAbortSelection (FXObject *, FXSelector, void *)
 Called when the user press abort selection button. More...
 

Private Member Functions

bool isLaneSelected (GNELane *lane) const
 check if certain lane is selected More...
 

Private Attributes

FXButton * myAbortSelectingButton
 button for abort selecting More...
 
GNEAdditionalFramemyAdditionalFrameParent
 pointer to additionalFrameParent More...
 
std::vector< GNELane * > myCandidateLanes
 Vector with the colored lanes. More...
 
std::vector< std::pair< GNELane *, double > > mySelectedLanes
 Vector with the selected lanes and the clicked position. More...
 
FXButton * myStopSelectingButton
 button for stop selecting More...
 

Detailed Description

Definition at line 40 of file GNEAdditionalFrame.h.

Constructor & Destructor Documentation

◆ SelectorParentLanes()

GNEAdditionalFrame::SelectorParentLanes::SelectorParentLanes ( GNEAdditionalFrame additionalFrameParent)

FOX-declaration.

constructor

Definition at line 80 of file GNEAdditionalFrame.cpp.

References GUIDesignButton, MID_GNE_ADDITIONALFRAME_ABORTSELECTION, and MID_GNE_ADDITIONALFRAME_STOPSELECTION.

◆ ~SelectorParentLanes()

GNEAdditionalFrame::SelectorParentLanes::~SelectorParentLanes ( )

destructor

Definition at line 92 of file GNEAdditionalFrame.cpp.

Member Function Documentation

◆ abortConsecutiveLaneSelector()

void GNEAdditionalFrame::SelectorParentLanes::abortConsecutiveLaneSelector ( )

abort selection of consecutive lanes

Definition at line 181 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::abortOperation().

Here is the caller graph for this function:

◆ addSelectedLane()

bool GNEAdditionalFrame::SelectorParentLanes::addSelectedLane ( GNELane lane,
const Position clickedPosition 
)

◆ getSelectedLanes()

const std::vector< std::pair< GNELane *, double > > & GNEAdditionalFrame::SelectorParentLanes::getSelectedLanes ( ) const

get current selected lanes

Definition at line 273 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::drawLaneCandidates().

Here is the caller graph for this function:

◆ hideSelectorParentLanesModul()

void GNEAdditionalFrame::SelectorParentLanes::hideSelectorParentLanesModul ( )

hide SelectorParentLanes

Definition at line 105 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::tagSelected().

Here is the caller graph for this function:

◆ isLaneSelected()

bool GNEAdditionalFrame::SelectorParentLanes::isLaneSelected ( GNELane lane) const
private

check if certain lane is selected

Definition at line 293 of file GNEAdditionalFrame.cpp.

◆ isSelectingLanes()

bool GNEAdditionalFrame::SelectorParentLanes::isSelectingLanes ( ) const

return true if modul is selecting lane

Definition at line 261 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::drawLaneCandidates(), GNEViewNet::hotkeyEnter(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ isShown()

bool GNEAdditionalFrame::SelectorParentLanes::isShown ( ) const

return true if modul is shown

Definition at line 267 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ onCmdAbortSelection()

long GNEAdditionalFrame::SelectorParentLanes::onCmdAbortSelection ( FXObject *  ,
FXSelector  ,
void *   
)

Called when the user press abort selection button.

Definition at line 286 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdStopSelection()

long GNEAdditionalFrame::SelectorParentLanes::onCmdStopSelection ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 279 of file GNEAdditionalFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ removeLastSelectedLane()

void GNEAdditionalFrame::SelectorParentLanes::removeLastSelectedLane ( )

remove last added point

Definition at line 251 of file GNEAdditionalFrame.cpp.

References WRITE_WARNING.

◆ showSelectorParentLanesModul()

void GNEAdditionalFrame::SelectorParentLanes::showSelectorParentLanesModul ( )

show SelectorParentLanes modul

Definition at line 96 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::tagSelected().

Here is the caller graph for this function:

◆ startConsecutiveLaneSelector()

void GNEAdditionalFrame::SelectorParentLanes::startConsecutiveLaneSelector ( GNELane lane,
const Position clickedPosition 
)

start selection of consecutive lanes

Definition at line 114 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ stopConsecutiveLaneSelector()

bool GNEAdditionalFrame::SelectorParentLanes::stopConsecutiveLaneSelector ( )

stop selection of consecutive lanes

Definition at line 127 of file GNEAdditionalFrame.cpp.

References GNEAdditionalHandler::buildAdditional(), joinToString(), SUMO_ATTR_ENDPOS, SUMO_ATTR_ID, SUMO_ATTR_LANES, SUMO_ATTR_POSITION, toString(), and WRITE_WARNING.

Referenced by GNEViewNet::hotkeyEnter().

Here is the caller graph for this function:

Field Documentation

◆ myAbortSelectingButton

FXButton* GNEAdditionalFrame::SelectorParentLanes::myAbortSelectingButton
private

button for abort selecting

Definition at line 100 of file GNEAdditionalFrame.h.

◆ myAdditionalFrameParent

GNEAdditionalFrame* GNEAdditionalFrame::SelectorParentLanes::myAdditionalFrameParent
private

pointer to additionalFrameParent

Definition at line 94 of file GNEAdditionalFrame.h.

◆ myCandidateLanes

std::vector<GNELane*> GNEAdditionalFrame::SelectorParentLanes::myCandidateLanes
private

Vector with the colored lanes.

Definition at line 106 of file GNEAdditionalFrame.h.

◆ mySelectedLanes

std::vector<std::pair<GNELane*, double> > GNEAdditionalFrame::SelectorParentLanes::mySelectedLanes
private

Vector with the selected lanes and the clicked position.

Definition at line 103 of file GNEAdditionalFrame.h.

◆ myStopSelectingButton

FXButton* GNEAdditionalFrame::SelectorParentLanes::myStopSelectingButton
private

button for stop selecting

Definition at line 97 of file GNEAdditionalFrame.h.


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