![]() |
Eclipse SUMO - Simulation of Urban MObility
|
class used to group all variables related with objects under cursor after a click over view More...
#include <GNEViewNetHelper.h>
Public Member Functions | |
| GNEAdditional * | getAdditionalFront () const |
| get front additional element (or a pointer to nullptr if there isn't) More... | |
| GNEAttributeCarrier * | getAttributeCarrierFront () const |
| get front attribute carrier (or a pointer to nullptr if there isn't) More... | |
| const std::vector< GNEAttributeCarrier * > & | getClickedAttributeCarriers () const |
| get vector with clicked ACs More... | |
| GNEConnection * | getConnectionFront () const |
| get front connection (or a pointer to nullptr if there isn't) More... | |
| GNECrossing * | getCrossingFront () const |
| get front crossing (or a pointer to nullptr if there isn't) More... | |
| GNEDemandElement * | getDemandElementFront () const |
| get front net element element (or a pointer to nullptr if there isn't) More... | |
| GNEEdge * | getEdgeFront () const |
| get front edge (or a pointer to nullptr if there isn't) More... | |
| GUIGlID | getGlIDFront () const |
| get front GUI GL ID (or a pointer to nullptr if there isn't) More... | |
| GUIGlObjectType | getGlTypeFront () const |
| get front GUI GL object type (or a pointer to nullptr if there isn't) More... | |
| GNEJunction * | getJunctionFront () const |
| get front junction (or a pointer to nullptr if there isn't) More... | |
| GNELane * | getLaneFront () const |
| get front lane (or a pointer to nullptr if there isn't) More... | |
| GNENetElement * | getNetElementFront () const |
| get front net element (or a pointer to nullptr if there isn't) More... | |
| GNEPOI * | getPOIFront () const |
| get front POI (or a pointer to nullptr if there isn't) More... | |
| GNEPoly * | getPolyFront () const |
| get front Poly (or a pointer to nullptr if there isn't) More... | |
| GNEShape * | getShapeFront () const |
| get front shape element (or a pointer to nullptr if there isn't) More... | |
| GNETAZ * | getTAZFront () const |
| get front TAZ (or a pointer to nullptr if there isn't) More... | |
| ObjectsUnderCursor () | |
| constructor More... | |
| void | swapLane2Edge () |
| swap lane to edge More... | |
| void | updateObjectUnderCursor (const std::vector< GUIGlObject * > &GUIGlObjects, GNEPoly *editedPolyShape) |
| update objects under cursor (Called only in onLeftBtnPress(...) function) More... | |
Private Member Functions | |
| ObjectsUnderCursor (const ObjectsUnderCursor &)=delete | |
| Invalidated copy constructor. More... | |
| ObjectsUnderCursor & | operator= (const ObjectsUnderCursor &)=delete |
| Invalidated assignment operator. More... | |
| void | sortGUIGlObjectsByAltitude (const std::vector< GUIGlObject * > &GUIGlObjects) |
| invert GUIGlObjects More... | |
Private Attributes | |
| std::vector< GNEAdditional * > | myAdditionals |
| vector with the clicked additional elements More... | |
| std::vector< GNEAttributeCarrier * > | myAttributeCarriers |
| vector with the clicked attribute carriers More... | |
| std::vector< GNEConnection * > | myConnections |
| vector with the clicked connections More... | |
| std::vector< GNECrossing * > | myCrossings |
| vector with the clicked crossings More... | |
| std::vector< GNEDemandElement * > | myDemandElements |
| vector with the clicked demand elements More... | |
| std::vector< GNEEdge * > | myEdges |
| vector with the clicked edges More... | |
| std::vector< GUIGlObject * > | myGUIGlObjects |
| vector with the clicked GUIGlObjects More... | |
| std::vector< GNEJunction * > | myJunctions |
| vector with the clicked junctions More... | |
| std::vector< GNELane * > | myLanes |
| vector with the clicked lanes More... | |
| std::vector< GNENetElement * > | myNetElements |
| vector with the clicked net elements More... | |
| std::vector< GNEPOI * > | myPOIs |
| vector with the clicked POIs More... | |
| std::vector< GNEPoly * > | myPolys |
| vector with the clicked Polys More... | |
| std::vector< GNEShape * > | myShapes |
| vector with the clicked shape elements (Poly and POIs) More... | |
| std::vector< GNETAZ * > | myTAZs |
| vector with the clicked TAZ elements (needed because uses a shape instead a position) More... | |
class used to group all variables related with objects under cursor after a click over view
Definition at line 148 of file GNEViewNetHelper.h.
| GNEViewNetHelper::ObjectsUnderCursor::ObjectsUnderCursor | ( | ) |
constructor
Definition at line 54 of file GNEViewNetHelper.cpp.
|
privatedelete |
Invalidated copy constructor.
| GNEAdditional * GNEViewNetHelper::ObjectsUnderCursor::getAdditionalFront | ( | ) | const |
get front additional element (or a pointer to nullptr if there isn't)
Definition at line 228 of file GNEViewNetHelper.cpp.
Referenced by GNEAdditionalFrame::addAdditional(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEStopFrame::addStop(), and GNEDeleteFrame::removeAttributeCarrier().
| GNEAttributeCarrier * GNEViewNetHelper::ObjectsUnderCursor::getAttributeCarrierFront | ( | ) | const |
get front attribute carrier (or a pointer to nullptr if there isn't)
Definition at line 208 of file GNEViewNetHelper.cpp.
Referenced by GNEInspectorFrame::inspectClickedElement(), GNEInspectorFrame::processDemandSupermodeClick(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEInspectorFrame::processNetworkSupermodeClick(), and GNEDeleteFrame::removeAttributeCarrier().
| const std::vector< GNEAttributeCarrier * > & GNEViewNetHelper::ObjectsUnderCursor::getClickedAttributeCarriers | ( | ) | const |
get vector with clicked ACs
Definition at line 338 of file GNEViewNetHelper.cpp.
Referenced by GNEInspectorFrame::inspectClickedElement(), and GNEFrameModuls::OverlappedInspection::showOverlappedInspection().
| GNEConnection * GNEViewNetHelper::ObjectsUnderCursor::getConnectionFront | ( | ) | const |
get front connection (or a pointer to nullptr if there isn't)
Definition at line 298 of file GNEViewNetHelper.cpp.
Referenced by GNEProhibitionFrame::handleProhibitionClick(), GNEViewNet::processLeftButtonPressNetwork(), and GNEDeleteFrame::removeAttributeCarrier().
| GNECrossing * GNEViewNetHelper::ObjectsUnderCursor::getCrossingFront | ( | ) | const |
get front crossing (or a pointer to nullptr if there isn't)
Definition at line 288 of file GNEViewNetHelper.cpp.
Referenced by GNEDeleteFrame::removeAttributeCarrier().
| GNEDemandElement * GNEViewNetHelper::ObjectsUnderCursor::getDemandElementFront | ( | ) | const |
get front net element element (or a pointer to nullptr if there isn't)
Definition at line 248 of file GNEViewNetHelper.cpp.
Referenced by GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEInspectorFrame::processDemandSupermodeClick(), and GNEDeleteFrame::removeAttributeCarrier().
| GNEEdge * GNEViewNetHelper::ObjectsUnderCursor::getEdgeFront | ( | ) | const |
get front edge (or a pointer to nullptr if there isn't)
Definition at line 268 of file GNEViewNetHelper.cpp.
Referenced by GNECrossingFrame::addCrossing(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEVehicleFrame::addVehicle(), GNETAZFrame::processClick(), GNEViewNet::processLeftButtonPressNetwork(), and GNEDeleteFrame::removeAttributeCarrier().
| GUIGlID GNEViewNetHelper::ObjectsUnderCursor::getGlIDFront | ( | ) | const |
get front GUI GL ID (or a pointer to nullptr if there isn't)
Definition at line 188 of file GNEViewNetHelper.cpp.
| GUIGlObjectType GNEViewNetHelper::ObjectsUnderCursor::getGlTypeFront | ( | ) | const |
get front GUI GL object type (or a pointer to nullptr if there isn't)
Definition at line 198 of file GNEViewNetHelper.cpp.
References GLO_NETWORK.
Referenced by GNEInspectorFrame::processDemandSupermodeClick(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), and GNEInspectorFrame::processNetworkSupermodeClick().
| GNEJunction * GNEViewNetHelper::ObjectsUnderCursor::getJunctionFront | ( | ) | const |
get front junction (or a pointer to nullptr if there isn't)
Definition at line 258 of file GNEViewNetHelper.cpp.
Referenced by GNECrossingFrame::addCrossing(), GNETLSEditorFrame::editTLS(), GNECreateEdgeFrame::processClick(), GNEViewNet::processLeftButtonPressNetwork(), and GNEDeleteFrame::removeAttributeCarrier().
| GNELane * GNEViewNetHelper::ObjectsUnderCursor::getLaneFront | ( | ) | const |
get front lane (or a pointer to nullptr if there isn't)
Definition at line 278 of file GNEViewNetHelper.cpp.
Referenced by GNEAdditionalFrame::addAdditional(), GNEPersonFrame::addPerson(), GNEStopFrame::addStop(), GNEConnectorFrame::handleLaneClick(), GNEPolygonFrame::processClick(), GNEViewNet::processLeftButtonPressDemand(), GNEViewNet::processLeftButtonPressNetwork(), GNEViewNet::processLeftButtonReleaseNetwork(), and GNEDeleteFrame::removeAttributeCarrier().
| GNENetElement * GNEViewNetHelper::ObjectsUnderCursor::getNetElementFront | ( | ) | const |
get front net element (or a pointer to nullptr if there isn't)
Definition at line 218 of file GNEViewNetHelper.cpp.
| GNEPOI * GNEViewNetHelper::ObjectsUnderCursor::getPOIFront | ( | ) | const |
get front POI (or a pointer to nullptr if there isn't)
Definition at line 318 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork().
| GNEPoly * GNEViewNetHelper::ObjectsUnderCursor::getPolyFront | ( | ) | const |
get front Poly (or a pointer to nullptr if there isn't)
Definition at line 328 of file GNEViewNetHelper.cpp.
Referenced by GNEViewNet::processLeftButtonPressNetwork(), and GNEDeleteFrame::removeAttributeCarrier().
| GNEShape * GNEViewNetHelper::ObjectsUnderCursor::getShapeFront | ( | ) | const |
get front shape element (or a pointer to nullptr if there isn't)
Definition at line 238 of file GNEViewNetHelper.cpp.
Referenced by GNEDeleteFrame::removeAttributeCarrier().
| GNETAZ * GNEViewNetHelper::ObjectsUnderCursor::getTAZFront | ( | ) | const |
get front TAZ (or a pointer to nullptr if there isn't)
Definition at line 308 of file GNEViewNetHelper.cpp.
Referenced by GNETAZFrame::processClick(), and GNEDeleteFrame::removeAttributeCarrier().
|
privatedelete |
Invalidated assignment operator.
|
private |
invert GUIGlObjects
Definition at line 344 of file GNEViewNetHelper.cpp.
| void GNEViewNetHelper::ObjectsUnderCursor::swapLane2Edge | ( | ) |
swap lane to edge
Definition at line 171 of file GNEViewNetHelper.cpp.
References WRITE_DEBUG.
Referenced by GNEViewNet::processLeftButtonPressNetwork(), and GNEInspectorFrame::processNetworkSupermodeClick().
| void GNEViewNetHelper::ObjectsUnderCursor::updateObjectUnderCursor | ( | const std::vector< GUIGlObject * > & | GUIGlObjects, |
| GNEPoly * | editedPolyShape | ||
| ) |
update objects under cursor (Called only in onLeftBtnPress(...) function)
Definition at line 58 of file GNEViewNetHelper.cpp.
References GLO_CONNECTION, GLO_CROSSING, GLO_EDGE, GLO_JUNCTION, GLO_LANE, GLO_NETELEMENT, GLO_POI, GLO_POLYGON, toString(), and WRITE_DEBUG.
Referenced by GNEViewNet::onLeftBtnPress(), and GNEViewNet::processLeftButtonReleaseNetwork().
|
private |
vector with the clicked additional elements
Definition at line 218 of file GNEViewNetHelper.h.
|
private |
vector with the clicked attribute carriers
Definition at line 212 of file GNEViewNetHelper.h.
|
private |
vector with the clicked connections
Definition at line 239 of file GNEViewNetHelper.h.
|
private |
vector with the clicked crossings
Definition at line 236 of file GNEViewNetHelper.h.
|
private |
vector with the clicked demand elements
Definition at line 224 of file GNEViewNetHelper.h.
|
private |
vector with the clicked edges
Definition at line 230 of file GNEViewNetHelper.h.
|
private |
vector with the clicked GUIGlObjects
Definition at line 209 of file GNEViewNetHelper.h.
|
private |
vector with the clicked junctions
Definition at line 227 of file GNEViewNetHelper.h.
|
private |
vector with the clicked lanes
Definition at line 233 of file GNEViewNetHelper.h.
|
private |
vector with the clicked net elements
Definition at line 215 of file GNEViewNetHelper.h.
|
private |
vector with the clicked POIs
Definition at line 245 of file GNEViewNetHelper.h.
|
private |
vector with the clicked Polys
Definition at line 248 of file GNEViewNetHelper.h.
|
private |
vector with the clicked shape elements (Poly and POIs)
Definition at line 221 of file GNEViewNetHelper.h.
|
private |
vector with the clicked TAZ elements (needed because uses a shape instead a position)
Definition at line 242 of file GNEViewNetHelper.h.