![]() |
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 | setCreatedJunction (GNEJunction *junction) |
| set created junction 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 149 of file GNEViewNetHelper.h.
| GNEViewNetHelper::ObjectsUnderCursor::ObjectsUnderCursor | ( | ) |
constructor
Definition at line 55 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 239 of file GNEViewNetHelper.cpp.
References myAdditionals.
Referenced by GNEAdditionalFrame::addAdditional(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEStopFrame::addStop(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode(), and GNEDeleteFrame::removeAttributeCarrier().
| GNEAttributeCarrier * GNEViewNetHelper::ObjectsUnderCursor::getAttributeCarrierFront | ( | ) | const |
get front attribute carrier (or a pointer to nullptr if there isn't)
Definition at line 219 of file GNEViewNetHelper.cpp.
References myAttributeCarriers.
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 349 of file GNEViewNetHelper.cpp.
References myAttributeCarriers.
Referenced by GNEInspectorFrame::inspectClickedElement(), and GNEInspectorFrame::OverlappedInspection::showOverlappedInspection().
| GNEConnection * GNEViewNetHelper::ObjectsUnderCursor::getConnectionFront | ( | ) | const |
get front connection (or a pointer to nullptr if there isn't)
Definition at line 309 of file GNEViewNetHelper.cpp.
References myConnections.
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 299 of file GNEViewNetHelper.cpp.
References myCrossings.
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 259 of file GNEViewNetHelper.cpp.
References myDemandElements.
Referenced by GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEStopFrame::addStop(), GNEVehicleFrame::addVehicle(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementDemandMode(), 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 279 of file GNEViewNetHelper.cpp.
References myEdges.
Referenced by GNECrossingFrame::addCrossing(), GNEPersonFrame::addPerson(), GNEPersonPlanFrame::addPersonPlan(), GNEVehicleFrame::addVehicle(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode(), GNEViewNetHelper::MoveSingleElementValues::calculateEdgeValues(), 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 199 of file GNEViewNetHelper.cpp.
References myGUIGlObjects.
| GUIGlObjectType GNEViewNetHelper::ObjectsUnderCursor::getGlTypeFront | ( | ) | const |
get front GUI GL object type (or a pointer to nullptr if there isn't)
Definition at line 209 of file GNEViewNetHelper.cpp.
References GLO_NETWORK, and myGUIGlObjects.
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 269 of file GNEViewNetHelper.cpp.
References myJunctions.
Referenced by GNECrossingFrame::addCrossing(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode(), 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 289 of file GNEViewNetHelper.cpp.
References myLanes.
Referenced by GNEAdditionalFrame::addAdditional(), GNEPersonFrame::addPerson(), GNEStopFrame::addStop(), GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode(), 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 229 of file GNEViewNetHelper.cpp.
References myNetElements.
| GNEPOI * GNEViewNetHelper::ObjectsUnderCursor::getPOIFront | ( | ) | const |
get front POI (or a pointer to nullptr if there isn't)
Definition at line 329 of file GNEViewNetHelper.cpp.
References myPOIs.
Referenced by GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode(), and GNEViewNet::processLeftButtonPressNetwork().
| GNEPoly * GNEViewNetHelper::ObjectsUnderCursor::getPolyFront | ( | ) | const |
get front Poly (or a pointer to nullptr if there isn't)
Definition at line 339 of file GNEViewNetHelper.cpp.
References myPolys.
Referenced by GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode(), GNEViewNetHelper::MoveSingleElementValues::calculatePolyValues(), 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 249 of file GNEViewNetHelper.cpp.
References myShapes.
Referenced by GNEDeleteFrame::removeAttributeCarrier().
| GNETAZ * GNEViewNetHelper::ObjectsUnderCursor::getTAZFront | ( | ) | const |
get front TAZ (or a pointer to nullptr if there isn't)
Definition at line 319 of file GNEViewNetHelper.cpp.
References myTAZs.
Referenced by GNEViewNetHelper::MoveSingleElementValues::beginMoveSingleElementNetworkMode(), GNEViewNetHelper::MoveSingleElementValues::calculateTAZValues(), GNETAZFrame::processClick(), and GNEDeleteFrame::removeAttributeCarrier().
|
privatedelete |
Invalidated assignment operator.
| void GNEViewNetHelper::ObjectsUnderCursor::setCreatedJunction | ( | GNEJunction * | junction | ) |
set created junction
Definition at line 189 of file GNEViewNetHelper.cpp.
References myJunctions.
Referenced by GNECreateEdgeFrame::processClick().
|
private |
invert GUIGlObjects
Definition at line 355 of file GNEViewNetHelper.cpp.
References myGUIGlObjects.
Referenced by updateObjectUnderCursor().
| void GNEViewNetHelper::ObjectsUnderCursor::swapLane2Edge | ( | ) |
swap lane to edge
Definition at line 172 of file GNEViewNetHelper.cpp.
References myAttributeCarriers, myEdges, myGUIGlObjects, myNetElements, and 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 59 of file GNEViewNetHelper.cpp.
References GLO_CONNECTION, GLO_CROSSING, GLO_EDGE, GLO_JUNCTION, GLO_LANE, GLO_NETELEMENT, GLO_POI, GLO_POLYGON, myAdditionals, myAttributeCarriers, myConnections, myCrossings, myDemandElements, myEdges, myGUIGlObjects, myJunctions, myLanes, myNetElements, myPOIs, myPolys, myShapes, myTAZs, sortGUIGlObjectsByAltitude(), toString(), and WRITE_DEBUG.
Referenced by GNEViewNet::onLeftBtnPress(), and GNEViewNet::processLeftButtonReleaseNetwork().
|
private |
vector with the clicked additional elements
Definition at line 222 of file GNEViewNetHelper.h.
Referenced by getAdditionalFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked attribute carriers
Definition at line 216 of file GNEViewNetHelper.h.
Referenced by getAttributeCarrierFront(), getClickedAttributeCarriers(), swapLane2Edge(), and updateObjectUnderCursor().
|
private |
vector with the clicked connections
Definition at line 243 of file GNEViewNetHelper.h.
Referenced by getConnectionFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked crossings
Definition at line 240 of file GNEViewNetHelper.h.
Referenced by getCrossingFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked demand elements
Definition at line 228 of file GNEViewNetHelper.h.
Referenced by getDemandElementFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked edges
Definition at line 234 of file GNEViewNetHelper.h.
Referenced by getEdgeFront(), swapLane2Edge(), and updateObjectUnderCursor().
|
private |
vector with the clicked GUIGlObjects
Definition at line 213 of file GNEViewNetHelper.h.
Referenced by getGlIDFront(), getGlTypeFront(), sortGUIGlObjectsByAltitude(), swapLane2Edge(), and updateObjectUnderCursor().
|
private |
vector with the clicked junctions
Definition at line 231 of file GNEViewNetHelper.h.
Referenced by getJunctionFront(), setCreatedJunction(), and updateObjectUnderCursor().
|
private |
vector with the clicked lanes
Definition at line 237 of file GNEViewNetHelper.h.
Referenced by getLaneFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked net elements
Definition at line 219 of file GNEViewNetHelper.h.
Referenced by getNetElementFront(), swapLane2Edge(), and updateObjectUnderCursor().
|
private |
vector with the clicked POIs
Definition at line 249 of file GNEViewNetHelper.h.
Referenced by getPOIFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked Polys
Definition at line 252 of file GNEViewNetHelper.h.
Referenced by getPolyFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked shape elements (Poly and POIs)
Definition at line 225 of file GNEViewNetHelper.h.
Referenced by getShapeFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked TAZ elements (needed because uses a shape instead a position)
Definition at line 246 of file GNEViewNetHelper.h.
Referenced by getTAZFront(), and updateObjectUnderCursor().