![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEAdditionalFrame.h>
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... | |
GNEAdditionalFrame * | myAdditionalFrameParent |
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... | |
Definition at line 40 of file GNEAdditionalFrame.h.
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.
GNEAdditionalFrame::SelectorParentLanes::~SelectorParentLanes | ( | ) |
destructor
Definition at line 92 of file GNEAdditionalFrame.cpp.
void GNEAdditionalFrame::SelectorParentLanes::abortConsecutiveLaneSelector | ( | ) |
abort selection of consecutive lanes
Definition at line 181 of file GNEAdditionalFrame.cpp.
Referenced by GNEViewNet::abortOperation().
bool GNEAdditionalFrame::SelectorParentLanes::addSelectedLane | ( | GNELane * | lane, |
const Position & | clickedPosition | ||
) |
return true if lane can be selected as consecutive lane
Definition at line 203 of file GNEAdditionalFrame.cpp.
References GNEEdge::getGNEConnections(), GNELane::getLaneShape(), GNELane::getLengthGeometryFactor(), GNELane::getParentEdge(), PositionVector::nearest_offset_to_point2D(), GNECandidateElement::setTargetCandidate(), and WRITE_WARNING.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
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().
void GNEAdditionalFrame::SelectorParentLanes::hideSelectorParentLanesModul | ( | ) |
hide SelectorParentLanes
Definition at line 105 of file GNEAdditionalFrame.cpp.
Referenced by GNEAdditionalFrame::tagSelected().
|
private |
check if certain lane is selected
Definition at line 293 of file GNEAdditionalFrame.cpp.
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().
bool GNEAdditionalFrame::SelectorParentLanes::isShown | ( | ) | const |
return true if modul is shown
Definition at line 267 of file GNEAdditionalFrame.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
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().
long GNEAdditionalFrame::SelectorParentLanes::onCmdStopSelection | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 279 of file GNEAdditionalFrame.cpp.
Referenced by FXDEFMAP().
void GNEAdditionalFrame::SelectorParentLanes::removeLastSelectedLane | ( | ) |
remove last added point
Definition at line 251 of file GNEAdditionalFrame.cpp.
References WRITE_WARNING.
void GNEAdditionalFrame::SelectorParentLanes::showSelectorParentLanesModul | ( | ) |
show SelectorParentLanes modul
Definition at line 96 of file GNEAdditionalFrame.cpp.
Referenced by GNEAdditionalFrame::tagSelected().
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().
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().
|
private |
button for abort selecting
Definition at line 100 of file GNEAdditionalFrame.h.
|
private |
pointer to additionalFrameParent
Definition at line 94 of file GNEAdditionalFrame.h.
|
private |
Vector with the colored lanes.
Definition at line 106 of file GNEAdditionalFrame.h.
|
private |
Vector with the selected lanes and the clicked position.
Definition at line 103 of file GNEAdditionalFrame.h.
|
private |
button for stop selecting
Definition at line 97 of file GNEAdditionalFrame.h.