![]() |
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.
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 219 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 349 of file GNEViewNetHelper.cpp.
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.
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.
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.
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 279 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 199 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 209 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 269 of file GNEViewNetHelper.cpp.
Referenced by GNECrossingFrame::addCrossing(), 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.
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 229 of file GNEViewNetHelper.cpp.
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.
Referenced by 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.
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 249 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 319 of file GNEViewNetHelper.cpp.
Referenced by 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.
Referenced by GNECreateEdgeFrame::processClick().
|
private |
invert GUIGlObjects
Definition at line 355 of file GNEViewNetHelper.cpp.
void GNEViewNetHelper::ObjectsUnderCursor::swapLane2Edge | ( | ) |
swap lane to edge
Definition at line 172 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 59 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 222 of file GNEViewNetHelper.h.
|
private |
vector with the clicked attribute carriers
Definition at line 216 of file GNEViewNetHelper.h.
|
private |
vector with the clicked connections
Definition at line 243 of file GNEViewNetHelper.h.
|
private |
vector with the clicked crossings
Definition at line 240 of file GNEViewNetHelper.h.
|
private |
vector with the clicked demand elements
Definition at line 228 of file GNEViewNetHelper.h.
|
private |
vector with the clicked edges
Definition at line 234 of file GNEViewNetHelper.h.
|
private |
vector with the clicked GUIGlObjects
Definition at line 213 of file GNEViewNetHelper.h.
|
private |
vector with the clicked junctions
Definition at line 231 of file GNEViewNetHelper.h.
|
private |
vector with the clicked lanes
Definition at line 237 of file GNEViewNetHelper.h.
|
private |
vector with the clicked net elements
Definition at line 219 of file GNEViewNetHelper.h.
|
private |
vector with the clicked POIs
Definition at line 249 of file GNEViewNetHelper.h.
|
private |
vector with the clicked Polys
Definition at line 252 of file GNEViewNetHelper.h.
|
private |
vector with the clicked shape elements (Poly and POIs)
Definition at line 225 of file GNEViewNetHelper.h.
|
private |
vector with the clicked TAZ elements (needed because uses a shape instead a position)
Definition at line 246 of file GNEViewNetHelper.h.