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

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame::SelectorLaneParents:
Collaboration diagram for GNEAdditionalFrame::SelectorLaneParents:

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 RGBColorgetSelectedLaneColor () const
 get selected lane color More...
 
const std::vector< std::pair< GNELane *, double > > & getSelectedLanes () const
 get current selected lanes More...
 
void hideSelectorLaneParentsModul ()
 hide SelectorLaneParents 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...
 
 SelectorLaneParents (GNEAdditionalFrame *additionalFrameParent)
 FOX-declaration. More...
 
void showSelectorLaneParentsModul ()
 show SelectorLaneParents modul More...
 
void startConsecutiveLaneSelector (GNELane *lane, const Position &clickedPosition)
 start selection of consecutive lanes More...
 
bool stopConsecutiveLaneSelector ()
 stop selection of consecutive lanes More...
 
 ~SelectorLaneParents ()
 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...
 

Protected Member Functions

 SelectorLaneParents ()
 FOX needs this. 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...
 
RGBColor myCandidateLaneColor
 color for candidate lanes More...
 
std::vector< GNELane * > myCandidateLanes
 Vector with the colored lanes. More...
 
RGBColor mySelectedLaneColor
 color for selected 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 42 of file GNEAdditionalFrame.h.

Constructor & Destructor Documentation

◆ SelectorLaneParents() [1/2]

GNEAdditionalFrame::SelectorLaneParents::SelectorLaneParents ( GNEAdditionalFrame additionalFrameParent)

◆ ~SelectorLaneParents()

GNEAdditionalFrame::SelectorLaneParents::~SelectorLaneParents ( )

destructor

Definition at line 87 of file GNEAdditionalFrame.cpp.

◆ SelectorLaneParents() [2/2]

GNEAdditionalFrame::SelectorLaneParents::SelectorLaneParents ( )
inlineprotected

FOX needs this.

Definition at line 96 of file GNEAdditionalFrame.h.

Member Function Documentation

◆ abortConsecutiveLaneSelector()

void GNEAdditionalFrame::SelectorLaneParents::abortConsecutiveLaneSelector ( )

abort selection of consecutive lanes

Definition at line 172 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::abortOperation(), and GNEAdditionalFrame::buildAdditionalOverLanes().

◆ addSelectedLane()

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

◆ getSelectedLaneColor()

const RGBColor & GNEAdditionalFrame::SelectorLaneParents::getSelectedLaneColor ( ) const

get selected lane color

Definition at line 266 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::drawLaneCandidates().

◆ getSelectedLanes()

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

get current selected lanes

Definition at line 272 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::buildAdditionalOverLanes(), and GNEViewNet::drawLaneCandidates().

◆ hideSelectorLaneParentsModul()

void GNEAdditionalFrame::SelectorLaneParents::hideSelectorLaneParentsModul ( )

hide SelectorLaneParents

Definition at line 100 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::tagSelected().

◆ isLaneSelected()

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

check if certain lane is selected

Definition at line 292 of file GNEAdditionalFrame.cpp.

◆ isSelectingLanes()

bool GNEAdditionalFrame::SelectorLaneParents::isSelectingLanes ( ) const

◆ isShown()

bool GNEAdditionalFrame::SelectorLaneParents::isShown ( ) const

return true if modul is shown

Definition at line 260 of file GNEAdditionalFrame.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

◆ onCmdAbortSelection()

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

Called when the user press abort selection button.

Definition at line 285 of file GNEAdditionalFrame.cpp.

◆ onCmdStopSelection()

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

Definition at line 278 of file GNEAdditionalFrame.cpp.

◆ removeLastSelectedLane()

void GNEAdditionalFrame::SelectorLaneParents::removeLastSelectedLane ( )

remove last added point

Definition at line 244 of file GNEAdditionalFrame.cpp.

References WRITE_WARNING.

◆ showSelectorLaneParentsModul()

void GNEAdditionalFrame::SelectorLaneParents::showSelectorLaneParentsModul ( )

show SelectorLaneParents modul

Definition at line 91 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::tagSelected().

◆ startConsecutiveLaneSelector()

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

start selection of consecutive lanes

Definition at line 109 of file GNEAdditionalFrame.cpp.

Referenced by GNEAdditionalFrame::buildAdditionalOverLanes(), and GNEViewNet::processLeftButtonPressNetwork().

◆ stopConsecutiveLaneSelector()

bool GNEAdditionalFrame::SelectorLaneParents::stopConsecutiveLaneSelector ( )

Field Documentation

◆ myAbortSelectingButton

FXButton* GNEAdditionalFrame::SelectorLaneParents::myAbortSelectingButton
private

button for abort selecting

Definition at line 106 of file GNEAdditionalFrame.h.

◆ myAdditionalFrameParent

GNEAdditionalFrame* GNEAdditionalFrame::SelectorLaneParents::myAdditionalFrameParent
private

pointer to additionalFrameParent

Definition at line 100 of file GNEAdditionalFrame.h.

◆ myCandidateLaneColor

RGBColor GNEAdditionalFrame::SelectorLaneParents::myCandidateLaneColor
private

color for candidate lanes

Definition at line 115 of file GNEAdditionalFrame.h.

◆ myCandidateLanes

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

Vector with the colored lanes.

Definition at line 112 of file GNEAdditionalFrame.h.

◆ mySelectedLaneColor

RGBColor GNEAdditionalFrame::SelectorLaneParents::mySelectedLaneColor
private

color for selected lanes

Definition at line 118 of file GNEAdditionalFrame.h.

◆ mySelectedLanes

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

Vector with the selected lanes and the clicked position.

Definition at line 109 of file GNEAdditionalFrame.h.

◆ myStopSelectingButton

FXButton* GNEAdditionalFrame::SelectorLaneParents::myStopSelectingButton
private

button for stop selecting

Definition at line 103 of file GNEAdditionalFrame.h.


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