Eclipse SUMO - Simulation of Urban MObility
GNEViewNetHelper::ObjectsUnderCursor Class Reference

class used to group all variables related with objects under cursor after a click over view More...

#include <GNEViewNetHelper.h>

Collaboration diagram for GNEViewNetHelper::ObjectsUnderCursor:

Public Member Functions

GNEAdditionalgetAdditionalFront () const
 get front additional element (or a pointer to nullptr if there isn't) More...
 
GNEAttributeCarriergetAttributeCarrierFront () 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...
 
GNEConnectiongetConnectionFront () const
 get front connection (or a pointer to nullptr if there isn't) More...
 
GNECrossinggetCrossingFront () const
 get front crossing (or a pointer to nullptr if there isn't) More...
 
GNEDemandElementgetDemandElementFront () const
 get front net element element (or a pointer to nullptr if there isn't) More...
 
GNEEdgegetEdgeFront () 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...
 
GNEJunctiongetJunctionFront () const
 get front junction (or a pointer to nullptr if there isn't) More...
 
GNELanegetLaneFront () const
 get front lane (or a pointer to nullptr if there isn't) More...
 
GNENetElementgetNetElementFront () const
 get front net element (or a pointer to nullptr if there isn't) More...
 
GNEPOIgetPOIFront () const
 get front POI (or a pointer to nullptr if there isn't) More...
 
GNEPolygetPolyFront () const
 get front Poly (or a pointer to nullptr if there isn't) More...
 
GNEShapegetShapeFront () const
 get front shape element (or a pointer to nullptr if there isn't) More...
 
GNETAZgetTAZFront () 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...
 
ObjectsUnderCursoroperator= (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...
 

Detailed Description

class used to group all variables related with objects under cursor after a click over view

Definition at line 148 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ ObjectsUnderCursor() [1/2]

GNEViewNetHelper::ObjectsUnderCursor::ObjectsUnderCursor ( )

constructor

Definition at line 54 of file GNEViewNetHelper.cpp.

◆ ObjectsUnderCursor() [2/2]

GNEViewNetHelper::ObjectsUnderCursor::ObjectsUnderCursor ( const ObjectsUnderCursor )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getAdditionalFront()

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().

◆ getAttributeCarrierFront()

GNEAttributeCarrier * GNEViewNetHelper::ObjectsUnderCursor::getAttributeCarrierFront ( ) const

◆ getClickedAttributeCarriers()

const std::vector< GNEAttributeCarrier * > & GNEViewNetHelper::ObjectsUnderCursor::getClickedAttributeCarriers ( ) const

◆ getConnectionFront()

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().

◆ getCrossingFront()

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().

◆ getDemandElementFront()

GNEDemandElement * GNEViewNetHelper::ObjectsUnderCursor::getDemandElementFront ( ) const

◆ getEdgeFront()

GNEEdge * GNEViewNetHelper::ObjectsUnderCursor::getEdgeFront ( ) const

◆ getGlIDFront()

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.

◆ getGlTypeFront()

GUIGlObjectType GNEViewNetHelper::ObjectsUnderCursor::getGlTypeFront ( ) const

◆ getJunctionFront()

GNEJunction * GNEViewNetHelper::ObjectsUnderCursor::getJunctionFront ( ) const

◆ getLaneFront()

◆ getNetElementFront()

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.

◆ getPOIFront()

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().

◆ getPolyFront()

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().

◆ getShapeFront()

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().

◆ getTAZFront()

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().

◆ operator=()

ObjectsUnderCursor& GNEViewNetHelper::ObjectsUnderCursor::operator= ( const ObjectsUnderCursor )
privatedelete

Invalidated assignment operator.

◆ sortGUIGlObjectsByAltitude()

void GNEViewNetHelper::ObjectsUnderCursor::sortGUIGlObjectsByAltitude ( const std::vector< GUIGlObject * > &  GUIGlObjects)
private

invert GUIGlObjects

Definition at line 344 of file GNEViewNetHelper.cpp.

◆ swapLane2Edge()

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().

◆ updateObjectUnderCursor()

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().

Field Documentation

◆ myAdditionals

std::vector<GNEAdditional*> GNEViewNetHelper::ObjectsUnderCursor::myAdditionals
private

vector with the clicked additional elements

Definition at line 218 of file GNEViewNetHelper.h.

◆ myAttributeCarriers

std::vector<GNEAttributeCarrier*> GNEViewNetHelper::ObjectsUnderCursor::myAttributeCarriers
private

vector with the clicked attribute carriers

Definition at line 212 of file GNEViewNetHelper.h.

◆ myConnections

std::vector<GNEConnection*> GNEViewNetHelper::ObjectsUnderCursor::myConnections
private

vector with the clicked connections

Definition at line 239 of file GNEViewNetHelper.h.

◆ myCrossings

std::vector<GNECrossing*> GNEViewNetHelper::ObjectsUnderCursor::myCrossings
private

vector with the clicked crossings

Definition at line 236 of file GNEViewNetHelper.h.

◆ myDemandElements

std::vector<GNEDemandElement*> GNEViewNetHelper::ObjectsUnderCursor::myDemandElements
private

vector with the clicked demand elements

Definition at line 224 of file GNEViewNetHelper.h.

◆ myEdges

std::vector<GNEEdge*> GNEViewNetHelper::ObjectsUnderCursor::myEdges
private

vector with the clicked edges

Definition at line 230 of file GNEViewNetHelper.h.

◆ myGUIGlObjects

std::vector<GUIGlObject*> GNEViewNetHelper::ObjectsUnderCursor::myGUIGlObjects
private

vector with the clicked GUIGlObjects

Definition at line 209 of file GNEViewNetHelper.h.

◆ myJunctions

std::vector<GNEJunction*> GNEViewNetHelper::ObjectsUnderCursor::myJunctions
private

vector with the clicked junctions

Definition at line 227 of file GNEViewNetHelper.h.

◆ myLanes

std::vector<GNELane*> GNEViewNetHelper::ObjectsUnderCursor::myLanes
private

vector with the clicked lanes

Definition at line 233 of file GNEViewNetHelper.h.

◆ myNetElements

std::vector<GNENetElement*> GNEViewNetHelper::ObjectsUnderCursor::myNetElements
private

vector with the clicked net elements

Definition at line 215 of file GNEViewNetHelper.h.

◆ myPOIs

std::vector<GNEPOI*> GNEViewNetHelper::ObjectsUnderCursor::myPOIs
private

vector with the clicked POIs

Definition at line 245 of file GNEViewNetHelper.h.

◆ myPolys

std::vector<GNEPoly*> GNEViewNetHelper::ObjectsUnderCursor::myPolys
private

vector with the clicked Polys

Definition at line 248 of file GNEViewNetHelper.h.

◆ myShapes

std::vector<GNEShape*> GNEViewNetHelper::ObjectsUnderCursor::myShapes
private

vector with the clicked shape elements (Poly and POIs)

Definition at line 221 of file GNEViewNetHelper.h.

◆ myTAZs

std::vector<GNETAZ*> GNEViewNetHelper::ObjectsUnderCursor::myTAZs
private

vector with the clicked TAZ elements (needed because uses a shape instead a position)

Definition at line 242 of file GNEViewNetHelper.h.


The documentation for this class was generated from the following files: