![]() |
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 RGBColor & | getSelectedLaneColor () const |
get selected lane color 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... | |
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... | |
Definition at line 42 of file GNEAdditionalFrame.h.
GNEAdditionalFrame::SelectorParentLanes::SelectorParentLanes | ( | GNEAdditionalFrame * | additionalFrameParent | ) |
FOX-declaration.
constructor
Definition at line 71 of file GNEAdditionalFrame.cpp.
References RGBColor::GREEN, GUIDesignButton, MID_GNE_ADDITIONALFRAME_ABORTSELECTION, and MID_GNE_ADDITIONALFRAME_STOPSELECTION.
GNEAdditionalFrame::SelectorParentLanes::~SelectorParentLanes | ( | ) |
destructor
Definition at line 86 of file GNEAdditionalFrame.cpp.
void GNEAdditionalFrame::SelectorParentLanes::abortConsecutiveLaneSelector | ( | ) |
abort selection of consecutive lanes
Definition at line 175 of file GNEAdditionalFrame.cpp.
Referenced by GNEViewNet::abortOperation(), and GNEAdditionalFrame::buildAdditionalOverLanes().
bool GNEAdditionalFrame::SelectorParentLanes::addSelectedLane | ( | GNELane * | lane, |
const Position & | clickedPosition | ||
) |
return true if lane can be selected as consecutive lane
Definition at line 197 of file GNEAdditionalFrame.cpp.
References GNEEdge::getGNEConnections(), GNELane::getLaneShape(), GNELane::getLengthGeometryFactor(), GNELane::getParentEdge(), PositionVector::nearest_offset_to_point2D(), GNELane::setSpecialColor(), and WRITE_WARNING.
Referenced by GNEAdditionalFrame::buildAdditionalOverLanes(), and GNEViewNet::processLeftButtonPressNetwork().
const RGBColor & GNEAdditionalFrame::SelectorParentLanes::getSelectedLaneColor | ( | ) | const |
get selected lane color
Definition at line 269 of file GNEAdditionalFrame.cpp.
Referenced by GNEViewNet::drawLaneCandidates().
const std::vector< std::pair< GNELane *, double > > & GNEAdditionalFrame::SelectorParentLanes::getSelectedLanes | ( | ) | const |
get current selected lanes
Definition at line 275 of file GNEAdditionalFrame.cpp.
Referenced by GNEAdditionalFrame::buildAdditionalOverLanes(), and GNEViewNet::drawLaneCandidates().
void GNEAdditionalFrame::SelectorParentLanes::hideSelectorParentLanesModul | ( | ) |
hide SelectorParentLanes
Definition at line 99 of file GNEAdditionalFrame.cpp.
Referenced by GNEAdditionalFrame::tagSelected().
|
private |
check if certain lane is selected
Definition at line 295 of file GNEAdditionalFrame.cpp.
bool GNEAdditionalFrame::SelectorParentLanes::isSelectingLanes | ( | ) | const |
return true if modul is selecting lane
Definition at line 257 of file GNEAdditionalFrame.cpp.
Referenced by GNEAdditionalFrame::buildAdditionalOverLanes(), GNEViewNet::drawLaneCandidates(), GNEViewNet::hotkeyEnter(), and GNEViewNet::processLeftButtonPressNetwork().
bool GNEAdditionalFrame::SelectorParentLanes::isShown | ( | ) | const |
return true if modul is shown
Definition at line 263 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 288 of file GNEAdditionalFrame.cpp.
Referenced by FXDEFMAP().
long GNEAdditionalFrame::SelectorParentLanes::onCmdStopSelection | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 281 of file GNEAdditionalFrame.cpp.
Referenced by FXDEFMAP().
void GNEAdditionalFrame::SelectorParentLanes::removeLastSelectedLane | ( | ) |
remove last added point
Definition at line 247 of file GNEAdditionalFrame.cpp.
References WRITE_WARNING.
void GNEAdditionalFrame::SelectorParentLanes::showSelectorParentLanesModul | ( | ) |
show SelectorParentLanes modul
Definition at line 90 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 108 of file GNEAdditionalFrame.cpp.
Referenced by GNEAdditionalFrame::buildAdditionalOverLanes(), and GNEViewNet::processLeftButtonPressNetwork().
bool GNEAdditionalFrame::SelectorParentLanes::stopConsecutiveLaneSelector | ( | ) |
stop selection of consecutive lanes
Definition at line 121 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 105 of file GNEAdditionalFrame.h.
|
private |
pointer to additionalFrameParent
Definition at line 99 of file GNEAdditionalFrame.h.
|
private |
color for candidate lanes
Definition at line 114 of file GNEAdditionalFrame.h.
|
private |
Vector with the colored lanes.
Definition at line 111 of file GNEAdditionalFrame.h.
|
private |
color for selected lanes
Definition at line 117 of file GNEAdditionalFrame.h.
|
private |
Vector with the selected lanes and the clicked position.
Definition at line 108 of file GNEAdditionalFrame.h.
|
private |
button for stop selecting
Definition at line 102 of file GNEAdditionalFrame.h.