![]() |
SUMO - Simulation of Urban MObility
|
FOX-declaration. More...
#include <GNEViewNet.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... | |
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< 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... | |
FOX-declaration.
class used to group all variables related with objects under cursor after a click over view
Definition at line 106 of file GNEViewNet.h.
GNEViewNet::ObjectsUnderCursor::ObjectsUnderCursor | ( | ) |
constructor
Definition at line 148 of file GNEViewNet.cpp.
|
privatedelete |
Invalidated copy constructor.
GNEAdditional * GNEViewNet::ObjectsUnderCursor::getAdditionalFront | ( | ) | const |
get front additional element (or a pointer to nullptr if there isn't)
Definition at line 327 of file GNEViewNet.cpp.
References myAdditionals.
Referenced by GNEAdditionalFrame::addAdditional(), and GNEViewNet::onLeftBtnPress().
GNEAttributeCarrier * GNEViewNet::ObjectsUnderCursor::getAttributeCarrierFront | ( | ) | const |
get front attribute carrier (or a pointer to nullptr if there isn't)
Definition at line 307 of file GNEViewNet.cpp.
References myAttributeCarriers.
Referenced by GNEInspectorFrame::inspectClickedElement(), GNEViewNet::onLeftBtnPress(), and GNEInspectorFrame::processClick().
const std::vector< GNEAttributeCarrier * > & GNEViewNet::ObjectsUnderCursor::getClickedAttributeCarriers | ( | ) | const |
get vector with clicked ACs
Definition at line 427 of file GNEViewNet.cpp.
References myAttributeCarriers.
Referenced by GNEInspectorFrame::inspectClickedElement(), and GNEInspectorFrame::OverlappedInspection::showOverlappedInspection().
GNEConnection * GNEViewNet::ObjectsUnderCursor::getConnectionFront | ( | ) | const |
get front connection (or a pointer to nullptr if there isn't)
Definition at line 387 of file GNEViewNet.cpp.
References myConnections.
Referenced by GNEProhibitionFrame::handleProhibitionClick(), and GNEViewNet::onLeftBtnPress().
GNECrossing * GNEViewNet::ObjectsUnderCursor::getCrossingFront | ( | ) | const |
get front crossing (or a pointer to nullptr if there isn't)
Definition at line 377 of file GNEViewNet.cpp.
References myCrossings.
GNEEdge * GNEViewNet::ObjectsUnderCursor::getEdgeFront | ( | ) | const |
get front edge (or a pointer to nullptr if there isn't)
Definition at line 357 of file GNEViewNet.cpp.
References myEdges.
Referenced by GNECrossingFrame::addCrossing(), GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEViewNet::onLeftBtnPress(), and GNETAZFrame::processClick().
GUIGlID GNEViewNet::ObjectsUnderCursor::getGlIDFront | ( | ) | const |
get front GUI GL ID (or a pointer to nullptr if there isn't)
Definition at line 287 of file GNEViewNet.cpp.
References myGUIGlObjects.
GUIGlObjectType GNEViewNet::ObjectsUnderCursor::getGlTypeFront | ( | ) | const |
get front GUI GL object type (or a pointer to nullptr if there isn't)
Definition at line 297 of file GNEViewNet.cpp.
References GLO_NETWORK, and myGUIGlObjects.
Referenced by GNEViewNet::onLeftBtnPress(), and GNEInspectorFrame::processClick().
GNEJunction * GNEViewNet::ObjectsUnderCursor::getJunctionFront | ( | ) | const |
get front junction (or a pointer to nullptr if there isn't)
Definition at line 347 of file GNEViewNet.cpp.
References myJunctions.
Referenced by GNECrossingFrame::addCrossing(), and GNEViewNet::onLeftBtnPress().
GNELane * GNEViewNet::ObjectsUnderCursor::getLaneFront | ( | ) | const |
get front lane (or a pointer to nullptr if there isn't)
Definition at line 367 of file GNEViewNet.cpp.
References myLanes.
Referenced by GNEAdditionalFrame::addAdditional(), GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEConnectorFrame::handleLaneClick(), GNEViewNet::onLeftBtnPress(), GNEViewNet::onLeftBtnRelease(), and GNEPolygonFrame::processClick().
GNENetElement * GNEViewNet::ObjectsUnderCursor::getNetElementFront | ( | ) | const |
get front net element (or a pointer to nullptr if there isn't)
Definition at line 317 of file GNEViewNet.cpp.
References myNetElements.
GNEPOI * GNEViewNet::ObjectsUnderCursor::getPOIFront | ( | ) | const |
get front POI (or a pointer to nullptr if there isn't)
Definition at line 407 of file GNEViewNet.cpp.
References myPOIs.
Referenced by GNEViewNet::onLeftBtnPress().
GNEPoly * GNEViewNet::ObjectsUnderCursor::getPolyFront | ( | ) | const |
get front Poly (or a pointer to nullptr if there isn't)
Definition at line 417 of file GNEViewNet.cpp.
References myPolys.
Referenced by GNEViewNet::MoveSingleElementValues::calculatePolyValues(), and GNEViewNet::onLeftBtnPress().
GNEShape * GNEViewNet::ObjectsUnderCursor::getShapeFront | ( | ) | const |
get front shape element (or a pointer to nullptr if there isn't)
Definition at line 337 of file GNEViewNet.cpp.
References myShapes.
GNETAZ * GNEViewNet::ObjectsUnderCursor::getTAZFront | ( | ) | const |
get front TAZ (or a pointer to nullptr if there isn't)
Definition at line 397 of file GNEViewNet.cpp.
References myTAZs.
Referenced by GNEViewNet::MoveSingleElementValues::calculateTAZValues(), GNEViewNet::onLeftBtnPress(), and GNETAZFrame::processClick().
|
privatedelete |
Invalidated assignment operator.
void GNEViewNet::ObjectsUnderCursor::setCreatedJunction | ( | GNEJunction * | junction | ) |
set created junction
Definition at line 277 of file GNEViewNet.cpp.
References myJunctions.
Referenced by GNEViewNet::onLeftBtnPress().
|
private |
invert GUIGlObjects
Definition at line 433 of file GNEViewNet.cpp.
References myGUIGlObjects.
Referenced by updateObjectUnderCursor().
void GNEViewNet::ObjectsUnderCursor::swapLane2Edge | ( | ) |
swap lane to edge
Definition at line 260 of file GNEViewNet.cpp.
References myAttributeCarriers, myEdges, myGUIGlObjects, myNetElements, and WRITE_DEBUG.
Referenced by GNEViewNet::MoveSingleElementValues::calculateEdgeValues(), GNEViewNet::onLeftBtnPress(), and GNEInspectorFrame::processClick().
void GNEViewNet::ObjectsUnderCursor::updateObjectUnderCursor | ( | const std::vector< GUIGlObject *> & | GUIGlObjects, |
GNEPoly * | editedPolyShape | ||
) |
update objects under cursor (Called only in onLeftBtnPress(...) function)
Definition at line 152 of file GNEViewNet.cpp.
References GLO_CONNECTION, GLO_CROSSING, GLO_EDGE, GLO_JUNCTION, GLO_LANE, GLO_NETELEMENT, GLO_POI, GLO_POLYGON, myAdditionals, myAttributeCarriers, myConnections, myCrossings, myEdges, myGUIGlObjects, myJunctions, myLanes, myNetElements, myPOIs, myPolys, myShapes, myTAZs, sortGUIGlObjectsByAltitude(), toString(), and WRITE_DEBUG.
Referenced by GNEViewNet::onLeftBtnPress(), and GNEViewNet::onLeftBtnRelease().
|
private |
vector with the clicked additional elements
Definition at line 176 of file GNEViewNet.h.
Referenced by getAdditionalFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked attribute carriers
Definition at line 170 of file GNEViewNet.h.
Referenced by getAttributeCarrierFront(), getClickedAttributeCarriers(), swapLane2Edge(), and updateObjectUnderCursor().
|
private |
vector with the clicked connections
Definition at line 194 of file GNEViewNet.h.
Referenced by getConnectionFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked crossings
Definition at line 191 of file GNEViewNet.h.
Referenced by getCrossingFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked edges
Definition at line 185 of file GNEViewNet.h.
Referenced by getEdgeFront(), swapLane2Edge(), and updateObjectUnderCursor().
|
private |
vector with the clicked GUIGlObjects
Definition at line 167 of file GNEViewNet.h.
Referenced by getGlIDFront(), getGlTypeFront(), sortGUIGlObjectsByAltitude(), swapLane2Edge(), and updateObjectUnderCursor().
|
private |
vector with the clicked junctions
Definition at line 182 of file GNEViewNet.h.
Referenced by getJunctionFront(), setCreatedJunction(), and updateObjectUnderCursor().
|
private |
vector with the clicked lanes
Definition at line 188 of file GNEViewNet.h.
Referenced by getLaneFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked net elements
Definition at line 173 of file GNEViewNet.h.
Referenced by getNetElementFront(), swapLane2Edge(), and updateObjectUnderCursor().
|
private |
vector with the clicked POIs
Definition at line 200 of file GNEViewNet.h.
Referenced by getPOIFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked Polys
Definition at line 203 of file GNEViewNet.h.
Referenced by getPolyFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked shape elements (Poly and POIs)
Definition at line 179 of file GNEViewNet.h.
Referenced by getShapeFront(), and updateObjectUnderCursor().
|
private |
vector with the clicked TAZ elements (needed because uses a shape instead a position)
Definition at line 197 of file GNEViewNet.h.
Referenced by getTAZFront(), and updateObjectUnderCursor().