Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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 fillSumoBaseObject (CommonXMLStructure::SumoBaseObject *baseObjet) const
 fill the given SUMO base object with the current single objects
 
void filterAdditionals (const bool includeStoppigPlaces, const bool includeTAZs)
 filter (remove) additionals
 
void filterAllExcept (GUIGlObjectType exception)
 filter all elements except the given GLO type
 
void filterBySuperMode ()
 filter by supermode
 
void filterConnections ()
 filter (remove) connections
 
void filterCrossings ()
 filter (remove) crossings
 
void filterDataElements ()
 filter (remove) datga elements
 
void filterDemandElements (const bool includeRoutes)
 filter (remove) demand elements
 
void filterEdges ()
 filter (remove) edges
 
void filterJunctions ()
 filter (remove) junctions
 
void filterLanes ()
 filter (remove) lanes
 
void filterLockedElements (const std::vector< GUIGlObjectType > ignoreFilter={})
 filter locked elements (except the ignoreFilter)
 
void filterNetworkElements ()
 filter (remove) network elements
 
void filterShapes ()
 filter (remove) polys and POIs
 
void filterWalkingAreas ()
 filter (remove) walkingAreas
 
GNEAdditionalgetAdditionalFront () const
 get front additional element or a pointer to nullptr
 
const std::vector< GNEAdditional * > & getAdditionals () const
 get vector with additionals
 
GNEAttributeCarriergetAttributeCarrierFront () const
 get front attribute carrier or a pointer to nullptr
 
const std::vector< GNEAttributeCarrier * > & getAttributeCarriers () const
 get vector with ACs
 
GNEConnectiongetConnectionFront () const
 get front connection or a pointer to nullptr
 
GNECrossinggetCrossingFront () const
 get front crossing or a pointer to nullptr
 
GNEDemandElementgetDemandElementFront () const
 get front demand element or a pointer to nullptr
 
const std::vector< GNEDemandElement * > & getDemandElements () const
 get vector with Demand Elements
 
GNEEdgeDatagetEdgeDataElementFront () const
 get edge data element or a pointer to nullptr
 
GNEEdgegetEdgeFront () const
 get front edge or a pointer to nullptr
 
GNEEdgeRelDatagetEdgeRelDataElementFront () const
 get edge rel data element or a pointer to nullptr
 
const std::vector< GNEEdge * > & getEdges () const
 get vector with edges
 
GNEGenericDatagetGenericDataElementFront () const
 get generic data element or a pointer to nullptr
 
const std::vector< GUIGlObject * > & getGLObjects () const
 get vector with GL objects
 
const GUIGlObjectgetGUIGlObjectFront () const
 get front GUIGLObject or a pointer to nullptr
 
GNEInternalLanegetInternalLaneFront () const
 get front internal lane or a pointer to nullptr
 
GNEJunctiongetJunctionFront () const
 get front junction or a pointer to nullptr
 
const std::vector< GNEJunction * > & getJunctions () const
 get vector with junctions
 
GNELanegetLaneFront () const
 get front lane or a pointer to nullptr
 
GNELanegetLaneFrontNonLocked () const
 get front lane or a pointer to nullptr checking if is locked
 
const std::vector< GNELane * > & getLanes () const
 get lanes
 
const std::vector< const GNEJunction * > & getMergingJunctions () const
 get merging junctions
 
GNENetworkElementgetNetworkElementFront () const
 get front network element or a pointer to nullptr
 
GNEPOIgetPOIFront () const
 get front POI or a pointer to nullptr
 
GNEPolygetPolyFront () const
 get front Poly or a pointer to nullptr
 
GNETAZgetTAZFront () const
 get front TAZ or a pointer to nullptr
 
GNETAZRelDatagetTAZRelDataElementFront () const
 get TAZ rel data element or a pointer to nullptr
 
const std::vector< GNETAZ * > & getTAZs () const
 get vector with TAZs
 
GNEWalkingAreagetWalkingAreaFront () const
 get front walkingArea or a pointer to nullptr
 
void updateMergingJunctions ()
 update merging junctions
 
void updateObjects ()
 update objects (using gViewObjectsHandler)
 
 ViewObjectsSelector (GNEViewNet *viewNet)
 constructor
 

Protected Attributes

std::vector< const GNEJunction * > myMergingJunctions
 merging junctions
 
const GNEViewNetmyViewNet
 pointer to viewNet
 
ViewObjectsContainer myViewObjects
 objects container with selected objects
 

Private Member Functions

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

Detailed Description

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

Definition at line 339 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ ViewObjectsSelector() [1/3]

GNEViewNetHelper::ViewObjectsSelector::ViewObjectsSelector ( GNEViewNet viewNet)

constructor

Definition at line 371 of file GNEViewNetHelper.cpp.

◆ ViewObjectsSelector() [2/3]

GNEViewNetHelper::ViewObjectsSelector::ViewObjectsSelector ( )
private

default constructor

Definition at line 1426 of file GNEViewNetHelper.cpp.

◆ ViewObjectsSelector() [3/3]

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

Invalidated copy constructor.

Member Function Documentation

◆ fillSumoBaseObject()

void GNEViewNetHelper::ViewObjectsSelector::fillSumoBaseObject ( CommonXMLStructure::SumoBaseObject baseObjet) const

fill the given SUMO base object with the current single objects

Definition at line 393 of file GNEViewNetHelper.cpp.

References CommonXMLStructure::SumoBaseObject::addParentID(), SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, and SUMO_TAG_WALKINGAREA.

Referenced by GNEAdditionalFrame::initBaseAdditionalObject().

Here is the caller graph for this function:

◆ filterAdditionals()

void GNEViewNetHelper::ViewObjectsSelector::filterAdditionals ( const bool  includeStoppigPlaces,
const bool  includeTAZs 
)

filter (remove) additionals

Definition at line 537 of file GNEViewNetHelper.cpp.

References GLO_STOPPING_PLACE, GLO_STOPPING_PLACE_LAST, and GLO_TAZ.

Referenced by GNEViewNet::processLeftButtonPressDemand().

Here is the caller graph for this function:

◆ filterAllExcept()

void GNEViewNetHelper::ViewObjectsSelector::filterAllExcept ( GUIGlObjectType  exception)

filter all elements except the given GLO type

Definition at line 428 of file GNEViewNetHelper.cpp.

Referenced by GNEOverlappedInspection::showOverlappedInspection().

Here is the caller graph for this function:

◆ filterBySuperMode()

void GNEViewNetHelper::ViewObjectsSelector::filterBySuperMode ( )

filter by supermode

Definition at line 441 of file GNEViewNetHelper.cpp.

Referenced by GNEOverlappedInspection::showOverlappedInspection().

Here is the caller graph for this function:

◆ filterConnections()

void GNEViewNetHelper::ViewObjectsSelector::filterConnections ( )

filter (remove) connections

Definition at line 490 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ filterCrossings()

void GNEViewNetHelper::ViewObjectsSelector::filterCrossings ( )

filter (remove) crossings

Definition at line 501 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork().

Here is the caller graph for this function:

◆ filterDataElements()

void GNEViewNetHelper::ViewObjectsSelector::filterDataElements ( )

filter (remove) datga elements

Definition at line 580 of file GNEViewNetHelper.cpp.

◆ filterDemandElements()

void GNEViewNetHelper::ViewObjectsSelector::filterDemandElements ( const bool  includeRoutes)

filter (remove) demand elements

Definition at line 565 of file GNEViewNetHelper.cpp.

References GLO_ROUTE.

Referenced by GNEViewNet::processLeftButtonPressDemand().

Here is the caller graph for this function:

◆ filterEdges()

void GNEViewNetHelper::ViewObjectsSelector::filterEdges ( )

filter (remove) edges

Definition at line 468 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressNetwork(), and GNEOverlappedInspection::showOverlappedInspection().

Here is the caller graph for this function:

◆ filterJunctions()

void GNEViewNetHelper::ViewObjectsSelector::filterJunctions ( )

filter (remove) junctions

Definition at line 457 of file GNEViewNetHelper.cpp.

◆ filterLanes()

void GNEViewNetHelper::ViewObjectsSelector::filterLanes ( )

filter (remove) lanes

Definition at line 479 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 598 of file GNEViewNetHelper.cpp.

References GUIGlObject::isGLObjectLocked().

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

Here is the caller graph for this function:

◆ filterNetworkElements()

void GNEViewNetHelper::ViewObjectsSelector::filterNetworkElements ( )

filter (remove) network elements

Definition at line 554 of file GNEViewNetHelper.cpp.

◆ filterShapes()

void GNEViewNetHelper::ViewObjectsSelector::filterShapes ( )

filter (remove) polys and POIs

Definition at line 523 of file GNEViewNetHelper.cpp.

Referenced by GNEViewNet::processLeftButtonPressDemand().

Here is the caller graph for this function:

◆ filterWalkingAreas()

void GNEViewNetHelper::ViewObjectsSelector::filterWalkingAreas ( )

filter (remove) walkingAreas

Definition at line 512 of file GNEViewNetHelper.cpp.

Referenced by 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 653 of file GNEViewNetHelper.cpp.

Referenced by GNEContainerPlanFrame::addContainerPlanElement(), GNEPersonPlanFrame::addPersonPlanElement(), GNEStopFrame::addStop(), GNEAdditional::checkDrawDeleteContourSmall(), GNEWireFrame::createBaseWireObject(), and GNETLSEditorFrame::editTLS().

Here is the caller graph for this function:

◆ getAdditionals()

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

get vector with additionals

Definition at line 866 of file GNEViewNetHelper.cpp.

Referenced by GNEContainerFrame::addContainer(), and 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 842 of file GNEViewNetHelper.cpp.

Referenced by GNECrossingFrame::addCrossing(), 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 756 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 736 of file GNEViewNetHelper.cpp.

◆ getDemandElementFront()

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

get front demand element or a pointer to nullptr

Definition at line 663 of file GNEViewNetHelper.cpp.

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

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

Referenced by GNEContainerFrame::addContainer(), 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 806 of file GNEViewNetHelper.cpp.

◆ getEdgeFront()

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

◆ getEdgeRelDataElementFront()

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

get edge rel data element or a pointer to nullptr

Definition at line 816 of file GNEViewNetHelper.cpp.

◆ getEdges()

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

get vector with edges

Definition at line 854 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 673 of file GNEViewNetHelper.cpp.

◆ getGLObjects()

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

get vector with GL objects

Definition at line 836 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 766 of file GNEViewNetHelper.cpp.

◆ getJunctionFront()

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

◆ getJunctions()

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

get vector with junctions

Definition at line 848 of file GNEViewNetHelper.cpp.

Referenced by GNEContainerFrame::addContainer(), GNEPersonFrame::addPerson(), GNETLSEditorFrame::editTLS(), and GNEJunction::setAttribute().

Here is the caller graph for this function:

◆ getLaneFront()

◆ getLaneFrontNonLocked()

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

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

Definition at line 713 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 730 of file GNEViewNetHelper.cpp.

Referenced by GNEContainerFrame::addContainer(), GNEPersonFrame::addPerson(), GNEConnectorFrame::handleLaneClick(), and GNEViewNet::onCmdAttachPOI().

Here is the caller graph for this function:

◆ getMergingJunctions()

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

get merging junctions

Definition at line 878 of file GNEViewNetHelper.cpp.

Referenced by GNEJunction::setAttribute().

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 643 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 776 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 786 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 796 of file GNEViewNetHelper.cpp.

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

Here is the caller graph for this function:

◆ getTAZRelDataElementFront()

GNETAZRelData * GNEViewNetHelper::ViewObjectsSelector::getTAZRelDataElementFront ( ) const

get TAZ rel data element or a pointer to nullptr

Definition at line 826 of file GNEViewNetHelper.cpp.

◆ getTAZs()

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

get vector with TAZs

Definition at line 860 of file GNEViewNetHelper.cpp.

Referenced by GNEContainerFrame::addContainer(), and 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 746 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 1410 of file GNEViewNetHelper.cpp.

◆ updateAdditionalElements()

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

◆ updateDemandElements()

◆ updateGenericDataElements()

◆ updateMergingJunctions()

void GNEViewNetHelper::ViewObjectsSelector::updateMergingJunctions ( )

update merging junctions

Definition at line 387 of file GNEViewNetHelper.cpp.

References GUIViewObjectsHandler::getMergingJunctions(), and gViewObjectsHandler.

Referenced by GNEViewNet::doPaintGL().

Here is the caller graph for this function:

◆ updateNetworkElements()

◆ updateObjects()

void GNEViewNetHelper::ViewObjectsSelector::updateObjects ( )

update objects (using gViewObjectsHandler)

Definition at line 377 of file GNEViewNetHelper.cpp.

References GUIViewObjectsHandler::getNumberOfSelectedObjects(), GUIViewObjectsHandler::getSelectedObjects(), and gViewObjectsHandler.

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

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

◆ myMergingJunctions

std::vector<const GNEJunction*> GNEViewNetHelper::ViewObjectsSelector::myMergingJunctions
protected

merging junctions

Definition at line 572 of file GNEViewNetHelper.h.

◆ myViewNet

const GNEViewNet* GNEViewNetHelper::ViewObjectsSelector::myViewNet
protected

pointer to viewNet

Definition at line 566 of file GNEViewNetHelper.h.

◆ myViewObjects

ViewObjectsContainer GNEViewNetHelper::ViewObjectsSelector::myViewObjects
protected

objects container with selected objects

Definition at line 569 of file GNEViewNetHelper.h.


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