![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEAdditionalFrame.h>
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... | |
void | hideE2MultilaneLaneSelectorModul () |
show E2MultilaneLaneSelector More... | |
void | removeLastElement () |
remove path element More... | |
void | showE2MultilaneLaneSelectorModul () |
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... | |
void | updateInfoRouteLabel () |
fox need this More... | |
Protected Attributes | |
FXButton * | myAbortCreationButton |
button for abort route creation More... | |
GNEAdditionalFrame * | myAdditionalFrameParent |
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... | |
E2MultilaneLaneSelector & | operator= (E2MultilaneLaneSelector *)=delete |
Invalidated assignment operator. More... | |
Definition at line 252 of file GNEAdditionalFrame.h.
GNEAdditionalFrame::E2MultilaneLaneSelector::E2MultilaneLaneSelector | ( | GNEAdditionalFrame * | additionalFrameParent | ) |
FOX-declaration.
default constructor
Definition at line 607 of file GNEAdditionalFrame.cpp.
References GUIDesignButton, GUIDesignCheckButton, GUIDesignLabelFrameInformation, GUIDesignLabelFrameThicked, MID_GNE_LANEPATH_ABORT, MID_GNE_LANEPATH_FINISH, MID_GNE_LANEPATH_REMOVELAST, MID_GNE_LANEPATH_SHOWCANDIDATES, myAbortCreationButton, myFinishCreationButton, myInfoRouteLabel, myRemoveLastInsertedElement, and myShowCandidateLanes.
GNEAdditionalFrame::E2MultilaneLaneSelector::~E2MultilaneLaneSelector | ( | ) |
destructor
Definition at line 631 of file GNEAdditionalFrame.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNEAdditionalFrame::E2MultilaneLaneSelector::abortPathCreation | ( | ) |
abort path creation
Definition at line 877 of file GNEAdditionalFrame.cpp.
Referenced by GNEViewNet::abortOperation().
bool GNEAdditionalFrame::E2MultilaneLaneSelector::addLane | ( | GNELane * | lane | ) |
add lane
Definition at line 661 of file GNEAdditionalFrame.cpp.
References GNELane::getLaneShape(), GNECandidateElement::isConflictedCandidate(), GNECandidateElement::isPossibleCandidate(), GNECandidateElement::isSpecialCandidate(), PositionVector::nearest_offset_to_point2D(), and WRITE_WARNING.
Referenced by GNEAdditionalFrame::addAdditional().
|
protected |
clear lanes (and restore colors)
Definition at line 982 of file GNEAdditionalFrame.cpp.
bool GNEAdditionalFrame::E2MultilaneLaneSelector::createPath | ( | ) |
create path
Definition at line 820 of file GNEAdditionalFrame.cpp.
References GNEAdditionalHandler::buildAdditional(), joinToString(), SUMO_ATTR_ENDPOS, SUMO_ATTR_ID, SUMO_ATTR_LANES, SUMO_ATTR_POSITION, SUMO_TAG_E2DETECTOR_MULTILANE, toString(), and WRITE_WARNING.
Referenced by GNEViewNet::hotkeyEnter().
bool GNEAdditionalFrame::E2MultilaneLaneSelector::drawCandidateLanesWithSpecialColor | ( | ) | const |
draw candidate lanes with special color (Only for candidates, special and conflicted)
Definition at line 709 of file GNEAdditionalFrame.cpp.
void GNEAdditionalFrame::E2MultilaneLaneSelector::drawTemporalE2Multilane | ( | const GUIVisualizationSettings & | s | ) | const |
draw temporal E2Multilane
Definition at line 757 of file GNEAdditionalFrame.cpp.
References RGBColor::changedBrightness(), GLHelper::drawBoxLines(), GNEGeometry::drawGeometryPoints(), GNEGeometry::Lane2laneConnection::exist(), GNELane::getLane2laneConnections(), GNEGeometry::Lane2laneConnection::getLane2laneGeometry(), GNELane::getLaneShape(), GNEGeometry::Geometry::getShape(), GLO_TEMPORALSHAPE, RGBColor::GREY, GUIVisualizationSettings::neteditSizeSettings, RGBColor::ORANGE, GUIVisualizationNeteditSizeSettings::polylineWidth, RGBColor::RED, and GLHelper::setColor().
Referenced by GNEViewNet::doPaintGL().
void GNEAdditionalFrame::E2MultilaneLaneSelector::hideE2MultilaneLaneSelectorModul | ( | ) |
Definition at line 652 of file GNEAdditionalFrame.cpp.
References GNEFrame::hide().
Referenced by GNEAdditionalFrame::tagSelected().
long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdAbortPathCreation | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Abort route creation".
Definition at line 935 of file GNEAdditionalFrame.cpp.
Referenced by FXDEFMAP().
long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdCreatePath | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 927 of file GNEAdditionalFrame.cpp.
References GNEFrame::createPath().
Referenced by FXDEFMAP().
long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdRemoveLastElement | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over button "Remove las inserted lane".
Definition at line 943 of file GNEAdditionalFrame.cpp.
Referenced by FXDEFMAP().
long GNEAdditionalFrame::E2MultilaneLaneSelector::onCmdShowCandidateLanes | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user click over check button "show candidate lanes".
Definition at line 951 of file GNEAdditionalFrame.cpp.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
void GNEAdditionalFrame::E2MultilaneLaneSelector::removeLastElement | ( | ) |
remove path element
Definition at line 899 of file GNEAdditionalFrame.cpp.
Referenced by GNEViewNet::hotkeyBackSpace().
void GNEAdditionalFrame::E2MultilaneLaneSelector::showE2MultilaneLaneSelectorModul | ( | ) |
Definition at line 635 of file GNEAdditionalFrame.cpp.
References GNEAdditionalFrame::show().
Referenced by GNEAdditionalFrame::tagSelected().
|
protected |
fox need this
update InfoRouteLabel
Definition at line 961 of file GNEAdditionalFrame.cpp.
References toString().
void GNEAdditionalFrame::E2MultilaneLaneSelector::updateLaneColors | ( | ) |
update lane colors
Definition at line 715 of file GNEAdditionalFrame.cpp.
References GNEEdge::getGNEConnections(), and GNECandidateElement::setConflictedCandidate().
|
protected |
button for abort route creation
Definition at line 328 of file GNEAdditionalFrame.h.
Referenced by E2MultilaneLaneSelector().
|
protected |
current additional frame parent
Definition at line 316 of file GNEAdditionalFrame.h.
|
protected |
button for finish route creation
Definition at line 325 of file GNEAdditionalFrame.h.
Referenced by E2MultilaneLaneSelector().
|
protected |
label with route info
Definition at line 322 of file GNEAdditionalFrame.h.
Referenced by E2MultilaneLaneSelector().
|
protected |
vector with lanes and clicked positions
Definition at line 319 of file GNEAdditionalFrame.h.
|
protected |
button for removing last inserted element
Definition at line 331 of file GNEAdditionalFrame.h.
Referenced by E2MultilaneLaneSelector().
|
protected |
CheckBox for show candidate lanes.
Definition at line 334 of file GNEAdditionalFrame.h.
Referenced by E2MultilaneLaneSelector().