Eclipse SUMO - Simulation of Urban MObility
|
struct used for saving all attribute carriers of net, in different formats More...
#include <GNENetHelper.h>
Public Member Functions | |
AttributeCarriers (GNENet *net) | |
constructor | |
bool | isNetworkElementAroundShape (GNEAttributeCarrier *AC, const PositionVector &shape) const |
check if shape of given AC (network element) is around the given shape | |
void | remapJunctionAndEdgeIds () |
remap junction and edge IDs | |
~AttributeCarriers () | |
destructor | |
function for attribute carriers | |
GNEAttributeCarrier * | retrieveAttributeCarrier (const GUIGlID id, bool hardFail=true) const |
get a single attribute carrier based on a GLID | |
std::vector< GNEAttributeCarrier * > | retrieveAttributeCarriers (SumoXMLTag tag=SUMO_TAG_NOTHING) |
get the attribute carriers based on Type | |
std::vector< GNEAttributeCarrier * > | retrieveAttributeCarriers (Supermode supermode, const bool onlySelected) |
get the attribute carriers based on supermode and selected | |
std::vector< GNEAttributeCarrier * > | getSelectedAttributeCarriers (const bool ignoreCurrentSupermode) |
get all selected attribute carriers (or only relative to current supermode | |
function for junctions | |
GNEJunction * | retrieveJunction (const std::string &id, bool hardFail=true) const |
get junction by id | |
const std::map< std::string, GNEJunction * > & | getJunctions () const |
get junctions | |
std::vector< GNEJunction * > | getSelectedJunctions () const |
return selected junctions | |
GNEJunction * | registerJunction (GNEJunction *junction) |
registers a junction in containers | |
void | clearJunctions () |
clear junctions | |
void | addPrefixToJunctions (const std::string &prefix) |
add prefix to all junctions | |
void | updateJunctionID (GNEJunction *junction, const std::string &newID) |
update junction ID in container | |
int | getNumberOfSelectedJunctions () const |
get number of selected junctions | |
function for crossings | |
GNECrossing * | retrieveCrossing (const GUIGlObject *glObject, bool hardFail=true) const |
get Crossing by AC | |
const std::map< const GUIGlObject *, GNECrossing * > & | getCrossings () const |
get crossings | |
std::vector< GNECrossing * > | getSelectedCrossings () const |
return all selected crossings | |
int | getNumberOfSelectedCrossings () const |
get number of selected crossings | |
function for walkingAreas | |
GNEWalkingArea * | retrieveWalkingArea (const GUIGlObject *glObject, bool hardFail=true) const |
get WalkingArea by GlObject | |
const std::map< const GUIGlObject *, GNEWalkingArea * > & | getWalkingAreas () const |
get walkingAreas | |
std::vector< GNEWalkingArea * > | getSelectedWalkingAreas () const |
return all selected walkingAreas | |
int | getNumberOfSelectedWalkingAreas () const |
get number of selected walkingAreas | |
function for edgeTypes | |
GNEEdgeType * | retrieveEdgeType (const std::string &id, bool hardFail=true) const |
get edge type by id | |
GNEEdgeType * | registerEdgeType (GNEEdgeType *edgeType) |
registers a edge in containers | |
const std::map< std::string, GNEEdgeType * > & | getEdgeTypes () const |
map with the ID and pointer to edgeTypes of net | |
void | clearEdgeTypes () |
clear edgeTypes | |
void | updateEdgeTypeID (GNEEdgeType *edgeType, const std::string &newID) |
update edgeType ID in container | |
std::string | generateEdgeTypeID () const |
generate edgeType id | |
function for edges | |
GNEEdge * | retrieveEdge (const std::string &id, bool hardFail=true) const |
get edge by id | |
std::vector< GNEEdge * > | retrieveEdges (GNEJunction *from, GNEJunction *to) const |
get all edges by from and to GNEJunction | |
const std::map< std::string, GNEEdge * > & | getEdges () const |
map with the ID and pointer to edges of net | |
std::vector< GNEEdge * > | getSelectedEdges () const |
return all edges | |
GNEEdge * | registerEdge (GNEEdge *edge) |
registers an edge with containers | |
void | clearEdges () |
clear edges | |
void | addPrefixToEdges (const std::string &prefix) |
add prefix to all edges | |
void | updateEdgeID (GNEEdge *edge, const std::string &newID) |
update edge ID in container | |
int | getNumberOfSelectedEdges () const |
get number of selected edges | |
function for lanes | |
GNELane * | retrieveLane (const std::string &id, bool hardFail=true, bool checkVolatileChange=false) const |
get lane by id | |
GNELane * | retrieveLane (const GUIGlObject *glObject, bool hardFail=true) const |
get Lane by GlObject | |
const std::map< const GUIGlObject *, GNELane * > & | getLanes () const |
get lanes | |
std::vector< GNELane * > | getSelectedLanes () const |
get selected lanes | |
int | getNumberOfSelectedLanes () const |
get number of selected lanes | |
function for connections | |
GNEConnection * | retrieveConnection (const std::string &id, bool hardFail=true) const |
get Connection by id | |
GNEConnection * | retrieveConnection (const GUIGlObject *glObject, bool hardFail=true) const |
get Connection by GUIGlObject | |
const std::map< const GUIGlObject *, GNEConnection * > & | getConnections () const |
get connections | |
std::vector< GNEConnection * > | getSelectedConnections () const |
get selected connections | |
int | getNumberOfSelectedConnections () const |
get number of selected connections | |
function for internalLanes | |
GNEInternalLane * | retrieveInternalLane (const GUIGlObject *glObject, bool hardFail=true) const |
get InternalLane by GUIGlObject | |
function for additionals | |
GNEAdditional * | retrieveAdditional (SumoXMLTag type, const std::string &id, bool hardFail=true) const |
Returns the named additional. | |
GNEAdditional * | retrieveAdditionals (const std::vector< SumoXMLTag > types, const std::string &id, bool hardFail=true) const |
Returns the named additional. | |
GNEAdditional * | retrieveAdditional (const GUIGlObject *glObject, bool hardFail=true) const |
Returns the named additional. | |
GNEAdditional * | retrieveRerouterInterval (const std::string &rerouterID, const SUMOTime begin, const SUMOTime end) const |
Returns the rerouter interval defined by given begin and end. | |
const std::map< SumoXMLTag, std::map< const GUIGlObject *, GNEAdditional * > > & | getAdditionals () const |
get additionals | |
std::vector< GNEAdditional * > | getSelectedAdditionals () const |
get selected additionals | |
std::vector< GNEAdditional * > | getSelectedShapes () const |
get selected shapes | |
int | getNumberOfAdditionals () const |
get number of additionals | |
void | clearAdditionals () |
clear additionals | |
void | updateAdditionalID (GNEAdditional *additional, const std::string &newID) |
update additional ID in container | |
std::string | generateAdditionalID (SumoXMLTag type) const |
generate additional id | |
int | getNumberOfSelectedAdditionals () const |
get number of selected additionals (Including POIs, Polygons, TAZs and Wires) | |
int | getNumberOfSelectedPureAdditionals () const |
get number of selected pure additionals (Except POIs, Polygons, TAZs and Wires) | |
int | getNumberOfSelectedPolygons () const |
get number of selected polygons | |
int | getNumberOfSelectedJpsWalkableAreas () const |
get number of selected walkable areas | |
int | getNumberOfSelectedJpsObstacles () const |
get number of selected obstacles | |
int | getNumberOfSelectedPOIs () const |
get number of selected POIs | |
int | getNumberOfSelectedTAZs () const |
get number of selected TAZs | |
int | getNumberOfSelectedTAZSources () const |
get number of selected TAZSources | |
int | getNumberOfSelectedTAZSinks () const |
get number of selected TAZSinks | |
int | getNumberOfSelectedWires () const |
get number of selected Wires | |
function for demand elements | |
GNEDemandElement * | retrieveDemandElement (SumoXMLTag type, const std::string &id, bool hardFail=true) const |
Returns the named demand element. | |
GNEDemandElement * | retrieveDemandElements (const std::vector< SumoXMLTag > types, const std::string &id, bool hardFail=true) const |
Returns the named demand element. | |
GNEDemandElement * | retrieveDemandElement (const GUIGlObject *glObject, bool hardFail=true) const |
Returns the named demand. | |
std::vector< GNEDemandElement * > | getSelectedDemandElements () const |
get selected demand elements | |
const std::map< SumoXMLTag, std::map< const GUIGlObject *, GNEDemandElement * > > & | getDemandElements () const |
get demand elements | |
int | getNumberOfDemandElements () const |
Return the number of demand elements. | |
std::string | generateDemandElementID (SumoXMLTag tag) const |
generate demand element id | |
GNEDemandElement * | getDefaultType () const |
get default type | |
void | clearDemandElements () |
clear demand elements | |
void | updateDemandElementID (GNEDemandElement *demandElement, const std::string &newID) |
update demand element ID in container | |
void | addDefaultVTypes () |
add default VTypes | |
int | getStopIndex () |
get (and update) stop index | |
int | getNumberOfSelectedDemandElements () const |
get number of selected demand elements | |
int | getNumberOfSelectedRoutes () const |
get number of selected routes | |
int | getNumberOfSelectedVehicles () const |
get number of selected vehicles | |
int | getNumberOfSelectedPersons () const |
get number of selected persons | |
int | getNumberOfSelectedPersonTrips () const |
get number of selected person trips | |
int | getNumberOfSelectedWalks () const |
get number of selected walks | |
int | getNumberOfSelectedRides () const |
get number of selected rides | |
int | getNumberOfSelectedContainers () const |
get number of selected containers | |
int | getNumberOfSelectedTransport () const |
get number of selected transports | |
int | getNumberOfSelectedTranships () const |
get number of selected tranships | |
int | getNumberOfSelectedStops () const |
get number of selected stops | |
function for data sets | |
GNEDataSet * | retrieveDataSet (const std::string &id, bool hardFail=true) const |
Returns the named data set. | |
const std::map< const std::string, GNEDataSet * > & | getDataSets () const |
get demand elements | |
std::string | generateDataSetID (const std::string &prefix) const |
generate data set id | |
function for data intervals | |
GNEDataInterval * | retrieveDataInterval (const GNEAttributeCarrier *AC, bool hardFail=true) const |
Returns the data interval. | |
const std::map< const GNEAttributeCarrier *, GNEDataInterval * > & | getDataIntervals () const |
get all data intervals of network | |
function for generic datas | |
GNEGenericData * | retrieveGenericData (const GUIGlObject *glObject, bool hardFail=true) const |
Returns the generic data. | |
std::vector< GNEGenericData * > | getSelectedGenericDatas () const |
get selected generic datas | |
const std::map< SumoXMLTag, std::map< const GUIGlObject *, GNEGenericData * > > & | getGenericDatas () const |
get all generic datas | |
std::vector< GNEGenericData * > | retrieveGenericDatas (const SumoXMLTag genericDataTag, const double begin, const double end) |
retrieve generic datas within the given interval | |
int | getNumberOfGenericDatas () const |
Return the number of generic datas. | |
int | getNumberOfSelectedEdgeDatas () const |
get number of selected edge datas | |
int | getNumberOfSelectedEdgeRelDatas () const |
get number of selected edge rel datas | |
int | getNumberOfSelectedEdgeTAZRel () const |
get number of selected edge TAZ Rels | |
std::set< std::string > | retrieveGenericDataParameters (const std::string &genericDataTag, const double begin, const double end) const |
return a set of parameters for the given data Interval | |
std::set< std::string > | retrieveGenericDataParameters (const std::string &dataSetID, const std::string &genericDataTag, const std::string &beginStr, const std::string &endStr) const |
return a set of parameters for the given dataSet, generic data Type, begin and end | |
function for meanDatas | |
GNEMeanData * | retrieveMeanData (SumoXMLTag type, const std::string &id, bool hardFail=true) const |
Returns the named meanData. | |
const std::map< SumoXMLTag, std::map< const std::string, GNEMeanData * > > & | getMeanDatas () const |
get meanDatas | |
int | getNumberOfMeanDatas () const |
get number of meanDatas | |
void | clearMeanDatas () |
clear meanDatas | |
std::string | generateMeanDataID (SumoXMLTag type) const |
generate meanData id | |
Protected Member Functions | |
void | updateDemandElementFrames (const GNETagProperties &tagProperty) |
update demand element frames (called after insert/delete demand element) | |
Junctions protected functions | |
void | insertJunction (GNEJunction *junction) |
insert junction in container | |
void | deleteSingleJunction (GNEJunction *junction) |
delete junction from container | |
edge types protected functions | |
void | insertEdgeType (GNEEdgeType *edgeType) |
insert edge type in container | |
void | deleteEdgeType (GNEEdgeType *edgeType) |
delete edge type from container | |
edges protected functions | |
insert edge in container | |
void | insertEdge (GNEEdge *edge) |
void | deleteSingleEdge (GNEEdge *edge) |
delete edge from container | |
lane protected functions | |
void | insertLane (GNELane *lane) |
insert lane in container | |
void | deleteLane (GNELane *lane) |
delete lane from container | |
crossing protected functions | |
void | insertCrossing (GNECrossing *crossing) |
insert crossing in container | |
void | deleteCrossing (GNECrossing *crossing) |
delete crossing from container | |
walking areas protected functions | |
void | insertWalkingArea (GNEWalkingArea *walkingArea) |
insert walkingArea in container | |
void | deleteWalkingArea (GNEWalkingArea *walkingArea) |
delete walkingArea from container | |
connection protected functions | |
void | insertConnection (GNEConnection *connection) |
insert connection in container | |
void | deleteConnection (GNEConnection *connection) |
delete connection from container | |
internalLane protected functions | |
void | insertInternalLane (GNEInternalLane *internalLane) |
insert internalLane in container | |
void | deleteInternalLane (GNEInternalLane *internalLane) |
delete internalLane from container | |
additionals protected functions | |
void | insertAdditional (GNEAdditional *additional) |
Insert a additional element in container. | |
void | deleteAdditional (GNEAdditional *additional) |
delete additional element of container | |
demand elements protected functions | |
void | insertDemandElement (GNEDemandElement *demandElement) |
Insert a demand element in container. | |
void | deleteDemandElement (GNEDemandElement *demandElement, const bool updateFrames) |
delete demand element of container | |
datas protected functions | |
void | insertDataSet (GNEDataSet *dataSet) |
Insert a data set in container. | |
void | deleteDataSet (GNEDataSet *dataSet) |
delete data set of container | |
data intervals protected functions | |
void | insertDataInterval (const GNEAttributeCarrier *AC, GNEDataInterval *dataInterval) |
insert data interval in container | |
void | deleteDataInterval (GNEDataInterval *dataInterval) |
delete data interval of container | |
generic datas protected functions | |
void | insertGenericData (GNEGenericData *genericData) |
insert generic data in container | |
void | deleteGenericData (GNEGenericData *genericData) |
delete generic data of container | |
Insertion and erasing of GNEMeanDatas items | |
void | insertMeanData (GNEMeanData *meanData) |
Insert a meanData element in container. | |
void | deleteMeanData (GNEMeanData *meanData) |
delete meanData element of container | |
Private Member Functions | |
AttributeCarriers (const AttributeCarriers &)=delete | |
Invalidated copy constructor. | |
AttributeCarriers & | operator= (const AttributeCarriers &)=delete |
Invalidated assignment operator. | |
Private Attributes | |
std::map< SumoXMLTag, std::map< const std::string, GNEAdditional * > > | myAdditionalIDs |
map with the tag and pointer to additional elements of net, sorted by IDs | |
std::map< SumoXMLTag, std::map< const GUIGlObject *, GNEAdditional * > > | myAdditionals |
map with the tag and pointer to additional elements of net | |
std::map< const GUIGlObject *, GNEConnection * > | myConnections |
map with connetions | |
std::map< const GUIGlObject *, GNECrossing * > | myCrossings |
set with crossings | |
std::map< const GNEAttributeCarrier *, GNEDataInterval * > | myDataIntervals |
map with all data intervals of network | |
std::map< const std::string, GNEDataSet * > | myDataSets |
map with the ID and pointer to all datasets of net | |
std::map< SumoXMLTag, std::map< const std::string, GNEDemandElement * > > | myDemandElementIDs |
map with the tag and pointer to demand elements of net, sorted by IDs | |
std::map< SumoXMLTag, std::map< const GUIGlObject *, GNEDemandElement * > > | myDemandElements |
map with the tag and pointer to additional elements of net | |
std::map< std::string, GNEEdge * > | myEdges |
map with the ID and pointer to edges of net | |
std::map< std::string, GNEEdgeType * > | myEdgeTypes |
map with the ID and pointer to edgeTypes of net | |
std::map< SumoXMLTag, std::map< const GUIGlObject *, GNEGenericData * > > | myGenericDatas |
map with the tag and pointer to all generic datas | |
std::map< const GUIGlObject *, GNEInternalLane * > | myInternalLanes |
map with internal lanes | |
std::map< std::string, GNEJunction * > | myJunctions |
map with the ID and pointer to junctions of net | |
std::map< const GUIGlObject *, GNELane * > | myLanes |
map with lanes | |
std::map< SumoXMLTag, std::map< const std::string, GNEMeanData * > > | myMeanDatas |
map with the tag and pointer to meanData elements of net | |
GNENet * | myNet |
pointer to net | |
int | myStopIndex |
stop index | |
std::map< const GUIGlObject *, GNEWalkingArea * > | myWalkingAreas |
set with walkingAreas | |
struct used for saving all attribute carriers of net, in different formats
Definition at line 75 of file GNENetHelper.h.
GNENetHelper::AttributeCarriers::AttributeCarriers | ( | GNENet * | net | ) |
constructor
Definition at line 56 of file GNENetHelper.cpp.
References GNETagProperties::ADDITIONALELEMENT, GNETagProperties::DEMANDELEMENT, GNETagProperties::GENERICDATA, GNEAttributeCarrier::getTagPropertiesByType(), GNETagProperties::MEANDATA, myAdditionalIDs, myAdditionals, myDemandElementIDs, myDemandElements, myGenericDatas, myMeanDatas, GNETagProperties::SHAPE, SUMO_ATTR_ID, GNETagProperties::TAZELEMENT, GNETagProperties::VEHICLESTOP, and GNETagProperties::WIRE.
GNENetHelper::AttributeCarriers::~AttributeCarriers | ( | ) |
destructor
Definition at line 93 of file GNENetHelper.cpp.
References DEFAULT_VTYPES, and WRITE_DEBUG.
|
privatedelete |
Invalidated copy constructor.
void GNENetHelper::AttributeCarriers::addDefaultVTypes | ( | ) |
add default VTypes
Definition at line 1543 of file GNENetHelper.cpp.
References DEFAULT_BIKETYPE_ID, DEFAULT_CONTAINERTYPE_ID, DEFAULT_PEDTYPE_ID, DEFAULT_RAILTYPE_ID, DEFAULT_TAXITYPE_ID, DEFAULT_VTYPE_ID, GNEDemandElement::getGUIGlObject(), GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEReferenceCounter::incRef(), SUMOVTypeParameter::parametersSet, SVC_BICYCLE, SVC_IGNORING, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_RAIL, SVC_TAXI, and VTYPEPARS_VEHICLECLASS_SET.
Referenced by GNENet::computeAndUpdate(), and GNENet::setViewNet().
void GNENetHelper::AttributeCarriers::addPrefixToEdges | ( | const std::string & | prefix | ) |
add prefix to all edges
Definition at line 768 of file GNENetHelper.cpp.
References GNENetworkElement::setNetworkElementID().
Referenced by GNELoadThread::run().
void GNENetHelper::AttributeCarriers::addPrefixToJunctions | ( | const std::string & | prefix | ) |
add prefix to all junctions
Definition at line 478 of file GNENetHelper.cpp.
References GNENetworkElement::setNetworkElementID().
Referenced by GNELoadThread::run().
void GNENetHelper::AttributeCarriers::clearAdditionals | ( | ) |
clear additionals
Definition at line 1095 of file GNENetHelper.cpp.
Referenced by GNENet::computeAndUpdate().
void GNENetHelper::AttributeCarriers::clearDemandElements | ( | ) |
clear demand elements
Definition at line 1509 of file GNENetHelper.cpp.
Referenced by GNENet::computeAndUpdate().
void GNENetHelper::AttributeCarriers::clearEdges | ( | ) |
clear edges
Definition at line 762 of file GNENetHelper.cpp.
Referenced by GNENet::computeAndUpdate().
void GNENetHelper::AttributeCarriers::clearEdgeTypes | ( | ) |
clear edgeTypes
Definition at line 649 of file GNENetHelper.cpp.
void GNENetHelper::AttributeCarriers::clearJunctions | ( | ) |
clear junctions
Definition at line 472 of file GNENetHelper.cpp.
Referenced by GNENet::computeAndUpdate().
void GNENetHelper::AttributeCarriers::clearMeanDatas | ( | ) |
clear meanDatas
Definition at line 2230 of file GNENetHelper.cpp.
|
protected |
delete additional element of container
Definition at line 2493 of file GNENetHelper.cpp.
References GNEAdditional::getGUIGlObject(), GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETagProperties::hasAttribute(), GNETagProperties::isPlacedInRTree(), and SUMO_ATTR_ID.
Referenced by GNEChange_Additional::redo(), GNEChange_Additional::undo(), and GNEChange_Additional::~GNEChange_Additional().
|
protected |
delete connection from container
Definition at line 2437 of file GNENetHelper.cpp.
References GNENetworkElement::getGUIGlObject(), GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEEdge::clearGNEConnections(), GNEEdge::remakeGNEConnections(), GNEEdge::removeConnection(), and GNEEdge::~GNEEdge().
|
protected |
delete crossing from container
Definition at line 2389 of file GNENetHelper.cpp.
References GNENetworkElement::getGUIGlObject(), GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEJunction::rebuildGNECrossings(), and GNEJunction::~GNEJunction().
|
protected |
delete data interval of container
Definition at line 1950 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEDataSet::removeDataIntervalChild().
|
protected |
delete data set of container
Definition at line 2606 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEChange_DataSet::redo(), GNEChange_DataSet::undo(), and GNEChange_DataSet::~GNEChange_DataSet().
|
protected |
delete demand element of container
Definition at line 2549 of file GNENetHelper.cpp.
References GNEDemandElement::getGUIGlObject(), GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETagProperties::hasAttribute(), and SUMO_ATTR_ID.
Referenced by GNEChange_DemandElement::redo(), GNEChange_DemandElement::undo(), and GNEChange_DemandElement::~GNEChange_DemandElement().
|
protected |
delete edge type from container
Definition at line 2294 of file GNENetHelper.cpp.
References GUIGlObject::getMicrosimID().
Referenced by GNEChange_EdgeType::redo(), GNEChange_EdgeType::undo(), and GNEChange_EdgeType::~GNEChange_EdgeType().
|
protected |
delete generic data of container
Definition at line 2082 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEDataInterval::removeGenericDataChild().
|
protected |
delete internalLane from container
Definition at line 2458 of file GNENetHelper.cpp.
References GNENetworkElement::getGUIGlObject(), GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNETLSEditorFrame::buildInternalLanes().
|
protected |
delete lane from container
Definition at line 2365 of file GNENetHelper.cpp.
References GNENetworkElement::getGUIGlObject(), GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEEdge::removeLane(), and GNEEdge::~GNEEdge().
|
protected |
delete meanData element of container
Definition at line 2636 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), and GNETagProperties::isPlacedInRTree().
Referenced by GNEChange_MeanData::redo(), GNEChange_MeanData::undo(), and GNEChange_MeanData::~GNEChange_MeanData().
|
protected |
delete edge from container
Definition at line 2324 of file GNENetHelper.cpp.
References GNEReferenceCounter::decRef(), GNEInspectorFrame::TemplateEditor::getEdgeTemplate(), GNEEdge::getFromJunction(), GNEAttributeCarrier::getID(), GNEEdge::getLanes(), GUIGlObject::getMicrosimID(), GNEEdge::getNBEdge(), GNEEdge::getToJunction(), GNEJunction::removeIncomingGNEEdge(), GNEJunction::removeOutgoingGNEEdge(), GNEInspectorFrame::TemplateEditor::setEdgeTemplate(), GNEEdge::setResponsible(), and GNEJunction::updateCenteringBoundary().
Referenced by GNEChange_Edge::redo(), and GNEChange_Edge::undo().
|
protected |
delete junction from container
Definition at line 2265 of file GNENetHelper.cpp.
References GNEReferenceCounter::decRef(), GUIGlObject::getMicrosimID(), GNEJunction::getNBNode(), and GNEJunction::setResponsible().
Referenced by GNEChange_Junction::redo(), and GNEChange_Junction::undo().
|
protected |
delete walkingArea from container
Definition at line 2413 of file GNENetHelper.cpp.
References GNENetworkElement::getGUIGlObject(), GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEJunction::clearWalkingAreas(), and GNEJunction::~GNEJunction().
std::string GNENetHelper::AttributeCarriers::generateAdditionalID | ( | SumoXMLTag | type | ) | const |
generate additional id
Definition at line 1129 of file GNENetHelper.cpp.
References NamespaceIDs::busStops, NamespaceIDs::calibrators, OptionsCont::getOptions(), GNE_TAG_CALIBRATOR_LANE, GNE_TAG_JPS_OBSTACLE, GNE_TAG_JPS_WALKABLEAREA, GNE_TAG_MULTI_LANE_AREA_DETECTOR, GNE_TAG_POIGEO, GNE_TAG_POILANE, NamespaceIDs::laneAreaDetectors, NamespaceIDs::POIs, NamespaceIDs::polygons, SUMO_TAG_BUS_STOP, SUMO_TAG_CALIBRATOR, SUMO_TAG_CHARGING_STATION, SUMO_TAG_CONTAINER_STOP, SUMO_TAG_ENTRY_EXIT_DETECTOR, SUMO_TAG_INDUCTION_LOOP, SUMO_TAG_INSTANT_INDUCTION_LOOP, SUMO_TAG_LANE_AREA_DETECTOR, SUMO_TAG_OVERHEAD_WIRE_SECTION, SUMO_TAG_PARKING_AREA, SUMO_TAG_POI, SUMO_TAG_POLY, SUMO_TAG_REROUTER, SUMO_TAG_ROUTEPROBE, SUMO_TAG_TAZ, SUMO_TAG_TRACTION_SUBSTATION, SUMO_TAG_TRAIN_STOP, SUMO_TAG_VSS, and toString().
Referenced by GNEAdditionalFrame::buildAdditionalOverEdge(), GNEAdditionalFrame::buildAdditionalOverLane(), GNEAdditionalFrame::buildAdditionalOverView(), GNEWireFrame::buildWireOverView(), GNEAdditionalFrame::createPath(), GNEWireFrame::createPath(), GNEAttributesCreatorRow::generateID(), GNEShapeFrame::processClickPOI(), GNEShapeFrame::processClickPOIGeo(), GNEShapeFrame::processClickPOILanes(), GNEShapeFrame::shapeDrawed(), and GNETAZFrame::shapeDrawed().
std::string GNENetHelper::AttributeCarriers::generateDataSetID | ( | const std::string & | prefix | ) | const |
generate data set id
Definition at line 1909 of file GNENetHelper.cpp.
References SUMO_TAG_DATASET, and toString().
std::string GNENetHelper::AttributeCarriers::generateDemandElementID | ( | SumoXMLTag | tag | ) | const |
generate demand element id
Definition at line 1431 of file GNENetHelper.cpp.
References NamespaceIDs::containers, OptionsCont::getOptions(), GNEAttributeCarrier::getTagProperty(), GNE_TAG_TRIP_JUNCTIONS, GNE_TAG_TRIP_TAZS, NamespaceIDs::persons, NamespaceIDs::routes, SUMO_TAG_ROUTE, SUMO_TAG_ROUTE_DISTRIBUTION, SUMO_TAG_TRIP, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE_DISTRIBUTION, toString(), NamespaceIDs::types, and NamespaceIDs::vehicles.
Referenced by GNEVehicleFrame::addVehicle(), GNEContainerFrame::buildContainer(), GNEPersonFrame::buildPerson(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNECalibratorDialog::onCmdAddVehicleType(), GNERouteHandler::transformToRouteFlow(), and GNERouteHandler::transformToVehicle().
std::string GNENetHelper::AttributeCarriers::generateEdgeTypeID | ( | ) | const |
std::string GNENetHelper::AttributeCarriers::generateMeanDataID | ( | SumoXMLTag | type | ) | const |
generate meanData id
Definition at line 2239 of file GNENetHelper.cpp.
References OptionsCont::getOptions(), SUMO_TAG_MEANDATA_EDGE, SUMO_TAG_MEANDATA_LANE, and toString().
const std::map< SumoXMLTag, std::map< const GUIGlObject *, GNEAdditional * > > & GNENetHelper::AttributeCarriers::getAdditionals | ( | ) | const |
get additionals
Definition at line 1049 of file GNENetHelper.cpp.
Referenced by GNENet::clearAdditionalElements(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), GNEViewParent::onCmdLocate(), GNEMatchGenericDataAttribute::onCmdSetFromTAZ(), GNEMatchGenericDataAttribute::onCmdSetToTAZ(), GNEApplicationWindow::onUpdSaveJuPedSimElementsAs(), GNESelectorParent::refreshSelectorParentModule(), GNENet::saveAdditionals(), GNEDeleteFrame::selectedACsToDelete(), GNEMatchGenericDataAttribute::updateTAZComboBox(), GNENet::writeAdditionalByType(), GNENet::writeCalibratorComment(), GNENet::writeDetectorComment(), GNENet::writeJuPedSimComment(), GNENet::writeOtherAdditionalsComment(), GNENet::writeRouteProbeComment(), GNENet::writeShapesComment(), GNENet::writeStoppingPlaceComment(), GNENet::writeTAZComment(), and GNENet::writeWireComment().
const std::map< const GUIGlObject *, GNEConnection * > & GNENetHelper::AttributeCarriers::getConnections | ( | ) | const |
get connections
Definition at line 933 of file GNENetHelper.cpp.
Referenced by GNEEdge::clearGNEConnections(), GNEEdge::remakeGNEConnections(), GNEEdge::removeConnection(), and GNEEdge::~GNEEdge().
const std::map< const GUIGlObject *, GNECrossing * > & GNENetHelper::AttributeCarriers::getCrossings | ( | ) | const |
get crossings
Definition at line 544 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::onCmdSaveNetwork(), GNEChange_Crossing::redo(), GNEChange_Crossing::undo(), and GNEJunction::~GNEJunction().
const std::map< const GNEAttributeCarrier *, GNEDataInterval * > & GNENetHelper::AttributeCarriers::getDataIntervals | ( | ) | const |
get all data intervals of network
Definition at line 1932 of file GNENetHelper.cpp.
Referenced by GNENet::enableUpdateData(), GNENet::getDataSetIntervalMaximumEnd(), and GNENet::getDataSetIntervalMinimumBegin().
const std::map< const std::string, GNEDataSet * > & GNENetHelper::AttributeCarriers::getDataSets | ( | ) | const |
get demand elements
Definition at line 1903 of file GNENetHelper.cpp.
Referenced by GNENet::clearDataElements(), GNEMatchGenericDataAttribute::enableMatchGenericDataAttribute(), GNEApplicationWindow::onUpdSaveDataElementsAs(), and GNENet::saveDataElementsConfirmed().
GNEDemandElement * GNENetHelper::AttributeCarriers::getDefaultType | ( | ) | const |
get default type
Definition at line 1499 of file GNENetHelper.cpp.
References DEFAULT_VTYPE_ID, SUMO_TAG_VTYPE, and TL.
Referenced by GNECalibratorDialog::onCmdAddFlow().
const std::map< SumoXMLTag, std::map< const GUIGlObject *, GNEDemandElement * > > & GNENetHelper::AttributeCarriers::getDemandElements | ( | ) | const |
get demand elements
Definition at line 1406 of file GNENetHelper.cpp.
Referenced by GNENet::adjustPersonPlans(), GNENet::cleanInvalidDemandElements(), GNENet::cleanUnusedRoutes(), GNENet::clearDemandElements(), GNENet::computeDemandElements(), GNEDemandElement::getDistributionParents(), GNEDemandElementDistribution::getPossibleDistributionKeys(), GNEDemandElement::getTypeParent(), GNENet::joinRoutes(), GNECalibratorDialog::onCmdAddFlow(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEViewParent::onCmdLocate(), GNEApplicationWindow::onCmdSaveSumoConfig(), GNEDemandElementSelector::onCmdSelectDemandElement(), GNEViewNet::onCmdToggleDrawSpreadVehicles(), GNENet::saveDemandElements(), GNENet::saveDemandElementsConfirmed(), GNEDeleteFrame::selectedACsToDelete(), GNEContainerPlanFrame::show(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateRouteTable(), GNECalibratorDialog::updateVehicleTypeTable(), GNENet::writeDemandByType(), GNENet::writeRouteComment(), GNENet::writeRouteDistributions(), GNENet::writeRoutes(), GNENet::writeVTypeComment(), GNENet::writeVTypeDistributions(), and GNENet::writeVTypes().
const std::map< std::string, GNEEdge * > & GNENetHelper::AttributeCarriers::getEdges | ( | ) | const |
map with the ID and pointer to edges of net
Definition at line 717 of file GNENetHelper.cpp.
Referenced by GNEPathManager::PathCalculator::calculateReachability(), GNEPathCreator::clearEdgeColors(), GNEConsecutiveSelector::clearPath(), GNENet::computeAndUpdate(), GNENet::computeNetwork(), GNENet::createEdge(), GNENet::deleteJunction(), GNEGenericDataFrame::hide(), GNEContainerFrame::hide(), GNEContainerPlanFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNENet::initGNEConnections(), GNENet::initJunctionsAndEdges(), GNENet::joinSelectedJunctions(), GNENet::mergeJunctions(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), GNEViewNet::onCmdEgeApplyTemplate(), GNEViewNet::onCmdLaneReachability(), GNEViewParent::onCmdLocate(), GNEApplicationWindow::onCmdSaveNetwork(), GNENetworkSelector::onCmdUseSelectedElements(), GNEApplicationWindow::onUpdNeedsNetworkElement(), GNENet::replaceJunctionByGeometry(), GNEPathCreator::setPossibleCandidates(), GNEPathCreator::setSpecialCandidates(), GNENet::setViewNet(), GNEPathCreator::updateEdgeColors(), and GNEConsecutiveSelector::updateLaneColors().
const std::map< std::string, GNEEdgeType * > & GNENetHelper::AttributeCarriers::getEdgeTypes | ( | ) | const |
map with the ID and pointer to edgeTypes of net
Definition at line 644 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::onUpdSaveEdgeTypes(), GNEApplicationWindow::onUpdSaveEdgeTypesAs(), GNENet::saveEdgeTypes(), and GNENet::saveNetwork().
const std::map< SumoXMLTag, std::map< const GUIGlObject *, GNEGenericData * > > & GNENetHelper::AttributeCarriers::getGenericDatas | ( | ) | const |
get all generic datas
Definition at line 1998 of file GNENetHelper.cpp.
Referenced by GNEViewNet::buildColorRainbow(), GNENet::computeDataElements(), GNEViewNet::getEdgeDataAttrs(), GNEViewNet::getRelDataAttrs(), and GNEDeleteFrame::selectedACsToDelete().
const std::map< std::string, GNEJunction * > & GNENetHelper::AttributeCarriers::getJunctions | ( | ) | const |
get junctions
Definition at line 435 of file GNENetHelper.cpp.
Referenced by GNEViewNet::buildColorRainbow(), GNENet::checkJunctionPosition(), GNENet::cleanInvalidCrossings(), GNEPathCreator::clearJunctionColors(), GNENet::computeAndUpdate(), GNENet::createJunction(), GNEVehicleFrame::hide(), GNENet::joinSelectedJunctions(), GNEViewParent::onCmdLocate(), GNEApplicationWindow::onUpdSaveTLSPrograms(), GNENet::removeSolitaryJunctions(), GNEDeleteFrame::selectedACsToDelete(), GNEPathCreator::updateJunctionColors(), and GNEApplicationWindow::updateRecomputingLabel().
const std::map< const GUIGlObject *, GNELane * > & GNENetHelper::AttributeCarriers::getLanes | ( | ) | const |
get lanes
Definition at line 870 of file GNENetHelper.cpp.
Referenced by GNEViewNet::buildColorRainbow(), GNENetworkSelector::onCmdUseSelectedElements(), and GNEEdge::~GNEEdge().
const std::map< SumoXMLTag, std::map< const std::string, GNEMeanData * > > & GNENetHelper::AttributeCarriers::getMeanDatas | ( | ) | const |
get meanDatas
Definition at line 2214 of file GNENetHelper.cpp.
Referenced by GNENet::clearMeanDataElements(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNENet::writeMeanDataEdgeComment(), GNENet::writeMeanDataLaneComment(), and GNENet::writeMeanDatas().
int GNENetHelper::AttributeCarriers::getNumberOfAdditionals | ( | ) | const |
get number of additionals
Definition at line 1085 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::onCmdOpenSUMOGUI(), and GNEApplicationWindow::onUpdSaveAdditionalsAs().
int GNENetHelper::AttributeCarriers::getNumberOfDemandElements | ( | ) | const |
Return the number of demand elements.
Definition at line 1412 of file GNENetHelper.cpp.
References GNE_ATTR_DEFAULT_VTYPE, SUMO_TAG_VTYPE, and GNEAttributeCarrier::True.
Referenced by GNEApplicationWindow::onCmdOpenSUMOGUI(), and GNEApplicationWindow::onUpdSaveDemandElementsAs().
int GNENetHelper::AttributeCarriers::getNumberOfGenericDatas | ( | ) | const |
Return the number of generic datas.
Definition at line 2020 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfMeanDatas | ( | ) | const |
get number of meanDatas
Definition at line 2220 of file GNENetHelper.cpp.
Referenced by GNEApplicationWindow::onCmdSaveMeanDatas(), and GNEApplicationWindow::onUpdSaveMeanDatasAs().
int GNENetHelper::AttributeCarriers::getNumberOfSelectedAdditionals | ( | ) | const |
get number of selected additionals (Including POIs, Polygons, TAZs and Wires)
Definition at line 1208 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedConnections | ( | ) | const |
get number of selected connections
Definition at line 952 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedContainers | ( | ) | const |
get number of selected containers
Definition at line 1754 of file GNENetHelper.cpp.
References SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedCrossings | ( | ) | const |
get number of selected crossings
Definition at line 563 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedDemandElements | ( | ) | const |
get number of selected demand elements
Definition at line 1594 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdgeDatas | ( | ) | const |
get number of selected edge datas
Definition at line 2031 of file GNENetHelper.cpp.
References GNE_TAG_EDGEREL_SINGLE.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdgeRelDatas | ( | ) | const |
get number of selected edge rel datas
Definition at line 2044 of file GNENetHelper.cpp.
References SUMO_TAG_EDGEREL.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdges | ( | ) | const |
get number of selected edges
Definition at line 809 of file GNENetHelper.cpp.
Referenced by GNELane::buildEdgeOperations(), GNELane::buildTemplateOperations(), and GNEEdge::getMoveOperation().
int GNENetHelper::AttributeCarriers::getNumberOfSelectedEdgeTAZRel | ( | ) | const |
get number of selected edge TAZ Rels
Definition at line 2057 of file GNENetHelper.cpp.
References SUMO_TAG_TAZREL.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedJpsObstacles | ( | ) | const |
get number of selected obstacles
Definition at line 1260 of file GNENetHelper.cpp.
References GNE_TAG_JPS_OBSTACLE.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedJpsWalkableAreas | ( | ) | const |
get number of selected walkable areas
Definition at line 1248 of file GNENetHelper.cpp.
References GNE_TAG_JPS_WALKABLEAREA.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedJunctions | ( | ) | const |
get number of selected junctions
Definition at line 517 of file GNENetHelper.cpp.
Referenced by GNEJunction::getPopUpMenu().
int GNENetHelper::AttributeCarriers::getNumberOfSelectedLanes | ( | ) | const |
get number of selected lanes
Definition at line 889 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedPersons | ( | ) | const |
get number of selected persons
Definition at line 1670 of file GNENetHelper.cpp.
References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedPersonTrips | ( | ) | const |
get number of selected person trips
Definition at line 1688 of file GNENetHelper.cpp.
References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedPOIs | ( | ) | const |
get number of selected POIs
Definition at line 1272 of file GNENetHelper.cpp.
References GNE_TAG_POIGEO, GNE_TAG_POILANE, POIGEO, and SUMO_TAG_POI.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedPolygons | ( | ) | const |
get number of selected polygons
Definition at line 1236 of file GNENetHelper.cpp.
References SUMO_TAG_POLY.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedPureAdditionals | ( | ) | const |
get number of selected pure additionals (Except POIs, Polygons, TAZs and Wires)
Definition at line 1222 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedRides | ( | ) | const |
get number of selected rides
Definition at line 1732 of file GNENetHelper.cpp.
References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedRoutes | ( | ) | const |
get number of selected routes
Definition at line 1608 of file GNENetHelper.cpp.
References GNE_TAG_FLOW_WITHROUTE, GNE_TAG_VEHICLE_WITHROUTE, and SUMO_TAG_ROUTE.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedStops | ( | ) | const |
get number of selected stops
Definition at line 1816 of file GNENetHelper.cpp.
References GNE_TAG_FLOW_WITHROUTE, GNE_TAG_VEHICLE_WITHROUTE, SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_ROUTE, and SUMO_TAG_TRIP.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedTAZs | ( | ) | const |
get number of selected TAZs
Definition at line 1294 of file GNENetHelper.cpp.
References SUMO_TAG_TAZ, and TAZ.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedTAZSinks | ( | ) | const |
get number of selected TAZSinks
Definition at line 1318 of file GNENetHelper.cpp.
References SUMO_TAG_TAZSINK.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedTAZSources | ( | ) | const |
get number of selected TAZSources
Definition at line 1306 of file GNENetHelper.cpp.
References SUMO_TAG_TAZSOURCE.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedTranships | ( | ) | const |
get number of selected tranships
Definition at line 1794 of file GNENetHelper.cpp.
References SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedTransport | ( | ) | const |
get number of selected transports
Definition at line 1772 of file GNENetHelper.cpp.
References SUMO_TAG_CONTAINER, and SUMO_TAG_CONTAINERFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedVehicles | ( | ) | const |
get number of selected vehicles
Definition at line 1632 of file GNENetHelper.cpp.
References GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_VEHICLE_WITHROUTE, SUMO_TAG_FLOW, SUMO_TAG_TRIP, and SUMO_TAG_VEHICLE.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedWalkingAreas | ( | ) | const |
get number of selected walkingAreas
Definition at line 609 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedWalks | ( | ) | const |
get number of selected walks
Definition at line 1710 of file GNENetHelper.cpp.
References SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
int GNENetHelper::AttributeCarriers::getNumberOfSelectedWires | ( | ) | const |
get number of selected Wires
Definition at line 1330 of file GNENetHelper.cpp.
std::vector< GNEAdditional * > GNENetHelper::AttributeCarriers::getSelectedAdditionals | ( | ) | const |
get selected additionals
Definition at line 1055 of file GNENetHelper.cpp.
std::vector< GNEAttributeCarrier * > GNENetHelper::AttributeCarriers::getSelectedAttributeCarriers | ( | const bool | ignoreCurrentSupermode | ) |
get all selected attribute carriers (or only relative to current supermode
Definition at line 388 of file GNENetHelper.cpp.
References GUISelectedStorage::getSelected(), GNEAttributeCarrier::getTagProperty(), gSelected, GNETagProperties::isAdditionalElement(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNETagProperties::isDataElement(), GNETagProperties::isDemandElement(), and GNETagProperties::isNetworkElement().
Referenced by GNESelectorFrame::handleIDs(), GNEViewNet::hotkeyDel(), and GNEInspectorFrame::inspectSingleElement().
std::vector< GNEConnection * > GNENetHelper::AttributeCarriers::getSelectedConnections | ( | ) | const |
get selected connections
Definition at line 939 of file GNENetHelper.cpp.
std::vector< GNECrossing * > GNENetHelper::AttributeCarriers::getSelectedCrossings | ( | ) | const |
return all selected crossings
Definition at line 550 of file GNENetHelper.cpp.
std::vector< GNEDemandElement * > GNENetHelper::AttributeCarriers::getSelectedDemandElements | ( | ) | const |
get selected demand elements
Definition at line 1391 of file GNENetHelper.cpp.
Referenced by GNEVehicle::getPopUpMenu().
std::vector< GNEEdge * > GNENetHelper::AttributeCarriers::getSelectedEdges | ( | ) | const |
return all edges
[in] | onlySelected | Whether to return only selected edges |
Definition at line 723 of file GNENetHelper.cpp.
Referenced by GNEViewNet::addRestrictedLane(), GNETLSEditorFrame::handleMultiChange(), GNEViewNet::onCmdAddReversedEdge(), GNEViewNet::onCmdAddReversedEdgeDisconnected(), GNEViewNet::onCmdResetEdgeEndpoint(), GNEViewNet::onCmdResetEndPoints(), GNEViewNet::onCmdResetLength(), GNEViewNet::onCmdReverseEdge(), GNEViewNet::onCmdSmoothEdges(), GNEViewNet::onCmdSmoothEdgesElevation(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onCmdStraightenEdgesElevation(), GNEViewNet::removeRestrictedLane(), GNETAZFrame::CurrentTAZ::setTAZ(), and GNEMoveFrame::show().
std::vector< GNEGenericData * > GNENetHelper::AttributeCarriers::getSelectedGenericDatas | ( | ) | const |
get selected generic datas
Definition at line 1983 of file GNENetHelper.cpp.
std::vector< GNEJunction * > GNENetHelper::AttributeCarriers::getSelectedJunctions | ( | ) | const |
return selected junctions
Definition at line 441 of file GNENetHelper.cpp.
Referenced by GNENet::joinSelectedJunctions(), GNEViewNet::onCmdAddJoinTLS(), GNEViewNet::onCmdAddTLS(), GNEViewNet::onCmdClearConnections(), GNEConnectorFrame::ConnectionOperations::onCmdClearSelectedConnections(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetEdgeEndPoints(), GNEViewNet::onCmdResetJunctionShape(), and GNEMoveFrame::show().
std::vector< GNELane * > GNENetHelper::AttributeCarriers::getSelectedLanes | ( | ) | const |
get selected lanes
Definition at line 876 of file GNENetHelper.cpp.
Referenced by GNEViewNet::addRestrictedLane(), GNELane::buildLaneOperations(), GNETLSEditorFrame::handleMultiChange(), GNEViewNet::onCmdDuplicateLane(), GNEViewNet::onCmdResetLaneCustomShape(), GNEViewNet::onCmdResetOppositeLane(), GNEViewNet::removeRestrictedLane(), and GNEViewNet::restrictLane().
std::vector< GNEAdditional * > GNENetHelper::AttributeCarriers::getSelectedShapes | ( | ) | const |
get selected shapes
Definition at line 1070 of file GNENetHelper.cpp.
Referenced by GNEViewNet::onCmdClosePolygon(), GNEViewNet::onCmdOpenPolygon(), GNEViewNet::onCmdSimplifyShape(), and GNEMoveFrame::show().
std::vector< GNEWalkingArea * > GNENetHelper::AttributeCarriers::getSelectedWalkingAreas | ( | ) | const |
return all selected walkingAreas
Definition at line 596 of file GNENetHelper.cpp.
int GNENetHelper::AttributeCarriers::getStopIndex | ( | ) |
get (and update) stop index
Definition at line 1588 of file GNENetHelper.cpp.
const std::map< const GUIGlObject *, GNEWalkingArea * > & GNENetHelper::AttributeCarriers::getWalkingAreas | ( | ) | const |
get walkingAreas
Definition at line 590 of file GNENetHelper.cpp.
Referenced by GNEViewParent::onCmdLocate(), and GNEJunction::~GNEJunction().
|
protected |
Insert a additional element in container.
Definition at line 2469 of file GNENetHelper.cpp.
References GNEAdditional::getGUIGlObject(), GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETagProperties::hasAttribute(), GNETagProperties::isPlacedInRTree(), SUMO_ATTR_ID, and GNEAdditional::updateGeometry().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildJpsObstacle(), GNEAdditionalHandler::buildJpsWalkableArea(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNEAdditionalHandler::buildPOI(), GNEAdditionalHandler::buildPOIGeo(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildPolygon(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildTractionSubstation(), GNEAdditionalHandler::buildTrainStop(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEChange_Additional::redo(), and GNEChange_Additional::undo().
|
protected |
insert connection in container
Definition at line 2427 of file GNENetHelper.cpp.
References GNENetworkElement::getGUIGlObject(), GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEEdge::retrieveGNEConnection().
|
protected |
insert crossing in container
Definition at line 2379 of file GNENetHelper.cpp.
References GNENetworkElement::getGUIGlObject(), GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEJunction::retrieveGNECrossing().
|
protected |
insert data interval in container
Definition at line 1938 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEDataSet::addDataIntervalChild().
|
protected |
Insert a data set in container.
Definition at line 2592 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEChange_DataSet::redo(), and GNEChange_DataSet::undo().
|
protected |
Insert a demand element in container.
Definition at line 2521 of file GNENetHelper.cpp.
References GNEDemandElement::computePathElement(), GNEDemandElement::getGUIGlObject(), GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNETagProperties::hasAttribute(), SUMO_ATTR_ID, and GNEDemandElement::updateGeometry().
Referenced by GNERouteHandler::buildContainer(), GNERouteHandler::buildContainerFlow(), GNERouteHandler::buildContainerStop(), GNERouteHandler::buildEmbeddedRoute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowJunctions(), GNERouteHandler::buildFlowOverRoute(), GNERouteHandler::buildFlowTAZs(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNERouteHandler::buildRide(), GNERouteHandler::buildRoute(), GNERouteHandler::buildRouteDistribution(), GNERouteHandler::buildStop(), GNERouteHandler::buildTranship(), GNERouteHandler::buildTransport(), GNERouteHandler::buildTrip(), GNERouteHandler::buildTripJunctions(), GNERouteHandler::buildTripTAZs(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildVType(), GNERouteHandler::buildVTypeDistribution(), GNERouteHandler::buildWalk(), GNEChange_DemandElement::redo(), and GNEChange_DemandElement::undo().
|
protected |
Definition at line 2312 of file GNENetHelper.cpp.
References NBNode::addIncomingEdge(), NBNode::addOutgoingEdge(), NBEdge::getFromNode(), GNEEdge::getNBEdge(), and NBEdge::getToNode().
Referenced by GNEChange_Edge::redo(), and GNEChange_Edge::undo().
|
protected |
insert edge type in container
Definition at line 2279 of file GNENetHelper.cpp.
References GUIGlObject::getMicrosimID().
Referenced by GNEChange_EdgeType::redo(), and GNEChange_EdgeType::undo().
|
protected |
insert generic data in container
Definition at line 2070 of file GNENetHelper.cpp.
References GNEGenericData::getGUIGlObject(), GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEDataInterval::addGenericDataChild().
|
protected |
insert internalLane in container
Definition at line 2448 of file GNENetHelper.cpp.
References GNENetworkElement::getGUIGlObject(), GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNETLSEditorFrame::buildInternalLanes().
|
protected |
insert junction in container
Definition at line 2258 of file GNENetHelper.cpp.
References GNEJunction::getNBNode().
Referenced by GNEChange_Junction::redo(), and GNEChange_Junction::undo().
|
protected |
insert lane in container
Definition at line 2355 of file GNENetHelper.cpp.
References GNENetworkElement::getGUIGlObject(), GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEEdge::addLane().
|
protected |
Insert a meanData element in container.
Definition at line 2624 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEChange_MeanData::redo(), and GNEChange_MeanData::undo().
|
protected |
insert walkingArea in container
Definition at line 2403 of file GNENetHelper.cpp.
References GNENetworkElement::getGUIGlObject(), GNEAttributeCarrier::getID(), and GNEAttributeCarrier::getTagStr().
Referenced by GNEJunction::retrieveGNEWalkingArea().
bool GNENetHelper::AttributeCarriers::isNetworkElementAroundShape | ( | GNEAttributeCarrier * | AC, |
const PositionVector & | shape | ||
) | const |
check if shape of given AC (network element) is around the given shape
Definition at line 182 of file GNENetHelper.cpp.
References PositionVector::around(), GNEAdditional::getAdditionalGeometry(), NBNode::getCenter(), GNEAttributeCarrier::getGUIGlObject(), GNEAttributeCarrier::getID(), GNEJunction::getNBNode(), GNEAdditional::getPositionInView(), NBNode::getShape(), GUIGeometry::getShape(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::isAdditionalElement(), PositionVector::overlapsWith(), SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, and SUMO_TAG_LANE.
Referenced by GNEViewNet::onCmdSelectPolygonElements(), and GNETAZFrame::shapeDrawed().
|
privatedelete |
Invalidated assignment operator.
registers an edge with containers
Definition at line 736 of file GNENetHelper.cpp.
References GNEJunction::addIncomingGNEEdge(), GNEJunction::addOutgoingGNEEdge(), GNEEdge::getCenteringBoundary(), GNEEdge::getFromJunction(), GNEEdge::getLanes(), GUIGlObject::getMicrosimID(), GNEEdge::getToJunction(), GNEReferenceCounter::incRef(), GNEEdge::setResponsible(), GNEEdge::updateCenteringBoundary(), and GNEJunction::updateCenteringBoundary().
Referenced by GNENet::initJunctionsAndEdges().
GNEEdgeType * GNENetHelper::AttributeCarriers::registerEdgeType | ( | GNEEdgeType * | edgeType | ) |
registers a edge in containers
Definition at line 634 of file GNENetHelper.cpp.
References GUIGlObject::getMicrosimID(), and GNEReferenceCounter::incRef().
Referenced by GNENet::initJunctionsAndEdges().
GNEJunction * GNENetHelper::AttributeCarriers::registerJunction | ( | GNEJunction * | junction | ) |
registers a junction in containers
Definition at line 454 of file GNENetHelper.cpp.
References GNEJunction::getCenteringBoundary(), GUIGlObject::getMicrosimID(), GNEJunction::getNBNode(), NBNode::getPosition(), GNEReferenceCounter::incRef(), GNEJunction::setResponsible(), GNEJunction::updateGeometry(), and Position::z().
Referenced by GNENet::initJunctionsAndEdges().
void GNENetHelper::AttributeCarriers::remapJunctionAndEdgeIds | ( | ) |
remap junction and edge IDs
Definition at line 164 of file GNENetHelper.cpp.
Referenced by GNENet::computeAndUpdate().
GNEAdditional * GNENetHelper::AttributeCarriers::retrieveAdditional | ( | const GUIGlObject * | glObject, |
bool | hardFail = true |
||
) | const |
Returns the named additional.
[in] | glObject | The GUIGlObject associated with the element |
[in] | hardFail | Whether attempts to retrieve a nonexisting additional should result in an exception |
Definition at line 1009 of file GNENetHelper.cpp.
GNEAdditional * GNENetHelper::AttributeCarriers::retrieveAdditional | ( | SumoXMLTag | type, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named additional.
[in] | id | The attribute carrier related with the additional element |
[in] | type | tag with the type of additional |
[in] | id | The id of the additional to return. |
[in] | hardFail | Whether attempts to retrieve a nonexisting additional should result in an exception |
Definition at line 979 of file GNENetHelper.cpp.
Referenced by GNETAZFrame::addOrRemoveTAZMember(), GNEAdditionalFrame::buildAdditionalOverView(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildOverheadWire(), GNEAdditionalHandler::buildParkingAreaReroute(), GNERouteHandler::buildStop(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::checkDuplicatedID(), GNEViewNet::deleteNetworkAttributeCarriers(), GNEViewNet::drawTemporalE1TLSLines(), GNETAZFrame::dropTAZMembers(), GNEViewNet::getAdditionalAtPopupPosition(), GNEAdditionalHandler::getAdditionalParent(), GNEViewNet::getPOIAtPopupPosition(), GNEViewNet::getPolygonAtPopupPosition(), GNEViewNet::getTAZAtPopupPosition(), GNEPlanParents::GNEPlanParents(), GNECalibrator::isValid(), GNEEntryExitDetector::isValid(), GNEOverheadWire::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNETAZRelData::isValid(), GNEStop::isValid(), GNEAdditional::isValidAdditionalID(), GNEAdditional::isValidDetectorID(), GNEAttributesCreatorRow::isValidID(), GNERouteHandler::parseStopEdge(), GNERouteHandler::parseTAZ(), GNEAdditional::replaceAdditionalParent(), GNEDemandElement::replaceFirstParentAdditional(), GNEDemandElement::replaceLastParentAdditional(), GNEGenericData::replaceParentTAZElement(), GNEAccess::setAttribute(), GNEElementTree::showAttributeCarrierParents(), and GNEChange_Additional::~GNEChange_Additional().
GNEAdditional * GNENetHelper::AttributeCarriers::retrieveAdditionals | ( | const std::vector< SumoXMLTag > | types, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named additional.
[in] | id | The attribute carrier related with the additional element |
[in] | types | tags with the type of additional |
[in] | id | The id of the additional to return. |
[in] | hardFail | Whether attempts to retrieve a nonexisting additional should result in an exception |
Definition at line 993 of file GNENetHelper.cpp.
Referenced by GNEAccess::isValid(), GNEAdditional::isValidAdditionalID(), and GNEAdditional::isValidDetectorID().
GNEAttributeCarrier * GNENetHelper::AttributeCarriers::retrieveAttributeCarrier | ( | const GUIGlID | id, |
bool | hardFail = true |
||
) | const |
get a single attribute carrier based on a GLID
[in] | ids | the GL IDs for which to retrieve the AC |
[in] | hardFail | Whether attempts to retrieve a nonexisting AttributeCarrier should result in an exception |
InvalidArgument | if GL ID doesn't have a associated Attribute Carrier |
Definition at line 224 of file GNENetHelper.cpp.
References GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, and GUIGlObjectStorage::unblockObject().
Referenced by GNEViewNet::recalculateBoundaries().
std::vector< GNEAttributeCarrier * > GNENetHelper::AttributeCarriers::retrieveAttributeCarriers | ( | SumoXMLTag | tag = SUMO_TAG_NOTHING | ) |
get the attribute carriers based on Type
[in] | type | The GUI-type of the AC. SUMO_TAG_NOTHING returns all elements (Warning: bottleneck) |
Definition at line 247 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getTagPropertiesByMergingTag(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::isAdditionalElement(), GNETagProperties::isDemandElement(), GNETagProperties::isGenericData(), GNETagProperties::isMeanData(), SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_DATAINTERVAL, SUMO_TAG_DATASET, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, SUMO_TAG_NOTHING, and SUMO_TAG_WALKINGAREA.
Referenced by GNESelectorFrame::getMatches().
std::vector< GNEAttributeCarrier * > GNENetHelper::AttributeCarriers::retrieveAttributeCarriers | ( | Supermode | supermode, |
const bool | onlySelected | ||
) |
get the attribute carriers based on supermode and selected
Definition at line 312 of file GNENetHelper.cpp.
GNEConnection * GNENetHelper::AttributeCarriers::retrieveConnection | ( | const GUIGlObject * | glObject, |
bool | hardFail = true |
||
) | const |
get Connection by GUIGlObject
[in] | glObject | The GUIGlObject associated with the element |
[in] | hardFail | Whether attempts to retrieve a nonexisting Connection should result in an exception |
UnknownElement |
Definition at line 918 of file GNENetHelper.cpp.
References GUIGlObject::getMicrosimID().
GNEConnection * GNENetHelper::AttributeCarriers::retrieveConnection | ( | const std::string & | id, |
bool | hardFail = true |
||
) | const |
get Connection by id
[in] | id | The id of the desired Connection |
[in] | hardFail | Whether attempts to retrieve a nonexisting Connection should result in an exception |
UnknownElement |
Definition at line 901 of file GNENetHelper.cpp.
Referenced by GNEViewNet::deleteNetworkAttributeCarriers(), GNENet::deleteNetworkElement(), GNEViewNet::getConnectionAtPopupPosition(), and GNEViewNet::getShapeEditedAtPopupPosition().
GNECrossing * GNENetHelper::AttributeCarriers::retrieveCrossing | ( | const GUIGlObject * | glObject, |
bool | hardFail = true |
||
) | const |
get Crossing by AC
[in] | glObject | The GUIGlObject associated with the element |
[in] | hardFail | Whether attempts to retrieve a nonexisting Crossing should result in an exception |
UnknownElement |
Definition at line 529 of file GNENetHelper.cpp.
References GUIGlObject::getMicrosimID().
Referenced by GNEViewNet::deleteNetworkAttributeCarriers(), GNENet::deleteNetworkElement(), GNEFixNetworkElements::FixCrossingOptions::fixElements(), GNEViewNet::getCrossingAtPopupPosition(), and GNEViewNet::getShapeEditedAtPopupPosition().
GNEDataInterval * GNENetHelper::AttributeCarriers::retrieveDataInterval | ( | const GNEAttributeCarrier * | AC, |
bool | hardFail = true |
||
) | const |
Returns the data interval.
[in] | id | The attribute carrier related with the dataInterval element |
[in] | hardFail | Whether attempts to retrieve a nonexisting data set should result in an exception |
Definition at line 1920 of file GNENetHelper.cpp.
Referenced by GNEViewNet::deleteDataAttributeCarriers(), GNEChange_DataInterval::~GNEChange_DataInterval(), and GNEChange_GenericData::~GNEChange_GenericData().
GNEDataSet * GNENetHelper::AttributeCarriers::retrieveDataSet | ( | const std::string & | id, |
bool | hardFail = true |
||
) | const |
Returns the named data set.
[in] | id | The id of the data set to return. |
[in] | hardFail | Whether attempts to retrieve a nonexisting data set should result in an exception |
Definition at line 1888 of file GNENetHelper.cpp.
Referenced by GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNEDataHandler::buildTAZRelationData(), GNEViewNet::deleteDataAttributeCarriers(), GNEGenericDataFrame::DataSetSelector::getDataSet(), GNEViewNetHelper::IntervalBar::getDataSet(), GNEDataSet::isValid(), GNEChange_Attribute::redo(), GNEElementTree::showAttributeCarrierParents(), GNEElementTree::showHierarchicalElementChildren(), GNEChange_Attribute::undo(), GNEChange_DataInterval::~GNEChange_DataInterval(), and GNEChange_DataSet::~GNEChange_DataSet().
GNEDemandElement * GNENetHelper::AttributeCarriers::retrieveDemandElement | ( | const GUIGlObject * | glObject, |
bool | hardFail = true |
||
) | const |
Returns the named demand.
[in] | glObject | The GUIGlObject associated with the element |
[in] | hardFail | Whether attempts to retrieve a nonexisting demand should result in an exception |
Definition at line 1374 of file GNENetHelper.cpp.
GNEDemandElement * GNENetHelper::AttributeCarriers::retrieveDemandElement | ( | SumoXMLTag | type, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named demand element.
[in] | type | tag with the type of demand element |
[in] | id | The id of the demand element to return. |
[in] | hardFail | Whether attempts to retrieve a nonexisting demand element should result in an exception |
Definition at line 1344 of file GNENetHelper.cpp.
Referenced by GNEAdditionalHandler::buildCalibratorFlow(), GNEContainerFrame::buildContainer(), GNERouteHandler::buildContainerPlan(), GNERouteHandler::buildFlowOverRoute(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::buildRoute(), GNEAdditionalHandler::buildRouteProbReroute(), GNERouteHandler::buildStop(), GNERouteHandler::buildVehicleOverRoute(), GNEVehicleFrame::buildVehicleOverRoute(), GNERouteHandler::buildVType(), GNERouteHandler::checkDuplicatedDemandElement(), GNERouteFrame::createPath(), GNEViewNet::deleteDemandAttributeCarriers(), GNERouteHandler::getContainerParent(), GNEViewNet::getDemandElementAtPopupPosition(), GNERouteHandler::getDistributionElements(), GNERouteHandler::getPersonParent(), GNERouteHandler::getType(), GNEPlanParents::GNEPlanParents(), GNETypeFrame::GNETypeFrame(), GNEDemandElement::isValidDemandElementID(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEAdditional::replaceDemandElementParent(), GNEDemandElement::replaceDemandElementParent(), GNEDemandElementPlan::replacePlanParent(), GNEVehicle::setAttribute(), GNEDemandElement::setVTypeDistributionParent(), GNEElementTree::showAttributeCarrierParents(), GNEFrameAttributeModules::AttributesEditor::showAttributeEditorModule(), GNEDemandElementSelector::showDemandElementSelector(), GNERouteHandler::transformToContainer(), GNERouteHandler::transformToContainerFlow(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToFlowJunctions(), GNERouteHandler::transformToFlowTAZs(), GNERouteHandler::transformToPerson(), GNERouteHandler::transformToPersonFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToTripJunctions(), GNERouteHandler::transformToTripTAZs(), GNERouteHandler::transformToVehicle(), GNEViewNetHelper::ViewObjectsSelector::updateDemandElements(), and GNEChange_DemandElement::~GNEChange_DemandElement().
GNEDemandElement * GNENetHelper::AttributeCarriers::retrieveDemandElements | ( | const std::vector< SumoXMLTag > | types, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named demand element.
[in] | types | tag with the type of demand element |
[in] | id | The id of the demand element to return. |
[in] | hardFail | Whether attempts to retrieve a nonexisting demand element should result in an exception |
Definition at line 1358 of file GNENetHelper.cpp.
Referenced by GNECalibratorFlow::isValid(), GNERouteProbReroute::isValid(), GNEContainer::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), and GNEDemandElement::isValidDemandElementID().
GNEEdge * GNENetHelper::AttributeCarriers::retrieveEdge | ( | const std::string & | id, |
bool | hardFail = true |
||
) | const |
get edge by id
[in] | id | The id of the desired edge |
[in] | hardFail | Whether attempts to retrieve a nonexisting edge should result in an exception |
UnknownElement |
Definition at line 686 of file GNENetHelper.cpp.
Referenced by GNEViewNet::addRestrictedLane(), GNETAZFrame::CurrentTAZ::addTAZChild(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::buildDestProbReroute(), GNEAdditionalHandler::buildEdgeCalibrator(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNEAdditionalHandler::buildRouteProbe(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNEAdditionalHandler::buildVaporizer(), GNEPathManager::PathCalculator::calculateDijkstraPath(), GNEVehicle::computePathElement(), GNENet::createEdge(), GNERouteFrame::createPath(), GNENet::createRoundabout(), GNEViewNet::deleteNetworkAttributeCarriers(), GNENet::deleteNetworkElement(), GNEFixNetworkElements::FixEdgeOptions::fixElements(), GNEViewNet::getEdgeAtPopupPosition(), GNEAdditional::getPopUpMenu(), GNEPlanParents::GNEPlanParents(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::initTargets(), GNECalibrator::isValid(), GNEClosingReroute::isValid(), GNEDestProbReroute::isValid(), GNERouteProbe::isValid(), GNEVaporizer::isValid(), GNEEdgeRelData::isValid(), GNEEdge::isValid(), GNERouteHandler::isViaAttributeValid(), GNEJunction::markAsModified(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEAttributeCarrier::parse(), GNERouteHandler::parseEdge(), GNERouteHandler::parseEdgeFromLaneID(), GNEAdditionalHandler::parseEdges(), GNEMeanDataHandler::parseEdges(), GNERouteHandler::parseEdges(), GNERouteHandler::parseStopEdge(), GNEJunction::removeConnectionsTo(), GNEViewNet::removeRestrictedLane(), GNEGenericData::replaceFirstParentEdge(), GNEDemandElement::replaceFirstParentEdge(), GNEGenericData::replaceLastParentEdge(), GNEDemandElement::replaceLastParentEdge(), GNEViewNet::restrictLane(), GNEEdge::retrieveGNEConnection(), GNENet::selectRoundabout(), GNEClosingReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNEEdge::setAttribute(), GNEJunction::setLogicValid(), GNEJunction::setMoveShape(), GNEElementTree::showHierarchicalElementChildren(), GNENet::splitEdgesBidi(), and GNENet::splitJunction().
std::vector< GNEEdge * > GNENetHelper::AttributeCarriers::retrieveEdges | ( | GNEJunction * | from, |
GNEJunction * | to | ||
) | const |
get all edges by from and to GNEJunction
[in] | id | The id of the desired edge |
[in] | hardFail | Whether attempts to retrieve a nonexisting edge should result in an exception |
UnknownElement |
Definition at line 701 of file GNENetHelper.cpp.
Referenced by GNENet::createEdge(), GNEEdge::getOppositeEdges(), and GNECreateEdgeFrame::processClick().
GNEEdgeType * GNENetHelper::AttributeCarriers::retrieveEdgeType | ( | const std::string & | id, |
bool | hardFail = true |
||
) | const |
get edge type by id
[in] | id | The id of the desired edge type |
[in] | hardFail | Whether attempts to retrieve a nonexisting edge type should result in an exception |
UnknownElement |
Definition at line 621 of file GNENetHelper.cpp.
Referenced by GNEEdgeType::isValid(), GNECreateEdgeFrame::EdgeTypeSelector::onCmdDeleteEdgeType(), and GNEChange_EdgeType::~GNEChange_EdgeType().
GNEGenericData * GNENetHelper::AttributeCarriers::retrieveGenericData | ( | const GUIGlObject * | glObject, |
bool | hardFail = true |
||
) | const |
Returns the generic data.
[in] | id | The attribute carrier related with the genericData element |
[in] | hardFail | Whether attempts to retrieve a nonexisting data set should result in an exception |
Definition at line 1966 of file GNENetHelper.cpp.
Referenced by GNEViewNet::deleteDataAttributeCarriers(), and GNEChange_GenericData::~GNEChange_GenericData().
std::set< std::string > GNENetHelper::AttributeCarriers::retrieveGenericDataParameters | ( | const std::string & | dataSetID, |
const std::string & | genericDataTag, | ||
const std::string & | beginStr, | ||
const std::string & | endStr | ||
) | const |
return a set of parameters for the given dataSet, generic data Type, begin and end
Definition at line 2126 of file GNENetHelper.cpp.
References SUMO_ATTR_BEGIN, and SUMO_ATTR_END.
std::set< std::string > GNENetHelper::AttributeCarriers::retrieveGenericDataParameters | ( | const std::string & | genericDataTag, |
const double | begin, | ||
const double | end | ||
) | const |
return a set of parameters for the given data Interval
Definition at line 2098 of file GNENetHelper.cpp.
References SUMO_ATTR_BEGIN, and SUMO_ATTR_END.
Referenced by GNEMatchGenericDataAttribute::onCmdSelectAttribute(), and GNEMatchGenericDataAttribute::onCmdSelectTag().
std::vector< GNEGenericData * > GNENetHelper::AttributeCarriers::retrieveGenericDatas | ( | const SumoXMLTag | genericDataTag, |
const double | begin, | ||
const double | end | ||
) |
retrieve generic datas within the given interval
Definition at line 2004 of file GNENetHelper.cpp.
References SUMO_ATTR_BEGIN, and SUMO_ATTR_END.
Referenced by GNEMatchGenericDataAttribute::onCmdProcessString().
GNEInternalLane * GNENetHelper::AttributeCarriers::retrieveInternalLane | ( | const GUIGlObject * | glObject, |
bool | hardFail = true |
||
) | const |
get InternalLane by GUIGlObject
[in] | glObject | The GUIGlObject associated with the element |
[in] | hardFail | Whether attempts to retrieve a nonexisting InternalLane should result in an exception |
UnknownElement |
Definition at line 964 of file GNENetHelper.cpp.
References GUIGlObject::getMicrosimID().
GNEJunction * GNENetHelper::AttributeCarriers::retrieveJunction | ( | const std::string & | id, |
bool | hardFail = true |
||
) | const |
get junction by id
[in] | id | The id of the desired junction |
[in] | hardFail | Whether attempts to retrieve a nonexisting junction should result in an exception |
UnknownElement |
Definition at line 420 of file GNENetHelper.cpp.
Referenced by GNENet::changeEdgeEndpoints(), GNEConnection::changeTLIndex(), GNEViewNet::checkMergeJunctions(), GNETLSEditorFrame::cleanup(), GNETLSEditorFrame::TLSDefinition::createTLS(), GNEViewNet::deleteNetworkAttributeCarriers(), GNENet::deleteNetworkElement(), GNEViewNet::drawTemporalJunctionTLSLines(), GNEViewNet::drawTemporalRoundabout(), GNETLSEditorFrame::editJunction(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getShapeEditedAtPopupPosition(), GNEEdge::GNEEdge(), GNEPlanParents::GNEPlanParents(), GNEJunction::invalidateTLS(), GNEEdge::isValid(), GNEJunction::isValid(), GNEFrameAttributeModules::AttributesEditorRow::mergeJunction(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::TLSDefinition::onCmdSaveChanges(), GNERouteHandler::parseJunction(), GNETLSEditorFrame::parseTLSPrograms(), GNEJunction::removeTLSConnections(), GNEDemandElement::replaceFirstParentJunction(), GNEJunction::replaceIncomingConnections(), GNEDemandElement::replaceLastParentJunction(), GNEEdge::setAttribute(), GNEJunction::setAttribute(), GNEJunction::setJunctionType(), GNEElementTree::showHierarchicalElementChildren(), GNEEdge::updateFirstParentJunction(), GNEViewNetHelper::ViewObjectsSelector::updateNetworkElements(), and GNEEdge::updateSecondParentJunction().
GNELane * GNENetHelper::AttributeCarriers::retrieveLane | ( | const GUIGlObject * | glObject, |
bool | hardFail = true |
||
) | const |
get Lane by GlObject
[in] | glObject | The GUIGlObject associated with the element |
[in] | hardFail | Whether attempts to retrieve a nonexisting Lane should result in an exception |
UnknownElement |
Definition at line 855 of file GNENetHelper.cpp.
References GUIGlObject::getMicrosimID().
GNELane * GNENetHelper::AttributeCarriers::retrieveLane | ( | const std::string & | id, |
bool | hardFail = true , |
||
bool | checkVolatileChange = false |
||
) | const |
get lane by id
[in] | id | The id of the desired lane |
[in] | hardFail | Whether attempts to retrieve a nonexisting lane should result in an exception |
[in] | checkVolatileChange | Used by additionals after recomputing with volatile options. |
UnknownElement |
Definition at line 821 of file GNENetHelper.cpp.
References SUMOXMLDefinitions::getEdgeIDFromLane(), GNELane::getIndex(), GNEEdge::getLanes(), SUMO_TAG_EDGE, SUMO_TAG_LANE, and toString().
Referenced by GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEAdditionalHandler::buildE1Detector(), GNEAdditionalHandler::buildLaneCalibrator(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildPOILane(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTrainStop(), GNEViewNet::deleteNetworkAttributeCarriers(), GNENet::deleteNetworkElement(), GNEViewNet::getLaneAtPopupPosition(), GNEAdditional::getPopUpMenu(), GNEDetector::isDetectorValid(), GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEClosingLaneReroute::isValid(), GNEContainerStop::isValid(), GNEParkingArea::isValid(), GNEStop::isValid(), GNEPOI::isValid(), GNEAttributeCarrier::parse(), GNEAdditionalHandler::parseLanes(), GNEClosingLaneReroute::setAttribute(), and GNEElementTree::showHierarchicalElementChildren().
GNEMeanData * GNENetHelper::AttributeCarriers::retrieveMeanData | ( | SumoXMLTag | type, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named meanData.
[in] | id | The attribute carrier related with the meanData element |
[in] | type | tag with the type of meanData |
[in] | id | The id of the meanData to return. |
[in] | hardFail | Whether attempts to retrieve a nonexisting meanData should result in an exception |
Definition at line 2199 of file GNENetHelper.cpp.
Referenced by GNEMeanDataHandler::buildEdgeMeanData(), GNEMeanDataHandler::buildLaneMeanData(), GNEMeanData::isValid(), and GNEChange_MeanData::~GNEChange_MeanData().
GNEAdditional * GNENetHelper::AttributeCarriers::retrieveRerouterInterval | ( | const std::string & | rerouterID, |
const SUMOTime | begin, | ||
const SUMOTime | end | ||
) | const |
Returns the rerouter interval defined by given begin and end.
[in] | rerouter | ID |
[in] | begin | SUMOTime begin |
[in] | end | SUMOTime begin |
Definition at line 1026 of file GNENetHelper.cpp.
References GNEHierarchicalElement::getChildAdditionals(), SUMO_ATTR_BEGIN, SUMO_ATTR_END, SUMO_TAG_INTERVAL, SUMO_TAG_REROUTER, and time2string().
Referenced by GNEAdditionalHandler::getRerouterIntervalParent().
GNEWalkingArea * GNENetHelper::AttributeCarriers::retrieveWalkingArea | ( | const GUIGlObject * | glObject, |
bool | hardFail = true |
||
) | const |
get WalkingArea by GlObject
[in] | glObject | The GUIGlObject associated with the element |
[in] | hardFail | Whether attempts to retrieve a nonexisting WalkingArea should result in an exception |
UnknownElement |
Definition at line 575 of file GNENetHelper.cpp.
References GUIGlObject::getMicrosimID().
Referenced by GNEViewNet::getWalkingAreaAtPopupPosition().
void GNENetHelper::AttributeCarriers::updateAdditionalID | ( | GNEAdditional * | additional, |
const std::string & | newID | ||
) |
update additional ID in container
Definition at line 1113 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), and GUIGlObject::setMicrosimID().
Referenced by GNEAdditional::setAdditionalID().
|
protected |
update demand element frames (called after insert/delete demand element)
Definition at line 2658 of file GNENetHelper.cpp.
References DEMAND_CONTAINER, DEMAND_CONTAINERPLAN, DEMAND_PERSON, DEMAND_PERSONPLAN, DEMAND_ROUTEDISTRIBUTION, DEMAND_STOP, DEMAND_TYPE, DEMAND_TYPEDISTRIBUTION, DEMAND_VEHICLE, GNETagProperties::isContainer(), GNETagProperties::isPerson(), GNETagProperties::isRoute(), and GNETagProperties::isType().
void GNENetHelper::AttributeCarriers::updateDemandElementID | ( | GNEDemandElement * | demandElement, |
const std::string & | newID | ||
) |
update demand element ID in container
Definition at line 1527 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), and GUIGlObject::setMicrosimID().
Referenced by GNEDemandElement::setDemandElementID().
void GNENetHelper::AttributeCarriers::updateEdgeID | ( | GNEEdge * | edge, |
const std::string & | newID | ||
) |
update edge ID in container
Definition at line 784 of file GNENetHelper.cpp.
References NBEdge::getID(), GNEAttributeCarrier::getID(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), GNEAttributeCarrier::getTagStr(), and GNEEdge::setEdgeID().
Referenced by GNEEdge::setAttribute().
void GNENetHelper::AttributeCarriers::updateEdgeTypeID | ( | GNEEdgeType * | edgeType, |
const std::string & | newID | ||
) |
update edgeType ID in container
Definition at line 655 of file GNENetHelper.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getTagStr(), and GNENetworkElement::setNetworkElementID().
Referenced by GNEEdgeType::setAttribute().
void GNENetHelper::AttributeCarriers::updateJunctionID | ( | GNEJunction * | junction, |
const std::string & | newID | ||
) |
update junction ID in container
Definition at line 494 of file GNENetHelper.cpp.
References NBNode::buildCrossings(), GNEAttributeCarrier::getID(), Named::getID(), GNEJunction::getNBNode(), GNEAttributeCarrier::getTagStr(), and GNENetworkElement::setNetworkElementID().
Referenced by GNEJunction::setAttribute().
|
friend |
declare friend class
Definition at line 78 of file GNENetHelper.h.
|
friend |
Definition at line 88 of file GNENetHelper.h.
|
friend |
Definition at line 93 of file GNENetHelper.h.
|
friend |
Definition at line 92 of file GNENetHelper.h.
|
friend |
Definition at line 91 of file GNENetHelper.h.
|
friend |
Definition at line 87 of file GNENetHelper.h.
|
friend |
Definition at line 86 of file GNENetHelper.h.
|
friend |
Definition at line 94 of file GNENetHelper.h.
|
friend |
Definition at line 85 of file GNENetHelper.h.
|
friend |
Definition at line 95 of file GNENetHelper.h.
|
friend |
Definition at line 89 of file GNENetHelper.h.
|
friend |
Definition at line 90 of file GNENetHelper.h.
|
friend |
Definition at line 80 of file GNENetHelper.h.
|
friend |
Definition at line 84 of file GNENetHelper.h.
|
friend |
Definition at line 83 of file GNENetHelper.h.
Definition at line 82 of file GNENetHelper.h.
|
friend |
Definition at line 81 of file GNENetHelper.h.
|
friend |
Definition at line 79 of file GNENetHelper.h.
|
friend |
Definition at line 96 of file GNENetHelper.h.
|
private |
map with the tag and pointer to additional elements of net, sorted by IDs
Definition at line 788 of file GNENetHelper.h.
Referenced by AttributeCarriers().
|
private |
map with the tag and pointer to additional elements of net
Definition at line 791 of file GNENetHelper.h.
Referenced by AttributeCarriers().
|
private |
map with connetions
Definition at line 782 of file GNENetHelper.h.
|
private |
set with crossings
Definition at line 767 of file GNENetHelper.h.
|
private |
map with all data intervals of network
Definition at line 803 of file GNENetHelper.h.
|
private |
map with the ID and pointer to all datasets of net
Definition at line 800 of file GNENetHelper.h.
|
private |
map with the tag and pointer to demand elements of net, sorted by IDs
Definition at line 794 of file GNENetHelper.h.
Referenced by AttributeCarriers().
|
private |
map with the tag and pointer to additional elements of net
Definition at line 797 of file GNENetHelper.h.
Referenced by AttributeCarriers().
|
private |
map with the ID and pointer to edges of net
Definition at line 776 of file GNENetHelper.h.
|
private |
map with the ID and pointer to edgeTypes of net
Definition at line 773 of file GNENetHelper.h.
|
private |
map with the tag and pointer to all generic datas
Definition at line 806 of file GNENetHelper.h.
Referenced by AttributeCarriers().
|
private |
map with internal lanes
Definition at line 785 of file GNENetHelper.h.
|
private |
map with the ID and pointer to junctions of net
Definition at line 764 of file GNENetHelper.h.
|
private |
map with lanes
Definition at line 779 of file GNENetHelper.h.
|
private |
map with the tag and pointer to meanData elements of net
Definition at line 809 of file GNENetHelper.h.
Referenced by AttributeCarriers().
|
private |
pointer to net
Definition at line 758 of file GNENetHelper.h.
|
private |
stop index
Definition at line 761 of file GNENetHelper.h.
|
private |
set with walkingAreas
Definition at line 770 of file GNENetHelper.h.