Eclipse SUMO - Simulation of Urban MObility
GNEViewNetHelper::ViewObjectsSelector 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::ViewObjectsSelector:
[legend]

Data Structures

class  ViewObjectsContainer
 objects container More...
 

Public Member Functions

void filterEdges ()
 filter (remove) edges More...
 
void filterLanes ()
 filter (remove) lanes More...
 
void filterLockedElements (const std::vector< GUIGlObjectType > ignoreFilter={})
 filter locked elements (except the ignoreFilter) More...
 
GNEAdditionalgetAdditionalFront () const
 get front additional element or a pointer to nullptr More...
 
const std::vector< GNEAdditional * > & getAdditionals () const
 get vector with additionals More...
 
GNEAttributeCarriergetAttributeCarrierFront () const
 get front attribute carrier or a pointer to nullptr More...
 
const std::vector< GNEAttributeCarrier * > & getAttributeCarriers () const
 get vector with ACs More...
 
GNEConnectiongetConnectionFront () const
 get front connection or a pointer to nullptr More...
 
GNECrossinggetCrossingFront () const
 get front crossing or a pointer to nullptr More...
 
GNEDemandElementgetDemandElementFront () const
 get front demand element or a pointer to nullptr More...
 
const std::vector< GNEDemandElement * > & getDemandElements () const
 get vector with Demand Elements More...
 
GNEEdgeDatagetEdgeDataElementFront () const
 get edge data element or a pointer to nullptr More...
 
GNEEdgegetEdgeFront () const
 get front edge or a pointer to nullptr More...
 
GNEEdgeRelDatagetEdgeRelDataElementFront () const
 get edge rel data element or a pointer to nullptr More...
 
const std::vector< GNEEdge * > & getEdges () const
 get vector with edges More...
 
GNEGenericDatagetGenericDataElementFront () const
 get generic data element or a pointer to nullptr More...
 
const std::vector< GUIGlObject * > & getGLObjects () const
 get vector with GL objects More...
 
const GUIGlObjectgetGUIGlObjectFront () const
 get front attribute carrier or a pointer to nullptr More...
 
GNEInternalLanegetInternalLaneFront () const
 get front internal lane or a pointer to nullptr More...
 
GNEJunctiongetJunctionFront () const
 get front junction or a pointer to nullptr More...
 
const std::vector< GNEJunction * > & getJunctions () const
 get vector with junctions More...
 
GNELanegetLaneFront () const
 get front lane or a pointer to nullptr More...
 
GNELanegetLaneFrontNonLocked () const
 get front lane or a pointer to nullptr checking if is locked More...
 
const std::vector< GNELane * > & getLanes () const
 get lanes More...
 
GNENetworkElementgetNetworkElementFront () const
 get front network element or a pointer to nullptr More...
 
GNEPOIgetPOIFront () const
 get front POI or a pointer to nullptr More...
 
GNEPolygetPolyFront () const
 get front Poly or a pointer to nullptr More...
 
GNETAZgetTAZFront () const
 get front TAZ or a pointer to nullptr More...
 
const std::vector< GNETAZ * > & getTAZs () const
 get vector with TAZs More...
 
GNEWalkingAreagetWalkingAreaFront () const
 get front walkingArea or a pointer to nullptr More...
 
void updateObjects ()
 update objects (using gViewObjectsHandler) More...
 
 ViewObjectsSelector (GNEViewNet *viewNet)
 constructor More...
 

Protected Attributes

const GNEViewNetmyViewNet
 pointer to viewNet More...
 
ViewObjectsContainer myViewObjects
 objects container with selected objects More...
 

Private Member Functions

ViewObjectsSelectoroperator= (const ViewObjectsSelector &)=delete
 Invalidated assignment operator. More...
 
void processGUIGlObjects (const GUIViewObjectsHandler::GLObjectsSortedContainer &objectsContainer)
 process GL objects More...
 
void updateAdditionalElements (ViewObjectsContainer &container, const GUIGlObject *glObject)
 update additional elements More...
 
void updateDemandElements (ViewObjectsContainer &container, const GUIGlObject *glObject)
 update demand elements More...
 
void updateGenericDataElements (ViewObjectsContainer &container, const GUIGlObject *glObject)
 update generic data elements More...
 
void updateNetworkElements (ViewObjectsContainer &container, const GUIGlObject *glObject)
 update network elements More...
 
void updateShapeElements (ViewObjectsContainer &container, const GUIGlObject *glObject)
 update shape elements More...
 
void updateTAZElements (ViewObjectsContainer &container, const GUIGlObject *glObject)
 update TAZ elements More...
 
 ViewObjectsSelector ()
 default constructor More...
 
 ViewObjectsSelector (const ViewObjectsSelector &)=delete
 Invalidated copy constructor. More...
 

Detailed Description

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

Definition at line 222 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ ViewObjectsSelector() [1/3]

GNEViewNetHelper::ViewObjectsSelector::ViewObjectsSelector ( GNEViewNet viewNet)

constructor

Definition at line 217 of file GNEViewNetHelper.cpp.

◆ ViewObjectsSelector() [2/3]

GNEViewNetHelper::ViewObjectsSelector::ViewObjectsSelector ( )
private

default constructor

Definition at line 1012 of file GNEViewNetHelper.cpp.

◆ ViewObjectsSelector() [3/3]

GNEViewNetHelper::ViewObjectsSelector::ViewObjectsSelector ( const ViewObjectsSelector )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ filterEdges()

void GNEViewNetHelper::ViewObjectsSelector::filterEdges ( )

filter (remove) edges

Definition at line 232 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ filterLanes()

void GNEViewNetHelper::ViewObjectsSelector::filterLanes ( )

filter (remove) lanes

Definition at line 243 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ filterLockedElements()

void GNEViewNetHelper::ViewObjectsSelector::filterLockedElements ( const std::vector< GUIGlObjectType ignoreFilter = {})

filter locked elements (except the ignoreFilter)

Definition at line 254 of file GNEViewNetHelper.cpp.

References GUIGlObject::isGLObjectLocked().

Referenced by GNEViewNet::processLeftButtonPressData(), GNEViewNet::processLeftButtonPressDemand(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ getAdditionalFront()

GNEAdditional * GNEViewNetHelper::ViewObjectsSelector::getAdditionalFront ( ) const

get front additional element or a pointer to nullptr

Definition at line 309 of file GNEViewNetHelper.cpp.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonPlanFrame::addPersonPlanElement(), GNEStopFrame::addStop(), GNEAdditionalFrame::createBaseAdditionalObject(), GNEWireFrame::createBaseWireObject(), GNETLSEditorFrame::editTLS(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ getAdditionals()

const std::vector< GNEAdditional * > & GNEViewNetHelper::ViewObjectsSelector::getAdditionals ( ) const

get vector with additionals

Definition at line 509 of file GNEViewNetHelper.cpp.

Referenced by GNEPersonFrame::addPerson().

Here is the caller graph for this function:

◆ getAttributeCarrierFront()

◆ getAttributeCarriers()

const std::vector< GNEAttributeCarrier * > & GNEViewNetHelper::ViewObjectsSelector::getAttributeCarriers ( ) const

get vector with ACs

Definition at line 487 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::onCmdSelectPolygonElements(), GNEDeleteFrame::removeGeometryPoint(), and GNEOverlappedInspection::showOverlappedInspection().

Here is the caller graph for this function:

◆ getConnectionFront()

GNEConnection * GNEViewNetHelper::ViewObjectsSelector::getConnectionFront ( ) const

get front connection or a pointer to nullptr

Definition at line 412 of file GNEViewNetHelper.cpp.

Referenced by GNEProhibitionFrame::handleProhibitionClick(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ getCrossingFront()

GNECrossing * GNEViewNetHelper::ViewObjectsSelector::getCrossingFront ( ) const

get front crossing or a pointer to nullptr

Definition at line 392 of file GNEViewNetHelper.cpp.

◆ getDemandElementFront()

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

get front demand element or a pointer to nullptr

Definition at line 319 of file GNEViewNetHelper.cpp.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonPlanFrame::addPersonPlanElement(), GNEStopFrame::addStop(), and GNEVehicleFrame::addVehicle().

Here is the caller graph for this function:

◆ getDemandElements()

const std::vector< GNEDemandElement * > & GNEViewNetHelper::ViewObjectsSelector::getDemandElements ( ) const

get vector with Demand Elements

Definition at line 514 of file GNEViewNetHelper.cpp.

Referenced by GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonFrame::addPerson(), and GNEPersonPlanFrame::addPersonPlanElement().

Here is the caller graph for this function:

◆ getEdgeDataElementFront()

GNEEdgeData * GNEViewNetHelper::ViewObjectsSelector::getEdgeDataElementFront ( ) const

get edge data element or a pointer to nullptr

Definition at line 462 of file GNEViewNetHelper.cpp.

◆ getEdgeFront()

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

get front edge or a pointer to nullptr

Definition at line 349 of file GNEViewNetHelper.cpp.

Referenced by GNEAdditionalFrame::addAdditional(), GNECrossingFrame::addCrossing(), GNEEdgeDataFrame::addEdgeData(), GNEEdgeRelDataFrame::addEdgeRelationData(), GNEVehicleFrame::addVehicle(), GNETAZFrame::processClick(), GNEViewNet::processLeftButtonPressNetwork(), and GNEDeleteFrame::removeGeometryPoint().

Here is the caller graph for this function:

◆ getEdgeRelDataElementFront()

GNEEdgeRelData * GNEViewNetHelper::ViewObjectsSelector::getEdgeRelDataElementFront ( ) const

get edge rel data element or a pointer to nullptr

Definition at line 472 of file GNEViewNetHelper.cpp.

◆ getEdges()

const std::vector< GNEEdge * > & GNEViewNetHelper::ViewObjectsSelector::getEdges ( ) const

get vector with edges

Definition at line 499 of file GNEViewNetHelper.cpp.

Referenced by GNETAZFrame::shapeDrawed().

Here is the caller graph for this function:

◆ getGenericDataElementFront()

GNEGenericData * GNEViewNetHelper::ViewObjectsSelector::getGenericDataElementFront ( ) const

get generic data element or a pointer to nullptr

Definition at line 329 of file GNEViewNetHelper.cpp.

◆ getGLObjects()

const std::vector< GUIGlObject * > & GNEViewNetHelper::ViewObjectsSelector::getGLObjects ( ) const

get vector with GL objects

Definition at line 481 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::checkOverLockedElement(), GNEViewNet::openObjectDialogAtCursor(), GNEDeleteFrame::removeAttributeCarrier(), and GNESelectorFrame::selectAttributeCarrier().

Here is the caller graph for this function:

◆ getGUIGlObjectFront()

◆ getInternalLaneFront()

GNEInternalLane * GNEViewNetHelper::ViewObjectsSelector::getInternalLaneFront ( ) const

get front internal lane or a pointer to nullptr

Definition at line 422 of file GNEViewNetHelper.cpp.

◆ getJunctionFront()

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

get front junction or a pointer to nullptr

Definition at line 339 of file GNEViewNetHelper.cpp.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNECrossingFrame::addCrossing(), GNEPersonPlanFrame::addPersonPlanElement(), GNEVehicleFrame::addVehicle(), GNETLSEditorFrame::editTLS(), GNECreateEdgeFrame::processClick(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ getJunctions()

const std::vector< GNEJunction * > & GNEViewNetHelper::ViewObjectsSelector::getJunctions ( ) const

get vector with junctions

Definition at line 493 of file GNEViewNetHelper.cpp.

Referenced by GNEPersonFrame::addPerson(), and GNEJunction::commitMoveShape().

Here is the caller graph for this function:

◆ getLaneFront()

GNELane * GNEViewNetHelper::ViewObjectsSelector::getLaneFront ( ) const

◆ getLaneFrontNonLocked()

GNELane * GNEViewNetHelper::ViewObjectsSelector::getLaneFrontNonLocked ( ) const

get front lane or a pointer to nullptr checking if is locked

Definition at line 369 of file GNEViewNetHelper.cpp.

Referenced by GNEConnectorFrame::handleLaneClick(), and GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ getLanes()

const std::vector< GNELane * > & GNEViewNetHelper::ViewObjectsSelector::getLanes ( ) const

get lanes

Definition at line 386 of file GNEViewNetHelper.cpp.

Referenced by GNEPersonFrame::addPerson(), and GNEConnectorFrame::handleLaneClick().

Here is the caller graph for this function:

◆ getNetworkElementFront()

GNENetworkElement * GNEViewNetHelper::ViewObjectsSelector::getNetworkElementFront ( ) const

get front network element or a pointer to nullptr

Definition at line 299 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ getPOIFront()

GNEPOI * GNEViewNetHelper::ViewObjectsSelector::getPOIFront ( ) const

get front POI or a pointer to nullptr

Definition at line 432 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ getPolyFront()

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

get front Poly or a pointer to nullptr

Definition at line 442 of file GNEViewNetHelper.cpp.

Referenced by GNEDeleteFrame::removeGeometryPoint().

Here is the caller graph for this function:

◆ getTAZFront()

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

get front TAZ or a pointer to nullptr

Definition at line 452 of file GNEViewNetHelper.cpp.

Referenced by GNEContainerFrame::addContainer(), GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonPlanFrame::addPersonPlanElement(), GNEVehicleFrame::addVehicle(), GNETAZFrame::processClick(), GNEDeleteFrame::removeGeometryPoint(), and GNETAZRelDataFrame::setTAZ().

Here is the caller graph for this function:

◆ getTAZs()

const std::vector< GNETAZ * > & GNEViewNetHelper::ViewObjectsSelector::getTAZs ( ) const

get vector with TAZs

Definition at line 504 of file GNEViewNetHelper.cpp.

Referenced by GNEPersonFrame::addPerson().

Here is the caller graph for this function:

◆ getWalkingAreaFront()

GNEWalkingArea * GNEViewNetHelper::ViewObjectsSelector::getWalkingAreaFront ( ) const

get front walkingArea or a pointer to nullptr

Definition at line 402 of file GNEViewNetHelper.cpp.

◆ operator=()

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

Invalidated assignment operator.

◆ processGUIGlObjects()

void GNEViewNetHelper::ViewObjectsSelector::processGUIGlObjects ( const GUIViewObjectsHandler::GLObjectsSortedContainer objectsContainer)
private

process GL objects

Definition at line 996 of file GNEViewNetHelper.cpp.

◆ updateAdditionalElements()

void GNEViewNetHelper::ViewObjectsSelector::updateAdditionalElements ( ViewObjectsContainer container,
const GUIGlObject glObject 
)
private

◆ updateDemandElements()

◆ updateGenericDataElements()

◆ updateNetworkElements()

◆ updateObjects()

void GNEViewNetHelper::ViewObjectsSelector::updateObjects ( )

update objects (using gViewObjectsHandler)

Definition at line 223 of file GNEViewNetHelper.cpp.

References GUIViewObjectsHandler::getSelectedObjects(), and gViewObjectsHandler.

Referenced by GNEViewNet::updateObjectsInBoundary(), and GNEViewNet::updateObjectsInPosition().

Here is the caller graph for this function:

◆ updateShapeElements()

void GNEViewNetHelper::ViewObjectsSelector::updateShapeElements ( ViewObjectsContainer container,
const GUIGlObject glObject 
)
private

◆ updateTAZElements()

void GNEViewNetHelper::ViewObjectsSelector::updateTAZElements ( ViewObjectsContainer container,
const GUIGlObject glObject 
)
private

Field Documentation

◆ myViewNet

const GNEViewNet* GNEViewNetHelper::ViewObjectsSelector::myViewNet
protected

pointer to viewNet

Definition at line 395 of file GNEViewNetHelper.h.

◆ myViewObjects

ViewObjectsContainer GNEViewNetHelper::ViewObjectsSelector::myViewObjects
protected

objects container with selected objects

Definition at line 398 of file GNEViewNetHelper.h.


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