SUMO - Simulation of Urban MObility
GNEViewNet::ObjectsUnderCursor Class Reference

FOX-declaration. More...

#include <GNEViewNet.h>

Collaboration diagram for GNEViewNet::ObjectsUnderCursor:
Collaboration graph

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

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.

Constructor & Destructor Documentation

◆ ObjectsUnderCursor() [1/2]

GNEViewNet::ObjectsUnderCursor::ObjectsUnderCursor ( )

constructor

Definition at line 148 of file GNEViewNet.cpp.

◆ ObjectsUnderCursor() [2/2]

GNEViewNet::ObjectsUnderCursor::ObjectsUnderCursor ( const ObjectsUnderCursor )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getAdditionalFront()

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

◆ getAttributeCarrierFront()

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

◆ getClickedAttributeCarriers()

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

◆ getConnectionFront()

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

◆ getCrossingFront()

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.

◆ getEdgeFront()

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

◆ getGlIDFront()

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.

◆ getGlTypeFront()

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

◆ getJunctionFront()

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

◆ getLaneFront()

GNELane * GNEViewNet::ObjectsUnderCursor::getLaneFront ( ) const

◆ getNetElementFront()

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.

◆ getPOIFront()

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

◆ getPolyFront()

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

◆ getShapeFront()

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.

◆ getTAZFront()

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

◆ operator=()

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

Invalidated assignment operator.

◆ setCreatedJunction()

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

set created junction

Definition at line 277 of file GNEViewNet.cpp.

References myJunctions.

Referenced by GNEViewNet::onLeftBtnPress().

◆ sortGUIGlObjectsByAltitude()

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

invert GUIGlObjects

Definition at line 433 of file GNEViewNet.cpp.

References myGUIGlObjects.

Referenced by updateObjectUnderCursor().

◆ swapLane2Edge()

void GNEViewNet::ObjectsUnderCursor::swapLane2Edge ( )

◆ updateObjectUnderCursor()

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

Field Documentation

◆ myAdditionals

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

vector with the clicked additional elements

Definition at line 176 of file GNEViewNet.h.

Referenced by getAdditionalFront(), and updateObjectUnderCursor().

◆ myAttributeCarriers

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

vector with the clicked attribute carriers

Definition at line 170 of file GNEViewNet.h.

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

◆ myConnections

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

vector with the clicked connections

Definition at line 194 of file GNEViewNet.h.

Referenced by getConnectionFront(), and updateObjectUnderCursor().

◆ myCrossings

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

vector with the clicked crossings

Definition at line 191 of file GNEViewNet.h.

Referenced by getCrossingFront(), and updateObjectUnderCursor().

◆ myEdges

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

vector with the clicked edges

Definition at line 185 of file GNEViewNet.h.

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

◆ myGUIGlObjects

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

vector with the clicked GUIGlObjects

Definition at line 167 of file GNEViewNet.h.

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

◆ myJunctions

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

vector with the clicked junctions

Definition at line 182 of file GNEViewNet.h.

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

◆ myLanes

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

vector with the clicked lanes

Definition at line 188 of file GNEViewNet.h.

Referenced by getLaneFront(), and updateObjectUnderCursor().

◆ myNetElements

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

vector with the clicked net elements

Definition at line 173 of file GNEViewNet.h.

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

◆ myPOIs

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

vector with the clicked POIs

Definition at line 200 of file GNEViewNet.h.

Referenced by getPOIFront(), and updateObjectUnderCursor().

◆ myPolys

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

vector with the clicked Polys

Definition at line 203 of file GNEViewNet.h.

Referenced by getPolyFront(), and updateObjectUnderCursor().

◆ myShapes

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

vector with the clicked shape elements (Poly and POIs)

Definition at line 179 of file GNEViewNet.h.

Referenced by getShapeFront(), and updateObjectUnderCursor().

◆ myTAZs

std::vector<GNETAZ*> GNEViewNet::ObjectsUnderCursor::myTAZs
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().


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