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 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...
 
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 149 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ ObjectsUnderCursor() [1/2]

GNEViewNetHelper::ObjectsUnderCursor::ObjectsUnderCursor ( )

constructor

Definition at line 55 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

◆ 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 309 of file GNEViewNetHelper.cpp.

References myConnections.

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 299 of file GNEViewNetHelper.cpp.

References myCrossings.

Referenced by GNEDeleteFrame::removeAttributeCarrier().

◆ getDemandElementFront()

◆ getEdgeFront()

◆ getGlIDFront()

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.

◆ 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 229 of file GNEViewNetHelper.cpp.

References myNetElements.

◆ getPOIFront()

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

◆ getPolyFront()

GNEPoly * GNEViewNetHelper::ObjectsUnderCursor::getPolyFront ( ) const

◆ getShapeFront()

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

◆ getTAZFront()

GNETAZ * GNEViewNetHelper::ObjectsUnderCursor::getTAZFront ( ) const

◆ operator=()

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

Invalidated assignment operator.

◆ setCreatedJunction()

void GNEViewNetHelper::ObjectsUnderCursor::setCreatedJunction ( GNEJunction junction)

set created junction

Definition at line 189 of file GNEViewNetHelper.cpp.

References myJunctions.

Referenced by GNECreateEdgeFrame::processClick().

◆ sortGUIGlObjectsByAltitude()

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

invert GUIGlObjects

Definition at line 355 of file GNEViewNetHelper.cpp.

References myGUIGlObjects.

Referenced by updateObjectUnderCursor().

◆ swapLane2Edge()

void GNEViewNetHelper::ObjectsUnderCursor::swapLane2Edge ( )

◆ updateObjectUnderCursor()

void GNEViewNetHelper::ObjectsUnderCursor::updateObjectUnderCursor ( const std::vector< GUIGlObject *> &  GUIGlObjects,
GNEPoly editedPolyShape 
)

Field Documentation

◆ myAdditionals

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

vector with the clicked additional elements

Definition at line 222 of file GNEViewNetHelper.h.

Referenced by getAdditionalFront(), and updateObjectUnderCursor().

◆ myAttributeCarriers

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

vector with the clicked attribute carriers

Definition at line 216 of file GNEViewNetHelper.h.

Referenced by getAttributeCarrierFront(), getClickedAttributeCarriers(), swapLane2Edge(), and updateObjectUnderCursor().

◆ myConnections

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

vector with the clicked connections

Definition at line 243 of file GNEViewNetHelper.h.

Referenced by getConnectionFront(), and updateObjectUnderCursor().

◆ myCrossings

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

vector with the clicked crossings

Definition at line 240 of file GNEViewNetHelper.h.

Referenced by getCrossingFront(), and updateObjectUnderCursor().

◆ myDemandElements

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

vector with the clicked demand elements

Definition at line 228 of file GNEViewNetHelper.h.

Referenced by getDemandElementFront(), and updateObjectUnderCursor().

◆ myEdges

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

vector with the clicked edges

Definition at line 234 of file GNEViewNetHelper.h.

Referenced by getEdgeFront(), swapLane2Edge(), and updateObjectUnderCursor().

◆ myGUIGlObjects

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

vector with the clicked GUIGlObjects

Definition at line 213 of file GNEViewNetHelper.h.

Referenced by getGlIDFront(), getGlTypeFront(), sortGUIGlObjectsByAltitude(), swapLane2Edge(), and updateObjectUnderCursor().

◆ myJunctions

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

vector with the clicked junctions

Definition at line 231 of file GNEViewNetHelper.h.

Referenced by getJunctionFront(), setCreatedJunction(), and updateObjectUnderCursor().

◆ myLanes

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

vector with the clicked lanes

Definition at line 237 of file GNEViewNetHelper.h.

Referenced by getLaneFront(), and updateObjectUnderCursor().

◆ myNetElements

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

vector with the clicked net elements

Definition at line 219 of file GNEViewNetHelper.h.

Referenced by getNetElementFront(), swapLane2Edge(), and updateObjectUnderCursor().

◆ myPOIs

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

vector with the clicked POIs

Definition at line 249 of file GNEViewNetHelper.h.

Referenced by getPOIFront(), and updateObjectUnderCursor().

◆ myPolys

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

vector with the clicked Polys

Definition at line 252 of file GNEViewNetHelper.h.

Referenced by getPolyFront(), and updateObjectUnderCursor().

◆ myShapes

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

vector with the clicked shape elements (Poly and POIs)

Definition at line 225 of file GNEViewNetHelper.h.

Referenced by getShapeFront(), and updateObjectUnderCursor().

◆ 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 246 of file GNEViewNetHelper.h.

Referenced by getTAZFront(), and updateObjectUnderCursor().


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