![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A NBNetBuilder extended by visualisation and editing capabilities. More...
#include <GNENet.h>
Public Member Functions | ||||
void | addExplicitTurnaround (std::string id) | |||
add edge id to the list of explicit turnarounds More... | ||||
void | addGLObjectIntoGrid (GNEAttributeCarrier *AC) | |||
add GL Object into net More... | ||||
bool | addRestrictedLane (SUMOVehicleClass vclass, GNEEdge *edge, int index, GNEUndoList *undoList) | |||
add restricted lane to edge More... | ||||
GNEEdge * | addReversedEdge (GNEEdge *edge, GNEUndoList *undoList) | |||
add reversed edge More... | ||||
void | changeEdgeEndpoints (GNEEdge *edge, const std::string &newSourceID, const std::string &newDestID) | |||
modifies endpoins of the given edge More... | ||||
bool | cleanInvalidCrossings (GNEUndoList *undoList) | |||
clear invalid crossings More... | ||||
void | cleanInvalidDemandElements (GNEUndoList *undoList) | |||
clean invalid demand elements More... | ||||
void | cleanUnusedRoutes (GNEUndoList *undoList) | |||
clean unused routes More... | ||||
void | clearJunctionConnections (GNEJunction *junction, GNEUndoList *undoList) | |||
clear junction's connections More... | ||||
void | computeAndUpdate (OptionsCont &oc, bool volatileOptions) | |||
recompute the network and update lane geometries More... | ||||
void | computeDataElements (GNEApplicationWindow *window) | |||
compute data elements param[in] window The window to inform about delay More... | ||||
void | computeDemandElements (GNEApplicationWindow *window) | |||
compute demand elements param[in] window The window to inform about delay More... | ||||
void | computeJunction (GNEJunction *junction) | |||
trigger recomputation of junction shape and logic param[in] window The window to inform about delay More... | ||||
void | computeNetwork (GNEApplicationWindow *window, bool force=false, bool volatileOptions=false, std::string additionalPath="", std::string demandPath="", std::string dataPath="") | |||
trigger full netbuild computation param[in] window The window to inform about delay param[in] force Whether to force recomputation even if not needed param[in] volatileOptions enable or disable volatile options param[in] additionalPath path in wich additionals were saved before recomputing with volatile options param[in] demandPath path in wich demand elements were saved before recomputing with volatile options param[in] dataPath path in wich data elements were saved before recomputing with volatile options More... | ||||
GNEEdge * | createEdge (GNEJunction *src, GNEJunction *dest, GNEEdge *edgeTemplate, GNEUndoList *undoList, const std::string &suggestedName="", bool wasSplit=false, bool allowDuplicateGeom=false, bool recomputeConnections=true) | |||
creates a new edge (unless an edge with the same geometry already exists) More... | ||||
GNEJunction * | createJunction (const Position &pos, GNEUndoList *undoList) | |||
creates a new junction More... | ||||
void | createRoundabout (GNEJunction *junction, GNEUndoList *undoList) | |||
transform the given junction into a roundabout More... | ||||
void | deleteAdditional (GNEAdditional *additional, GNEUndoList *undoList) | |||
remove additional More... | ||||
void | deleteConnection (GNEConnection *connection, GNEUndoList *undoList) | |||
remove connection More... | ||||
void | deleteCrossing (GNECrossing *crossing, GNEUndoList *undoList) | |||
remove crossing More... | ||||
void | deleteDataInterval (GNEDataInterval *dataInterval, GNEUndoList *undoList) | |||
remove data interval More... | ||||
void | deleteDataSet (GNEDataSet *dataSet, GNEUndoList *undoList) | |||
remove data set More... | ||||
void | deleteDemandElement (GNEDemandElement *demandElement, GNEUndoList *undoList) | |||
remove demand element More... | ||||
void | deleteEdge (GNEEdge *edge, GNEUndoList *undoList, bool recomputeConnections) | |||
removes edge More... | ||||
void | deleteGenericData (GNEGenericData *genericData, GNEUndoList *undoList) | |||
remove generic data More... | ||||
void | deleteJunction (GNEJunction *junction, GNEUndoList *undoList) | |||
removes junction and all incident edges More... | ||||
void | deleteLane (GNELane *lane, GNEUndoList *undoList, bool recomputeConnections) | |||
removes lane More... | ||||
void | deleteShape (GNEShape *shape, GNEUndoList *undoList) | |||
remove shape More... | ||||
void | deleteTAZElement (GNETAZElement *TAZElement, GNEUndoList *undoList) | |||
remove TAZElement More... | ||||
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const | |||
Draws additional, user-triggered visualisations. More... | ||||
void | drawName (const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const | |||
draw name of item More... | ||||
void | duplicateLane (GNELane *lane, GNEUndoList *undoList, bool recomputeConnections) | |||
duplicates lane More... | ||||
std::string | generateEdgeTypeID () const | |||
generate edgeType id More... | ||||
FXApp * | getApp () | |||
get pointer to the main App More... | ||||
GNENetHelper::AttributeCarriers * | getAttributeCarriers () const | |||
retrieve all attribute carriers of Net More... | ||||
const Boundary & | getBoundary () const | |||
returns the bounder of the network More... | ||||
NBEdgeCont & | getEdgeCont () | |||
returns the NBEdgeCont of the underlying netbuilder More... | ||||
SUMORTree & | getGrid () | |||
Returns the RTree used for visualisation speed-up. More... | ||||
NBNetBuilder * | getNetBuilder () const | |||
get net builder More... | ||||
GNENetHelper::PathCalculator * | getPathCalculator () | |||
obtain instance of PathCalculator More... | ||||
std::vector< GNEAttributeCarrier * > | getSelectedAttributeCarriers (bool ignoreCurrentSupermode) | |||
get all selected attribute carriers (or only relative to current supermode More... | ||||
NBTrafficLightLogicCont & | getTLLogicCont () | |||
returns the tllcont of the underlying netbuilder More... | ||||
GNEViewNet * | getViewNet () const | |||
get view net More... | ||||
GNENet (NBNetBuilder *netBuilder) | ||||
Constructor. More... | ||||
void | initGNEConnections () | |||
initialize GNEConnections More... | ||||
bool | isNetRecomputed () const | |||
check if net requiere recomputing More... | ||||
bool | isNetSaved () const | |||
return if net has to be saved More... | ||||
void | joinRoutes (GNEUndoList *undoList) | |||
join routes More... | ||||
bool | joinSelectedJunctions (GNEUndoList *undoList) | |||
join selected junctions More... | ||||
void | mergeJunctions (GNEJunction *moved, GNEJunction *target, GNEUndoList *undoList) | |||
merge the given junctions edges between the given junctions will be deleted More... | ||||
bool | netHasGNECrossings () const | |||
check if net has GNECrossings More... | ||||
virtual void | onLeftBtnPress (void *) | |||
notify object about left click More... | ||||
virtual void | removeActiveAddVisualisation (GUISUMOAbstractView *const, int) | |||
remove additional user-griggered visualisations More... | ||||
void | removeExplicitTurnaround (std::string id) | |||
remove edge id from the list of explicit turnarounds More... | ||||
void | removeGLObjectFromGrid (GNEAttributeCarrier *AC) | |||
add GL Object into net More... | ||||
bool | removeRestrictedLane (SUMOVehicleClass vclass, GNEEdge *edge, GNEUndoList *undoList) | |||
remove restricted lane More... | ||||
void | removeSolitaryJunctions (GNEUndoList *undoList) | |||
removes junctions that have no edges More... | ||||
void | replaceIncomingEdge (GNEEdge *which, GNEEdge *by, GNEUndoList *undoList) | |||
replaces edge More... | ||||
void | replaceJunctionByGeometry (GNEJunction *junction, GNEUndoList *undoList) | |||
replace the selected junction by geometry node(s) and merge the edges More... | ||||
void | requireRecompute () | |||
inform the net about the need for recomputation More... | ||||
void | requireSaveNet (bool value) | |||
inform that net has to be saved More... | ||||
void | resetJunctionConnections (GNEJunction *junction, GNEUndoList *undoList) | |||
reset junction's connections More... | ||||
bool | restrictLane (SUMOVehicleClass vclass, GNELane *lane, GNEUndoList *undoList) | |||
transform lane to restricted lane More... | ||||
std::vector< GNEEdge * > | retrieve000180AngleEdges (bool onlySelected=false) const | |||
return edges with junction angle between 0 (inclusive) and 180 (exclusive) degrees More... | ||||
std::vector< GNEEdge * > | retrieve180360AngleEdges (bool onlySelected=false) const | |||
return edges with junction angle between 180 (inclusive) and 360 (exclusive) degrees More... | ||||
GNEAttributeCarrier * | retrieveAttributeCarrier (const GUIGlID id, bool failHard=true) const | |||
get a single attribute carrier based on a GLID More... | ||||
std::vector< GNEAttributeCarrier * > | retrieveAttributeCarriers (SumoXMLTag type=SUMO_TAG_NOTHING) | |||
get the attribute carriers based on Type More... | ||||
GNEConnection * | retrieveConnection (const std::string &id, bool failHard=true) const | |||
get Connection by id More... | ||||
std::vector< GNEConnection * > | retrieveConnections (bool onlySelected=false) const | |||
return all connections More... | ||||
GNECrossing * | retrieveCrossing (const std::string &id, bool failHard=true) const | |||
get Crossing by id More... | ||||
std::vector< GNECrossing * > | retrieveCrossings (bool onlySelected=false) const | |||
return all crossings More... | ||||
GNEEdge * | retrieveEdge (const std::string &id, bool failHard=true) const | |||
get edge by id More... | ||||
GNEEdge * | retrieveEdge (GNEJunction *from, GNEJunction *to, bool failHard=true) const | |||
get edge by from and to GNEJunction More... | ||||
std::vector< GNEEdge * > | retrieveEdges (bool onlySelected=false) | |||
return all edges More... | ||||
GNEEdgeType * | retrieveEdgeType (const std::string &id, bool failHard=true) const | |||
get edge type by id More... | ||||
GNEJunction * | retrieveJunction (const std::string &id, bool failHard=true) const | |||
get junction by id More... | ||||
std::vector< GNEJunction * > | retrieveJunctions (bool onlySelected=false) | |||
return all junctions More... | ||||
GNELane * | retrieveLane (const std::string &id, bool failHard=true, bool checkVolatileChange=false) | |||
get lane by id More... | ||||
std::vector< GNELane * > | retrieveLanes (bool onlySelected=false) | |||
return all lanes More... | ||||
std::vector< GNEShape * > | retrieveShapes (bool onlySelected=false) | |||
return all shapes More... | ||||
std::vector< GNEShape * > | retrieveShapes (SumoXMLTag shapeTag, bool onlySelected=false) | |||
return shape by type shapes More... | ||||
void | reverseEdge (GNEEdge *edge, GNEUndoList *undoList) | |||
reverse edge More... | ||||
void | save (OptionsCont &oc) | |||
save the network More... | ||||
void | saveJoined (OptionsCont &oc) | |||
save log of joined junctions (and nothing else) More... | ||||
void | savePlain (OptionsCont &oc) | |||
save plain xml representation of the network (and nothing else) More... | ||||
void | selectRoundabout (GNEJunction *junction, GNEUndoList *undoList) | |||
select all roundabout edges and junctions for the current roundabout More... | ||||
void | setViewNet (GNEViewNet *viewNet) | |||
Set the net to be notified of network changes. More... | ||||
GNEJunction * | splitEdge (GNEEdge *edge, const Position &pos, GNEUndoList *undoList, GNEJunction *newJunction=0) | |||
split edge at position by inserting a new junction More... | ||||
void | splitEdgesBidi (GNEEdge *edge, GNEEdge *oppositeEdge, const Position &pos, GNEUndoList *undoList) | |||
split all edges at position by inserting one new junction More... | ||||
void | splitJunction (GNEJunction *junction, bool reconnect, GNEUndoList *undoList) | |||
replace the selected junction by a list of junctions for each unique edge endpoint More... | ||||
~GNENet () | ||||
Destructor. More... | ||||
inherited from GUIGlObject | ||||
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own popup-menu. More... | ||||
GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own parameter window. More... | ||||
Boundary | getCenteringBoundary () const | |||
Returns the boundary to which the view shall be centered in order to show the object. More... | ||||
void | expandBoundary (const Boundary &newBoundary) | |||
expand boundary More... | ||||
const Boundary & | getZBoundary () const | |||
Returns the Z boundary (stored in the x() coordinate) values of 0 do not affect the boundary. More... | ||||
void | addZValueInBoundary (const double z) | |||
add Z in net boundary More... | ||||
void | drawGL (const GUIVisualizationSettings &s) const | |||
Draws the object. More... | ||||
Functions related to Additional Items | ||||
GNEAdditional * | retrieveAdditional (SumoXMLTag type, const std::string &id, bool hardFail=true) const | |||
Returns the named additional. More... | ||||
std::vector< GNEAdditional * > | retrieveAdditionals (bool onlySelected=false) const | |||
return all additionals More... | ||||
int | getNumberOfAdditionals (SumoXMLTag type=SUMO_TAG_NOTHING) const | |||
Returns the number of additionals of the net. More... | ||||
void | requireSaveAdditionals (bool value) | |||
inform that additionals has to be saved More... | ||||
void | saveAdditionals (const std::string &filename) | |||
save additional elements of the network More... | ||||
bool | isAdditionalsSaved () const | |||
check if additionals are saved More... | ||||
std::string | generateAdditionalID (SumoXMLTag type) const | |||
generate additional id More... | ||||
Functions related to DemandElement Items | ||||
GNEDemandElement * | retrieveDemandElement (SumoXMLTag type, const std::string &id, bool hardFail=true) const | |||
Returns the named demand element. More... | ||||
std::vector< GNEDemandElement * > | retrieveDemandElements (bool onlySelected=false) const | |||
return all demand elements More... | ||||
int | getNumberOfDemandElements (SumoXMLTag type=SUMO_TAG_NOTHING) const | |||
Returns the number of demand elements of the net. More... | ||||
void | requireSaveDemandElements (bool value) | |||
inform that demand elements has to be saved More... | ||||
void | saveDemandElements (const std::string &filename) | |||
save demand element elements of the network More... | ||||
bool | isDemandElementsSaved () const | |||
check if demand elements are saved More... | ||||
std::string | generateDemandElementID (SumoXMLTag tag) const | |||
generate demand element id More... | ||||
Functions related to DataSet Items | ||||
GNEDataSet * | retrieveDataSet (const std::string &id, bool hardFail=true) const | |||
Returns the named data set. More... | ||||
std::vector< GNEDataSet * > | retrieveDataSets () const | |||
return all data sets More... | ||||
std::vector< GNEGenericData * > | retrieveGenericDatas (bool onlySelected=false) const | |||
return all generic datas More... | ||||
int | getNumberOfDataSets () const | |||
Returns the number of data sets of the net. More... | ||||
void | requireSaveDataElements (bool value) | |||
inform that data sets has to be saved More... | ||||
void | saveDataElements (const std::string &filename) | |||
save data set elements of the network More... | ||||
bool | isDataElementsSaved () const | |||
check if data sets are saved More... | ||||
std::string | generateDataSetID (const std::string &prefix) const | |||
generate data set id More... | ||||
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 More... | ||||
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 More... | ||||
double | getDataSetIntervalMinimumBegin () const | |||
get minimum interval More... | ||||
double | getDataSetIntervalMaximumEnd () const | |||
get maximum interval More... | ||||
Functions related with Shapes | ||||
GNEShape * | retrieveShape (SumoXMLTag type, const std::string &id, bool hardFail=true) const | |||
Returns the named shape. More... | ||||
std::vector< GNEShape * > | retrieveShapes (bool onlySelected=false) const | |||
return all shapes More... | ||||
std::string | generateShapeID (SumoXMLTag shapeTag) const | |||
generate Shape ID More... | ||||
int | getNumberOfShapes (SumoXMLTag type=SUMO_TAG_NOTHING) const | |||
Returns the number of shapes of the net. More... | ||||
Functions related with TAZElements | ||||
GNETAZElement * | retrieveTAZElement (SumoXMLTag type, const std::string &id, bool hardFail=true) const | |||
Returns the named TAZElement. More... | ||||
std::vector< GNETAZElement * > | retrieveTAZElements (bool onlySelected=false) const | |||
return all TAZElements More... | ||||
std::string | generateTAZElementID (SumoXMLTag TAZElementTag) const | |||
generate TAZElement ID More... | ||||
int | getNumberOfTAZElements (SumoXMLTag type=SUMO_TAG_NOTHING) const | |||
Returns the number of TAZElements of the net. More... | ||||
Functions related to TLS Programs | ||||
void | requireSaveTLSPrograms () | |||
void | saveTLSPrograms (const std::string &filename) | |||
save TLS Programs elements of the network More... | ||||
int | getNumberOfTLSPrograms () const | |||
get number of TLS Programs More... | ||||
void | saveEdgeTypes (const std::string &filename) | |||
save edgeTypes elements of the network More... | ||||
Functions related to Enable or disable update geometry of elements after insertio | ||||
enable update geometry of elements after inserting or removing an element in net | ||||
void | enableUpdateGeometry () | |||
void | disableUpdateGeometry () | |||
disable update geometry of elements after inserting or removing an element in net More... | ||||
bool | isUpdateGeometryEnabled () const | |||
check if update geometry after inserting or removing has to be updated More... | ||||
Functions related to Enable or disable update data of elements after insertio | ||||
enable update data elements after inserting or removing an element in net | ||||
void | enableUpdateData () | |||
void | disableUpdateData () | |||
disable update data elements after inserting or removing an element in net More... | ||||
bool | isUpdateDataEnabled () const | |||
check if update data after inserting or removing has to be updated More... | ||||
Atomar getter methods | ||||
Returns the full name appearing in the tool tip
| ||||
const std::string & | getFullName () const | |||
virtual std::string | getParentName () const | |||
Returns the name of the parent object (if any) More... | ||||
GUIGlID | getGlID () const | |||
Returns the numerical id of the object. More... | ||||
interfaces to be implemented by derived classes | ||||
virtual void | removedPopupMenu () | |||
notify object about popup menu removal More... | ||||
virtual GUIParameterTableWindow * | getTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own type parameter window (optional) More... | ||||
virtual const std::string & | getMicrosimID () const | |||
Returns the id of the object as known to microsim. More... | ||||
virtual const std::string | getOptionalName () const | |||
Returns the name of the object (default "") More... | ||||
virtual void | setMicrosimID (const std::string &newID) | |||
Changes the microsimID of the object. More... | ||||
GUIGlObjectType | getType () const | |||
Returns the type of the object as coded in GUIGlObjectType. More... | ||||
virtual double | getColorValue (const GUIVisualizationSettings &, int) const | |||
Parameter table window I/O | ||||
Lets this object know a parameter window showing the object's values was opened
| ||||
void | addParameterTable (GUIParameterTableWindow *w) | |||
void | removeParameterTable (GUIParameterTableWindow *w) | |||
Lets this object know a parameter window showing the object's values was closed. More... | ||||
Static Public Attributes | |
static const GUIGlID | INVALID_ID = 0 |
static StringBijection< GUIGlObjectType > | TypeNames |
associates object types with strings More... | |
Protected Member Functions | |
void | buildAdditionalsPopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
void | buildShapePopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
helper methods for building popup-menus | |
void | buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true) |
Builds the header. More... | |
void | buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to center to the object. More... | |
void | buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds entries which allow to copy the name / typed name into the clipboard. More... | |
void | buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to (de)select the object. More... | |
void | buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the parameter window. More... | |
void | buildShowTypeParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the type parameter window. More... | |
void | buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. More... | |
void | buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the manipulator window. More... | |
Protected Attributes | |
GNENetHelper::AttributeCarriers * | myAttributeCarriers |
AttributeCarriers of net. More... | |
SUMORTree | myGrid |
the rtree which contains all GUIGlObjects (so named for historical reasons) More... | |
NBNetBuilder * | myNetBuilder |
The internal netbuilder. More... | |
GNENetHelper::PathCalculator * | myPathCalculator |
PathCalculator instance. More... | |
GNEViewNet * | myViewNet |
The net to be notofied of about changes. More... | |
Private Member Functions | |
std::string | createFullName () const |
create full name More... | |
Private Attributes | |
std::string | myFullName |
full name of GL Object More... | |
GUIGlID | myGlID |
The numerical id of the object. More... | |
const GUIGlObjectType | myGLObjectType |
The type of the object. More... | |
std::string | myMicrosimID |
ID of GL object. More... | |
std::set< GUIParameterTableWindow * > | myParamWindows |
Parameter table windows which refer to this object. More... | |
Static Private Attributes | |
static StringBijection< GUIGlObjectType >::Entry | GUIGlObjectTypeNamesInitializer [] |
LinkStates (Currently unused) More... | |
ID Suppliers for newly created edges and junctions | |
IDSupplier | myEdgeIDSupplier |
IDSupplier | myJunctionIDSupplier |
std::set< std::string > | myExplicitTurnarounds |
list of edge ids for which turn-arounds must be added explicitly More... | |
bool | myNeedRecompute |
whether the net needs recomputation More... | |
bool | myNetSaved |
Flag to check if net has to be saved. More... | |
bool | myAdditionalsSaved |
Flag to check if additionals has to be saved. More... | |
bool | myTLSProgramsSaved |
Flag to check if shapes has to be saved. More... | |
bool | myDemandElementsSaved |
Flag to check if demand elements has to be saved. More... | |
bool | myDataElementsSaved |
Flag to check if data elements has to be saved. More... | |
bool | myUpdateGeometryEnabled |
Flag to enable or disable update geometry of elements after inserting or removing element in net. More... | |
bool | myUpdateDataEnabled |
Flag to enable or disable update data elements after inserting or removing element in net. More... | |
Boundary | myZBoundary |
the z boundary (stored in the x-coordinate), values of 0 are ignored More... | |
std::map< std::string, int > | myEdgesAndNumberOfLanes |
map with the Edges and their number of lanes More... | |
static const double | Z_INITIALIZED = 1 |
marker for whether the z-boundary is initialized More... | |
void | initJunctionsAndEdges () |
Init Junctions and edges. More... | |
void | reserveEdgeID (const std::string &id) |
reserve edge ID (To avoid duplicates) More... | |
void | reserveJunctionID (const std::string &id) |
reserve junction ID (To avoid duplicates) More... | |
bool | checkJunctionPosition (const Position &pos) |
return true if there are already a Junction in the given position, false in other case More... | |
void | saveAdditionalsConfirmed (const std::string &filename) |
save additionals after confirming invalid objects More... | |
void | saveDemandElementsConfirmed (const std::string &filename) |
save demand elements after confirming invalid objects More... | |
void | saveDataElementsConfirmed (const std::string &filename) |
save data elements after confirming invalid objects More... | |
GNENet (const GNENet &)=delete | |
Invalidated copy constructor. More... | |
GNENet & | operator= (const GNENet &)=delete |
Invalidated assignment operator. More... | |
static void | replaceInListAttribute (GNEAttributeCarrier *ac, SumoXMLAttr key, const std::string &which, const std::string &by, GNEUndoList *undoList) |
A NBNetBuilder extended by visualisation and editing capabilities.
GNENet::GNENet | ( | NBNetBuilder * | netBuilder | ) |
Constructor.
[in] | netbuilder | the netbuilder which may already have been filled GNENet becomes responsible for cleaning this up |
Definition at line 88 of file GNENet.cpp.
References GUIGlObjectStorage::gIDStorage, GUIGlObjectStorage::setNetObject(), and WRITE_GLDEBUG.
GNENet::~GNENet | ( | ) |
Destructor.
Definition at line 118 of file GNENet.cpp.
References myAttributeCarriers, myNetBuilder, myPathCalculator, and WRITE_DEBUG.
|
privatedelete |
Invalidated copy constructor.
void GNENet::addExplicitTurnaround | ( | std::string | id | ) |
add edge id to the list of explicit turnarounds
Definition at line 2294 of file GNENet.cpp.
References myExplicitTurnarounds.
Referenced by GNEJunction::removeConnectionsFrom(), and GNEJunction::removeConnectionsTo().
void GNENet::addGLObjectIntoGrid | ( | GNEAttributeCarrier * | AC | ) |
add GL Object into net
Definition at line 1411 of file GNENet.cpp.
References SUMORTree::addAdditionalGLObject(), GNEAttributeCarrier::getGUIGlObject(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::isPlacedInRTree(), and myGrid.
Referenced by GNEPoly::deleteGeometryPoint(), GNEEdge::remakeGNEConnections(), GNEEdge::retrieveGNEConnection(), GNEJunction::retrieveGNECrossing(), GNEPOI::setAttribute(), GNETAZ::setAttribute(), GNEDetectorE3::updateCenteringBoundary(), GNEPOI::updateCenteringBoundary(), GNEPoly::updateCenteringBoundary(), GNERerouter::updateCenteringBoundary(), GNEStoppingPlace::updateCenteringBoundary(), GNEVariableSpeedSign::updateCenteringBoundary(), GNEEdge::updateCenteringBoundary(), and GNEJunction::updateCenteringBoundary().
|
inherited |
Definition at line 309 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
bool GNENet::addRestrictedLane | ( | SUMOVehicleClass | vclass, |
GNEEdge * | edge, | ||
int | index, | ||
GNEUndoList * | undoList | ||
) |
add restricted lane to edge
[in] | vclass | vehicle class to restrict |
[in] | edge | The edge in which insert restricted lane |
[in] | undoList | The undolist in which to mark changes |
Definition at line 706 of file GNENet.cpp.
References duplicateLane(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), NBEdge::getPermissions(), MIN2(), restrictLane(), SVC_BICYCLE, SVC_BUS, SVC_IGNORING, and SVC_PEDESTRIAN.
Referenced by GNEViewNet::addRestrictedLane().
GNEEdge * GNENet::addReversedEdge | ( | GNEEdge * | edge, |
GNEUndoList * | undoList | ||
) |
add reversed edge
[in] | edge | The edge of which to add the reverse |
Definition at line 886 of file GNENet.cpp.
References createEdge(), createJunction(), GNEEdge::getAttribute(), NBEdge::getGeometry(), GNENetworkElement::getID(), NBEdge::getInnerGeometry(), NBEdge::getLaneSpreadFunction(), GNEEdge::getNBEdge(), GNEHierarchicalElement::getParentJunctions(), NBEdge::getPermissions(), NBEdge::getTotalWidth(), GNE_ATTR_SELECTED, GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, isRailway(), PositionVector::move2side(), GNEUndoList::p_begin(), GNEUndoList::p_end(), PositionVector::reverse(), RIGHT, GNEEdge::setAttribute(), GNEJunction::setAttribute(), SUMO_ATTR_SHAPE, SUMO_TAG_EDGE, and toString().
Referenced by GNEViewNet::onCmdAddReversedEdge().
void GNENet::addZValueInBoundary | ( | const double | z | ) |
add Z in net boundary
Definition at line 199 of file GNENet.cpp.
References Boundary::add(), myZBoundary, and Z_INITIALIZED.
|
protectedinherited |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 347 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
|
protectedinherited |
Builds an entry which allows to center to the object.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 238 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MID_CENTER, and RECENTERVIEW.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNETAZElement::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 247 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
Builds the header.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 229 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNETAZElement::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 288 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 257 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), FLAG_MINUS, FLAG_PLUS, GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, GUISelectedStorage::isSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), and GUIPolygon::getPopUpMenu().
|
protectedinherited |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 324 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
Referenced by GNEPOI::getPopUpMenu(), and GUIPointOfInterest::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 300 of file GUIGlObject.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), MANIP, and MID_MANIP.
Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the parameter window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 270 of file GUIGlObject.cpp.
References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), and MID_SHOWPARS.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILane::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIOverheadWire::getPopUpMenu(), GUIOverheadWireClamp::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 279 of file GUIGlObject.cpp.
References APP_TABLE, GUIDesigns::buildFXMenuCommand(), GUIIconSubSys::getIcon(), and MID_SHOWTYPEPARS.
Referenced by GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIEdge::getPopUpMenu(), and GUIPerson::getPopUpMenu().
void GNENet::changeEdgeEndpoints | ( | GNEEdge * | edge, |
const std::string & | newSourceID, | ||
const std::string & | newDestID | ||
) |
modifies endpoins of the given edge
Definition at line 2236 of file GNENet.cpp.
References GNEEdge::getNBEdge(), GNEJunction::getNBNode(), NBEdge::reinitNodes(), requireRecompute(), and retrieveJunction().
Referenced by GNEEdge::setAttribute().
|
private |
return true if there are already a Junction in the given position, false in other case
Definition at line 1035 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getJunctions(), and myAttributeCarriers.
Referenced by joinSelectedJunctions().
bool GNENet::cleanInvalidCrossings | ( | GNEUndoList * | undoList | ) |
clear invalid crossings
Definition at line 1881 of file GNENet.cpp.
References deleteCrossing(), getApp(), GNENetHelper::AttributeCarriers::getJunctions(), myAttributeCarriers, GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_CROSSING, toString(), and WRITE_DEBUG.
Referenced by GNEApplicationWindow::onCmdProcessButton().
void GNENet::cleanInvalidDemandElements | ( | GNEUndoList * | undoList | ) |
clean invalid demand elements
Definition at line 2040 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDemandElements(), myAttributeCarriers, GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_FLOW, SUMO_TAG_ROUTE, and SUMO_TAG_TRIP.
Referenced by GNEApplicationWindow::onCmdProcessButton().
void GNENet::cleanUnusedRoutes | ( | GNEUndoList * | undoList | ) |
clean unused routes
Definition at line 1950 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDemandElements(), myAttributeCarriers, GNEUndoList::p_begin(), GNEUndoList::p_end(), and SUMO_TAG_ROUTE.
Referenced by GNEApplicationWindow::onCmdProcessButton().
void GNENet::clearJunctionConnections | ( | GNEJunction * | junction, |
GNEUndoList * | undoList | ||
) |
clear junction's connections
Definition at line 2213 of file GNENet.cpp.
References deleteConnection(), GNEJunction::getGNEConnections(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by GNEViewNet::onCmdClearConnections(), replaceJunctionByGeometry(), and resetJunctionConnections().
void GNENet::computeAndUpdate | ( | OptionsCont & | oc, |
bool | volatileOptions | ||
) |
recompute the network and update lane geometries
Definition at line 3221 of file GNENet.cpp.
References Boundary::add(), SUMORTree::addAdditionalGLObject(), GNENetHelper::AttributeCarriers::clearAdditionals(), GNENetHelper::AttributeCarriers::clearDemandElements(), GNENetHelper::AttributeCarriers::clearEdges(), GNEInspectorFrame::clearInspectedAC(), GNENetHelper::AttributeCarriers::clearJunctions(), GNENetHelper::AttributeCarriers::clearShapes(), GNENetHelper::AttributeCarriers::clearTAZElements(), NBNetBuilder::compute(), OptionsCont::getBool(), GNENetHelper::AttributeCarriers::getEdges(), GeoConvHelper::getFinal(), GNEViewParent::getInspectorFrame(), GNENetHelper::AttributeCarriers::getJunctions(), GNEViewNet::getUndoList(), GNEViewNet::getViewParent(), initJunctionsAndEdges(), OptionsCont::isSet(), myAttributeCarriers, myExplicitTurnarounds, myGrid, myNeedRecompute, myNetBuilder, myUpdateGeometryEnabled, myViewNet, GNEUndoList::p_clear(), GNENetHelper::AttributeCarriers::remapJunctionAndEdgeIds(), SUMORTree::removeAdditionalGLObject(), Boundary::reset(), and WRITE_GLDEBUG.
Referenced by computeNetwork(), GNEViewNet::onCmdEditCrossingShape(), GNEViewNet::onCmdEditJunctionShape(), GNELoadThread::run(), save(), saveJoined(), and savePlain().
void GNENet::computeDataElements | ( | GNEApplicationWindow * | window | ) |
compute data elements param[in] window The window to inform about delay
Definition at line 1676 of file GNENet.cpp.
References GNEApplicationWindow::setStatusBarText().
Referenced by saveDataElements().
void GNENet::computeDemandElements | ( | GNEApplicationWindow * | window | ) |
compute demand elements param[in] window The window to inform about delay
Definition at line 1659 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDemandElements(), GNEViewNet::getEditModes(), GNEViewNetHelper::EditModes::isCurrentSupermodeDemand(), myAttributeCarriers, myPathCalculator, myViewNet, GNEApplicationWindow::setStatusBarText(), and GNENetHelper::PathCalculator::updatePathCalculator().
Referenced by GNEApplicationWindow::onCmdProcessButton(), GNEViewNet::onCmdToogleShowDemandElements(), and saveDemandElements().
void GNENet::computeJunction | ( | GNEJunction * | junction | ) |
trigger recomputation of junction shape and logic param[in] window The window to inform about delay
Definition at line 1691 of file GNENet.cpp.
References NBTrafficLightLogicCont::computeSingleLogic(), NBNode::getControllingTLS(), GNEJunction::getNBNode(), OptionsCont::getOptions(), and getTLLogicCont().
Referenced by GNETLSEditorFrame::onCmdDefSwitch().
void GNENet::computeNetwork | ( | GNEApplicationWindow * | window, |
bool | force = false , |
||
bool | volatileOptions = false , |
||
std::string | additionalPath = "" , |
||
std::string | demandPath = "" , |
||
std::string | dataPath = "" |
||
) |
trigger full netbuild computation param[in] window The window to inform about delay param[in] force Whether to force recomputation even if not needed param[in] volatileOptions enable or disable volatile options param[in] additionalPath path in wich additionals were saved before recomputing with volatile options param[in] demandPath path in wich demand elements were saved before recomputing with volatile options param[in] dataPath path in wich data elements were saved before recomputing with volatile options
Definition at line 1603 of file GNENet.cpp.
References computeAndUpdate(), GNENetHelper::AttributeCarriers::getEdges(), OptionsCont::getOptions(), myAttributeCarriers, myEdgesAndNumberOfLanes, myNeedRecompute, XMLSubSys::runParser(), GNEApplicationWindow::setStatusBarText(), UNUSED_PARAMETER, and WRITE_MESSAGE.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEApplicationWindow::onCmdOpenTLSPrograms(), and GNEApplicationWindow::onCmdProcessButton().
GNEEdge * GNENet::createEdge | ( | GNEJunction * | src, |
GNEJunction * | dest, | ||
GNEEdge * | edgeTemplate, | ||
GNEUndoList * | undoList, | ||
const std::string & | suggestedName = "" , |
||
bool | wasSplit = false , |
||
bool | allowDuplicateGeom = false , |
||
bool | recomputeConnections = true |
||
) |
creates a new edge (unless an edge with the same geometry already exists)
[in] | src | The starting junction |
[in] | dest | The ending junction |
[in] | edgeTemplate | The template edge from which to copy attributes (including lane attrs) |
[in] | undoList | The undoList in which to mark changes |
[in] | suggestedName | |
[in] | wasSplit | Whether the edge was created from a split |
[in] | allowDuplicateGeom | Whether to create the edge even though another edge with the same geometry exists |
[in] | recomputeConnections | Whether connections on the affected junctions must be recomputed |
Definition at line 219 of file GNENet.cpp.
References OptionsCont::getFloat(), OptionsCont::getInt(), GNEEdge::getNBEdge(), GNEJunction::getNBNode(), IDSupplier::getNext(), OptionsCont::getOptions(), NBNode::getOutgoingEdges(), OptionsCont::getString(), myEdgeIDSupplier, GNEUndoList::p_begin(), GNEUndoList::p_end(), requireRecompute(), reserveEdgeID(), retrieveEdge(), GNEJunction::setLogicValid(), SUMO_TAG_EDGE, toString(), NBEdge::UNSPECIFIED_OFFSET, and NBEdge::UNSPECIFIED_WIDTH.
Referenced by addReversedEdge(), createRoundabout(), GNECreateEdgeFrame::processClick(), reverseEdge(), splitEdge(), and splitJunction().
|
privateinherited |
create full name
Definition at line 370 of file GUIGlObject.cpp.
References GUIGlObject::getMicrosimID(), StringBijection< T >::getString(), GUIGlObject::myGLObjectType, and GUIGlObject::TypeNames.
Referenced by GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
GNEJunction * GNENet::createJunction | ( | const Position & | pos, |
GNEUndoList * | undoList | ||
) |
creates a new junction
[in] | position | The position of the new junction |
[in] | undoList | The undolist in which to mark changes |
Definition at line 208 of file GNENet.cpp.
References IDSupplier::getNext(), and myJunctionIDSupplier.
Referenced by addReversedEdge(), joinSelectedJunctions(), GNECreateEdgeFrame::processClick(), splitEdge(), and splitJunction().
void GNENet::createRoundabout | ( | GNEJunction * | junction, |
GNEUndoList * | undoList | ||
) |
transform the given junction into a roundabout
Definition at line 973 of file GNENet.cpp.
References GeomHelper::angleDiff(), Position::angleTo2D(), createEdge(), deleteJunction(), OptionsCont::getBool(), NBNode::getEdges(), OptionsCont::getFloat(), NBEdge::getGeometry(), GNEEdge::getNBEdge(), GNEJunction::getNBNode(), GNEEdge::getOppositeEdge(), OptionsCont::getOptions(), GNEJunction::getPositionInView(), NBNode::getRadius(), PositionVector::length2D(), MAX2(), MIN2(), GNEUndoList::p_begin(), GNEUndoList::p_end(), retrieveEdge(), GNEEdge::setAttribute(), splitEdge(), SUMO_ATTR_SHAPE, toString(), NBNode::UNSPECIFIED_RADIUS, and NBNode::updateSurroundingGeometry().
Referenced by GNEViewNet::onCmdConvertRoundabout().
void GNENet::deleteAdditional | ( | GNEAdditional * | additional, |
GNEUndoList * | undoList | ||
) |
remove additional
[in] | additional | The Shape to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 527 of file GNENet.cpp.
References deleteDemandElement(), deleteGenericData(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildGenericDatas(), GNEAttributeCarrier::getTagStr(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by deleteEdge(), deleteLane(), GNEViewNet::deleteSelectedAdditionals(), GNEFixAdditionalElements::onCmdAccept(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
void GNENet::deleteConnection | ( | GNEConnection * | connection, |
GNEUndoList * | undoList | ||
) |
remove connection
[in] | connection | The connection to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 494 of file GNENet.cpp.
References GNEConnection::getEdgeFrom(), GNEConnection::getNBConnection(), GNEConnection::getNBEdgeConnection(), GNEHierarchicalElement::getParentJunctions(), GNEJunction::invalidateTLS(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNEJunction::markAsModified(), GNEUndoList::p_begin(), GNEUndoList::p_end(), requireRecompute(), SUMO_TAG_CONNECTION, and toString().
Referenced by GNEConnectorFrame::buildConnection(), clearJunctionConnections(), GNEViewNet::deleteSelectedConnections(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
void GNENet::deleteCrossing | ( | GNECrossing * | crossing, |
GNEUndoList * | undoList | ||
) |
remove crossing
[in] | crossing | The crossing to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 509 of file GNENet.cpp.
References NBNode::Crossing::customShape, NBNode::Crossing::customTLIndex, NBNode::Crossing::customTLIndex2, NBNode::Crossing::edges, GNECrossing::getNBCrossing(), GNECrossing::getParentJunction(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNEUndoList::p_begin(), GNEUndoList::p_end(), NBNode::Crossing::priority, requireRecompute(), and NBNode::Crossing::width.
Referenced by cleanInvalidCrossings(), deleteJunction(), GNEViewNet::deleteSelectedCrossings(), joinSelectedJunctions(), GNEDeleteFrame::removeAttributeCarrier(), GNEJunction::removeEdgeFromCrossings(), GNEEdge::removeEdgeFromCrossings(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
void GNENet::deleteDataInterval | ( | GNEDataInterval * | dataInterval, |
GNEUndoList * | undoList | ||
) |
remove data interval
[in] | dataInterval | The data interval to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 617 of file GNENet.cpp.
References deleteGenericData(), GNEDataInterval::getGenericDataChildren(), GNEAttributeCarrier::getTagStr(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by deleteDataSet().
void GNENet::deleteDataSet | ( | GNEDataSet * | dataSet, |
GNEUndoList * | undoList | ||
) |
remove data set
[in] | dataSet | The data set to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 604 of file GNENet.cpp.
References deleteDataInterval(), GNEDataSet::getDataIntervalChildren(), GNEAttributeCarrier::getTagStr(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
void GNENet::deleteDemandElement | ( | GNEDemandElement * | demandElement, |
GNEUndoList * | undoList | ||
) |
remove demand element
[in] | demandElement | The Shape to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 578 of file GNENet.cpp.
References GNEInspectorFrame::clearInspectedAC(), deleteGenericData(), GNEDemandElement::getAttribute(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildGenericDatas(), GNEViewParent::getInspectorFrame(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNEViewNet::getViewParent(), GNE_ATTR_DEFAULT_VTYPE, GNEViewNet::isAttributeCarrierInspected(), myViewNet, GNEUndoList::p_begin(), GNEUndoList::p_end(), and SUMO_TAG_VTYPE.
Referenced by deleteAdditional(), deleteEdge(), deleteGenericData(), deleteLane(), GNEViewNet::deleteSelectedDemandElements(), deleteTAZElement(), GNEFixDemandElements::onCmdAccept(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), and GNERouteHandler::transformToVehicle().
void GNENet::deleteEdge | ( | GNEEdge * | edge, |
GNEUndoList * | undoList, | ||
bool | recomputeConnections | ||
) |
removes edge
[in] | edge | The edge to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 316 of file GNENet.cpp.
References deleteAdditional(), deleteDemandElement(), deleteGenericData(), deleteShape(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildGenericDatas(), GNEHierarchicalElement::getChildShapes(), GNEEdge::getLanes(), GNEHierarchicalElement::getParentJunctions(), GNEUndoList::p_begin(), GNEUndoList::p_end(), PRIORITY, requireRecompute(), SUMO_ATTR_TYPE, SUMO_TAG_EDGE, and toString().
Referenced by deleteJunction(), deleteLane(), GNEViewNet::deleteSelectedEdges(), joinSelectedJunctions(), mergeJunctions(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), and reverseEdge().
void GNENet::deleteGenericData | ( | GNEGenericData * | genericData, |
GNEUndoList * | undoList | ||
) |
remove generic data
[in] | genericData | The generic data to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 630 of file GNENet.cpp.
References deleteDemandElement(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildGenericDatas(), GNEDataSet::getDataIntervalChildren(), GNEGenericData::getDataIntervalParent(), GNEDataInterval::getDataSetParent(), GNEDataInterval::getGenericDataChildren(), GNEAttributeCarrier::getTagStr(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by deleteAdditional(), deleteDataInterval(), deleteDemandElement(), deleteEdge(), deleteLane(), GNEViewNet::deleteSelectedGenericDatas(), deleteTAZElement(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
void GNENet::deleteJunction | ( | GNEJunction * | junction, |
GNEUndoList * | undoList | ||
) |
removes junction and all incident edges
[in] | junction | The junction to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 275 of file GNENet.cpp.
References deleteCrossing(), deleteEdge(), NBNode::getEdges(), GNENetHelper::AttributeCarriers::getEdges(), GNEJunction::getGNECrossings(), GNEJunction::getJunctionNeighbours(), GNEJunction::getNBNode(), GNEJunction::invalidatePathElements(), myAttributeCarriers, GNEUndoList::p_begin(), GNEUndoList::p_end(), PRIORITY, GNEJunction::setAttribute(), SUMO_ATTR_TYPE, SUMO_TAG_JUNCTION, and toString().
Referenced by createRoundabout(), GNEViewNet::deleteSelectedJunctions(), joinSelectedJunctions(), mergeJunctions(), GNEDeleteFrame::removeAttributeCarrier(), GNEDeleteFrame::removeSelectedAttributeCarriers(), removeSolitaryJunctions(), replaceJunctionByGeometry(), and splitJunction().
void GNENet::deleteLane | ( | GNELane * | lane, |
GNEUndoList * | undoList, | ||
bool | recomputeConnections | ||
) |
removes lane
[in] | lane | The lane to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 450 of file GNENet.cpp.
References deleteAdditional(), deleteDemandElement(), deleteEdge(), deleteGenericData(), deleteShape(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildGenericDatas(), GNEHierarchicalElement::getChildShapes(), GNELane::getIndex(), NBEdge::getLaneStruct(), GNEEdge::getNBEdge(), NBEdge::getNumLanes(), GNELane::getParentEdge(), GNEHierarchicalElement::getParentJunctions(), GNELane::invalidatePathElements(), GNEUndoList::p_begin(), GNEUndoList::p_end(), requireRecompute(), SUMO_TAG_LANE, and toString().
Referenced by GNEViewNet::deleteSelectedLanes(), GNEDeleteFrame::removeAttributeCarrier(), removeRestrictedLane(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
void GNENet::deleteShape | ( | GNEShape * | shape, |
GNEUndoList * | undoList | ||
) |
remove shape
[in] | shape | The Shape to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 548 of file GNENet.cpp.
References GNEAttributeCarrier::getTagStr(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by deleteEdge(), deleteLane(), GNEViewNet::deleteSelectedShapes(), GNEViewNet::onCmdTransformPOI(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
void GNENet::deleteTAZElement | ( | GNETAZElement * | TAZElement, |
GNEUndoList * | undoList | ||
) |
remove TAZElement
[in] | TAZElement | The TAZElement to be removed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 557 of file GNENet.cpp.
References deleteDemandElement(), deleteGenericData(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildGenericDatas(), GNEHierarchicalElement::getChildTAZElements(), GNEAttributeCarrier::getTagStr(), GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by GNEViewNet::deleteSelectedTAZElements(), and GNEDeleteFrame::removeAttributeCarrier().
void GNENet::disableUpdateData | ( | ) |
disable update data elements after inserting or removing an element in net
Definition at line 3140 of file GNENet.cpp.
References myUpdateDataEnabled.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), and GNEApplicationWindow::onCmdOpenDataElements().
void GNENet::disableUpdateGeometry | ( | ) |
disable update geometry of elements after inserting or removing an element in net
Definition at line 3115 of file GNENet.cpp.
References myUpdateGeometryEnabled.
Referenced by GNEAdditionalHandler::buildTAZ(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 175 of file GNENet.cpp.
|
virtualinherited |
Draws additional, user-triggered visualisations.
[in] | parent | The view |
[in] | s | The settings for the current view (may influence drawing) |
Reimplemented in GUIPerson, GUIContainer, and GUIBaseVehicle.
Definition at line 208 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
|
inherited |
draw name of item
Definition at line 376 of file GUIGlObject.cpp.
References GLHelper::drawTextSettings(), GUIGlObject::getMicrosimID(), and GUIVisualizationTextSettings::show.
Referenced by GNEEdge::drawEdgeName(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GNEPerson::drawGL(), GNEPersonStop::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEJunction::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GUIBaseVehicle::drawOnPos(), GNEAdditional::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), and GNEDemandElement::drawPersonPlanPartialLane().
void GNENet::duplicateLane | ( | GNELane * | lane, |
GNEUndoList * | undoList, | ||
bool | recomputeConnections | ||
) |
duplicates lane
[in] | lane | The lane to be duplicated |
[in] | undoList | The undolist in which to mark changes |
Definition at line 660 of file GNENet.cpp.
References GNELane::getIndex(), NBEdge::getLaneStruct(), GNEEdge::getNBEdge(), GNELane::getParentEdge(), GNEHierarchicalElement::getParentJunctions(), GNEUndoList::p_begin(), GNEUndoList::p_end(), requireRecompute(), SUMO_TAG_LANE, and toString().
Referenced by addRestrictedLane(), GNEViewNet::onCmdDuplicateLane(), and splitJunction().
void GNENet::enableUpdateData | ( | ) |
Definition at line 3127 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDataSets(), myAttributeCarriers, and myUpdateDataEnabled.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), and GNEApplicationWindow::onCmdOpenDataElements().
void GNENet::enableUpdateGeometry | ( | ) |
Definition at line 3109 of file GNENet.cpp.
References myUpdateGeometryEnabled.
Referenced by GNEAdditionalHandler::buildTAZ(), GNEDeleteFrame::removeAttributeCarrier(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
void GNENet::expandBoundary | ( | const Boundary & | newBoundary | ) |
std::string GNENet::generateAdditionalID | ( | SumoXMLTag | type | ) | const |
generate additional id
Definition at line 2425 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getAdditionals(), myAttributeCarriers, and toString().
std::string GNENet::generateDataSetID | ( | const std::string & | prefix | ) | const |
generate data set id
Definition at line 2677 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDataSets(), myAttributeCarriers, SUMO_TAG_DATASET, and toString().
std::string GNENet::generateDemandElementID | ( | SumoXMLTag | tag | ) | const |
generate demand element id
Definition at line 2539 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDemandElements(), GNE_TAG_FLOW_ROUTE, GNE_TAG_FLOW_WITHROUTE, GNE_TAG_VEHICLE_WITHROUTE, myAttributeCarriers, SUMO_TAG_FLOW, SUMO_TAG_PERSON, SUMO_TAG_PERSONFLOW, SUMO_TAG_TRIP, SUMO_TAG_VEHICLE, and toString().
Referenced by GNEVehicleFrame::addVehicle(), GNEPersonFrame::buildPerson(), GNERouteFrame::createPath(), GNEVehicleFrame::createPath(), GNECalibratorDialog::onCmdAddVehicleType(), GNERouteHandler::transformToRouteFlow(), and GNERouteHandler::transformToVehicle().
std::string GNENet::generateEdgeTypeID | ( | ) | const |
generate edgeType id
Definition at line 2306 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getEdgeTypes(), myAttributeCarriers, and toString().
std::string GNENet::generateShapeID | ( | SumoXMLTag | shapeTag | ) | const |
generate Shape ID
Definition at line 2971 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getShapes(), myAttributeCarriers, SUMO_TAG_POI, SUMO_TAG_POLY, and toString().
Referenced by GNEPolygonFrame::processClick(), and GNEPolygonFrame::shapeDrawed().
std::string GNENet::generateTAZElementID | ( | SumoXMLTag | TAZElementTag | ) | const |
generate TAZElement ID
Definition at line 3028 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getTAZElements(), myAttributeCarriers, and toString().
Referenced by GNETAZFrame::shapeDrawed().
FXApp * GNENet::getApp | ( | ) |
get pointer to the main App
Definition at line 1732 of file GNENet.cpp.
References myViewNet.
Referenced by cleanInvalidCrossings(), and joinSelectedJunctions().
GNENetHelper::AttributeCarriers * GNENet::getAttributeCarriers | ( | ) | const |
retrieve all attribute carriers of Net
Definition at line 130 of file GNENet.cpp.
References myAttributeCarriers.
Referenced by GNESelectorFrame::ACsToSelected(), GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowOverRoute(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildRerouter(), GNERouteHandler::buildRide(), GNERouteHandler::buildRoute(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNERouteHandler::buildTrip(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildWalk(), GNENetHelper::PathCalculator::calculateReachability(), GNESelectorFrame::clearCurrentSelection(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVType(), GNEPOI::generateChildID(), GNEPoly::generateChildID(), GNEGenericDataFrame::hide(), GNEPersonFrame::hide(), GNEPersonPlanFrame::hide(), GNERouteFrame::hide(), GNEVehicleFrame::hide(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), GNECalibratorDialog::onCmdAddFlow(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEViewNet::onCmdLaneReachability(), GNEViewParent::onCmdLocate(), GNEViewNet::onCmdToogleDrawSpreadVehicles(), GNEViewNet::onCmdTransformPOI(), GNEAdditionalHandler::parseAndBuildPOI(), GNEAdditionalHandler::parseAndBuildPoly(), GNEChange_Additional::redo(), GNEChange_DataSet::redo(), GNEChange_DemandElement::redo(), GNEChange_Edge::redo(), GNEChange_EdgeType::redo(), GNEChange_Junction::redo(), GNEChange_Shape::redo(), GNEChange_TAZElement::redo(), GNEDeleteFrame::selectedACsToDelete(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEContainerStop::setAttribute(), GNEDestProbReroute::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNEDetectorE2::setAttribute(), GNEDetectorE3::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNERerouter::setAttribute(), GNERouteProbe::setAttribute(), GNERouteProbReroute::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEDataSet::setAttribute(), GNEPerson::setAttribute(), GNERoute::setAttribute(), GNEVehicle::setAttribute(), GNEVehicleType::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNEPersonPlanFrame::show(), GNEStopFrame::show(), GNEChange_Additional::undo(), GNEChange_DataSet::undo(), GNEChange_DemandElement::undo(), GNEChange_Edge::undo(), GNEChange_EdgeType::undo(), GNEChange_Junction::undo(), GNEChange_Shape::undo(), GNEChange_TAZElement::undo(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateRouteTable(), GNECalibratorDialog::updateVehicleTypeTable(), GNEChange_Additional::~GNEChange_Additional(), GNEChange_DataInterval::~GNEChange_DataInterval(), GNEChange_DataSet::~GNEChange_DataSet(), GNEChange_DemandElement::~GNEChange_DemandElement(), GNEChange_EdgeType::~GNEChange_EdgeType(), GNEChange_GenericData::~GNEChange_GenericData(), GNEChange_Shape::~GNEChange_Shape(), and GNEChange_TAZElement::~GNEChange_TAZElement().
const Boundary & GNENet::getBoundary | ( | ) | const |
returns the bounder of the network
Definition at line 142 of file GNENet.cpp.
References myGrid.
Referenced by getCenteringBoundary(), and GNEVehicle::setColor().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 181 of file GNENet.cpp.
References getBoundary().
|
inlinevirtualinherited |
Reimplemented in GUIBaseVehicle, GNELane, GNEJunction, GUIMEVehicle, GUIVehicle, GUIPerson, GUILane, GUIJunctionWrapper, GUIEdge, and GUIContainer.
Definition at line 148 of file GUIGlObject.h.
Referenced by GNEPerson::drawGL(), GNEPerson::setColor(), and GUISUMOAbstractView::showToolTipFor().
double GNENet::getDataSetIntervalMaximumEnd | ( | ) | const |
get maximum interval
Definition at line 2809 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDataSets(), myAttributeCarriers, and SUMO_ATTR_END.
double GNENet::getDataSetIntervalMinimumBegin | ( | ) | const |
get minimum interval
Definition at line 2789 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDataSets(), myAttributeCarriers, and SUMO_ATTR_BEGIN.
NBEdgeCont & GNENet::getEdgeCont | ( | ) |
returns the NBEdgeCont of the underlying netbuilder
Definition at line 2288 of file GNENet.cpp.
References NBNetBuilder::getEdgeCont(), and myNetBuilder.
Referenced by GNEViewNet::getEdgeLaneParamKeys(), GNELane::isValid(), GNETLSEditorFrame::parseTLSPrograms(), and GNELane::setAttribute().
|
inherited |
Definition at line 154 of file GUIGlObject.cpp.
References GUIGlObject::myFullName.
Referenced by SUMORTree::addAdditionalGLObject(), GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUIParameterTableWindow::onLeftBtnPress(), GUICalibrator::openManipulator(), GUILaneSpeedTrigger::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObjectStorage::remove(), GUIGlObject_AbstractAdd::remove(), SUMORTree::removeAdditionalGLObject(), and GUISelectedStorage::save().
|
inherited |
Returns the numerical id of the object.
Definition at line 166 of file GUIGlObject.cpp.
References GUIGlObject::myGlID.
Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNERerouter::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNEPerson::drawGL(), GNEPersonStop::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GNEAdditional::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartialJunction(), GNEDemandElement::drawPersonPlanPartialLane(), GUIContainer::getColorValue(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIPerson::getColorValue(), GUIVehicle::getColorValue(), GUIMEVehicle::getColorValue(), GNEPOI::getGlID(), GNEPoly::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIShapeContainer::getPOIIds(), GUIShapeContainer::getPolygonIDs(), GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIEdge::getScaleValue(), GUITransportableControl::insertIDs(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), GUILane::isLaneOrEdgeSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUIPerson::isSelected(), GUIVehicle::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIViewTraffic::onCmdShowReachability(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIDialog_ChooserAbstract::onCmdTrack(), GUIViewTraffic::onGamingClick(), TraCIServerAPI_GUI::processGet(), TraCIServerAPI_GUI::processSet(), GUIDialog_ChooserAbstract::refreshList(), GLObjectValuePassConnector< T >::removeObject(), GUIVehicle::selectBlockingFoes(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GUIMessageWindow::setCursorPos(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().
SUMORTree & GNENet::getGrid | ( | ) |
Returns the RTree used for visualisation speed-up.
Definition at line 149 of file GNENet.cpp.
References myGrid.
Referenced by GNETLSEditorFrame::buildInternalLanes().
|
virtualinherited |
Returns the id of the object as known to microsim.
Definition at line 180 of file GUIGlObject.cpp.
References GUIGlObject::myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENetHelper::AttributeCarriers::deleteEdgeType(), GNENetHelper::AttributeCarriers::deleteSingleEdge(), GNENetHelper::AttributeCarriers::deleteSingleJunction(), GNEAdditional::drawAdditionalID(), GUIGlObject::drawName(), GNEAdditional::getID(), GNEShape::getID(), GNETAZElement::getID(), GNEGenericData::getID(), GNEDemandElement::getID(), GNENetworkElement::getID(), GUIDialog_ChooserAbstract::getObjectName(), GNEDialogACChooser::getObjectName(), GNEDetectorE3::getParentName(), GNEPOI::getParentName(), GNEPoly::getParentName(), GNERerouter::getParentName(), GNETAZ::getParentName(), GNEVariableSpeedSign::getParentName(), GNEVehicleType::getParentName(), GNETLSEditorFrame::handleMultiChange(), GNENetHelper::AttributeCarriers::insertEdgeType(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), TraCIServerAPI_GUI::processGet(), GNENetHelper::AttributeCarriers::registerEdge(), GNENetHelper::AttributeCarriers::registerEdgeType(), GNENetHelper::AttributeCarriers::registerJunction(), SUMORTree::removeAdditionalGLObject(), and splitEdge().
NBNetBuilder * GNENet::getNetBuilder | ( | ) | const |
get net builder
Definition at line 1738 of file GNENet.cpp.
References myNetBuilder.
Referenced by GNENetHelper::PathCalculator::PathCalculator(), GNEJunction::rebuildGNECrossings(), GNEChange_Crossing::redo(), GNEJunction::setAttribute(), and GNEChange_Crossing::undo().
int GNENet::getNumberOfAdditionals | ( | SumoXMLTag | type = SUMO_TAG_NOTHING | ) | const |
Returns the number of additionals of the net.
[in] | type | type of additional to count. SUMO_TAG_NOTHING will count all additionals |
Definition at line 2349 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getAdditionals(), myAttributeCarriers, and SUMO_TAG_NOTHING.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEAdditionalFrame::generateID(), and GNEApplicationWindow::onCmdOpenSUMOGUI().
int GNENet::getNumberOfDataSets | ( | ) | const |
Returns the number of data sets of the net.
Definition at line 2639 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDataSets(), and myAttributeCarriers.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions().
int GNENet::getNumberOfDemandElements | ( | SumoXMLTag | type = SUMO_TAG_NOTHING | ) | const |
Returns the number of demand elements of the net.
[in] | type | type of demand element to count. SUMO_TAG_NOTHING will count all demand elements |
Definition at line 2462 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDemandElements(), myAttributeCarriers, and SUMO_TAG_NOTHING.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), and GNEApplicationWindow::onCmdOpenSUMOGUI().
int GNENet::getNumberOfShapes | ( | SumoXMLTag | type = SUMO_TAG_NOTHING | ) | const |
Returns the number of shapes of the net.
[in] | type | type of shape to count. SUMO_TAG_NOTHING will count all shapes |
Definition at line 2989 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getShapes(), myAttributeCarriers, and SUMO_TAG_NOTHING.
int GNENet::getNumberOfTAZElements | ( | SumoXMLTag | type = SUMO_TAG_NOTHING | ) | const |
Returns the number of TAZElements of the net.
[in] | type | type of TAZElement to count. SUMO_TAG_NOTHING will count all TAZElements |
Definition at line 3038 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getTAZElements(), myAttributeCarriers, and SUMO_TAG_NOTHING.
int GNENet::getNumberOfTLSPrograms | ( | ) | const |
get number of TLS Programs
Definition at line 3075 of file GNENet.cpp.
|
virtualinherited |
Returns the name of the object (default "")
Reimplemented in GNEEdge, GUITrafficLightLogicWrapper, GUIParkingArea, GUIJunctionWrapper, GUIEdge, GUIContainerStop, GUIChargingStation, GUIBusStop, and GUIBaseVehicle.
Definition at line 185 of file GUIGlObject.cpp.
Referenced by GUIDialog_ChooserAbstract::getObjectName().
|
virtual |
Returns an own parameter window.
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Implements GUIGlObject.
Definition at line 165 of file GNENet.cpp.
References GUIParameterTableWindow::closeBuilding().
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNELane, GNEWalk, GNEVehicleType, GNEVehicle, GNEStop, GNERoute, GNERide, GNEPersonTrip, GNEPersonStop, GNEPerson, GNEVariableSpeedSignSymbol, GNEVariableSpeedSignStep, GNEVariableSpeedSign, GNEVaporizer, GNETAZSourceSink, GNETAZ, GNEStoppingPlace, GNERouteProbReroute, GNERouteProbe, GNERerouterSymbol, GNERerouterInterval, GNERerouter, GNEPoly, GNEPOI, GNEParkingSpace, GNEParkingAreaReroute, GNEDetectorE3, GNEDetector, GNEDestProbReroute, GNEClosingReroute, GNEClosingLaneReroute, GNECalibratorFlow, GNECalibrator, GNEAccess, and GUILane.
Definition at line 160 of file GUIGlObject.cpp.
References StringUtils::emptyString.
Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().
GNENetHelper::PathCalculator * GNENet::getPathCalculator | ( | ) |
obtain instance of PathCalculator
Definition at line 136 of file GNENet.cpp.
References myPathCalculator.
Referenced by GNEPathElements::calculatePathLanes(), GNEPersonTrip::getDemandElementProblem(), GNERide::getDemandElementProblem(), GNEVehicle::getDemandElementProblem(), GNEWalk::getDemandElementProblem(), GNEVehicle::isDemandElementValid(), GNEWalk::isDemandElementValid(), GNEViewNet::onCmdLaneReachability(), GNEFrameModuls::PathCreator::Path::Path(), GNERouteHandler::transformToRouteFlow(), and GNERouteHandler::transformToVehicle().
|
virtual |
Returns an own popup-menu.
[in] | app | The application needed to build the popup-menu |
[in] | parent | The parent window needed to build the popup-menu |
Implements GUIGlObject.
Definition at line 155 of file GNENet.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildPopupHeader(), and GUIGlObject::buildPositionCopyEntry().
std::vector< GNEAttributeCarrier * > GNENet::getSelectedAttributeCarriers | ( | bool | ignoreCurrentSupermode | ) |
get all selected attribute carriers (or only relative to current supermode
Definition at line 2251 of file GNENet.cpp.
References GNEViewNet::getEditModes(), GUISelectedStorage::getSelected(), GNEAttributeCarrier::getTagProperty(), gSelected, GNETagProperties::isAdditionalElement(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNEViewNetHelper::EditModes::isCurrentSupermodeData(), GNEViewNetHelper::EditModes::isCurrentSupermodeDemand(), GNEViewNetHelper::EditModes::isCurrentSupermodeNetwork(), GNETagProperties::isDataElement(), GNETagProperties::isDemandElement(), GNETagProperties::isNetworkElement(), GNETagProperties::isShape(), GNETagProperties::isTAZElement(), myViewNet, and retrieveAttributeCarrier().
Referenced by GNESelectorFrame::handleIDs(), and GNEInspectorFrame::inspectSingleElement().
NBTrafficLightLogicCont & GNENet::getTLLogicCont | ( | ) |
returns the tllcont of the underlying netbuilder
Definition at line 2282 of file GNENet.cpp.
References NBNetBuilder::getTLLogicCont(), and myNetBuilder.
Referenced by GNEJunction::addTrafficLight(), computeJunction(), GNETLSEditorFrame::onCmdDefSwitch(), GNETLSEditorFrame::parseTLSPrograms(), GNEJunction::removeTrafficLight(), replaceIncomingEdge(), saveTLSPrograms(), and GNEJunction::setAttribute().
|
inherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 202 of file GUIGlObject.cpp.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNEAdditional::drawAdditionalID(), GNEAdditional::drawAdditionalName(), GNEVehicle::drawFlowLabel(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIJunctionWrapper::drawGL(), GUILane::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIOverheadWire::drawGL(), GUIOverheadWireClamp::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEDetectorEntryExit::drawGL(), GNEPOI::drawGL(), GNEPerson::drawGL(), GNEPersonStop::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawOnPos(), GNEEdgeRelData::drawPartialGL(), GNEAdditional::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartialJunction(), GNEDemandElement::drawPersonPlanPartialLane(), GNEVehicle::drawStackLabel(), GNEViewNet::getAttributeCarriersInBoundary(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), GUISUMOViewParent::onCmdSpeedFactor(), GUIDialog_ChooserAbstract::onCmdTrack(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISUMOAbstractView::showToolTipFor(), GUISelectedStorage::toggleSelection(), GNEViewNetHelper::ObjectsUnderCursor::updateGenericDataElements(), GNEViewNetHelper::ObjectsUnderCursor::updateNetworkElements(), GNEViewNetHelper::ObjectsUnderCursor::updateShapeElements(), and GNEViewNetHelper::ObjectsUnderCursor::updateTAZElements().
|
virtualinherited |
Returns an own type parameter window (optional)
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Reimplemented in GUIBaseVehicle, GUIMEVehicle, GUIVehicle, GUIPerson, GUIEdge, and GUIContainer.
Definition at line 172 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().
GNEViewNet * GNENet::getViewNet | ( | ) | const |
get view net
Definition at line 2245 of file GNENet.cpp.
References myViewNet.
Referenced by GNEAdditionalDialog::acceptChanges(), GNEDemandElementDialog::acceptChanges(), GNEAdditionalHandler::buildAccess(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildCalibratorFlow(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildClosingLaneReroute(), GNEAdditionalHandler::buildClosingReroute(), GNEAdditionalHandler::buildContainerStop(), GNEDataHandler::buildDataInterval(), GNEDataHandler::buildDataSet(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildDetectorEntry(), GNEAdditionalHandler::buildDetectorExit(), GNEDataHandler::buildEdgeData(), GNEDataHandler::buildEdgeRelationData(), GNEAdditionalHandler::builDestProbReroute(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowOverRoute(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildParkingSpace(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildPersonPlan(), GNERouteHandler::buildPersonStop(), GNERouteHandler::buildPersonTrip(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRerouterInterval(), GNERouteHandler::buildRide(), GNERouteHandler::buildRoute(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildRouteProbReroute(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildTAZ(), GNEDataHandler::buildTAZRelationData(), GNEAdditionalHandler::buildTAZSink(), GNEAdditionalHandler::buildTAZSource(), GNERouteHandler::buildTrip(), GNEAdditionalHandler::buildVaporizer(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalHandler::buildVariableSpeedSignStep(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::buildWalk(), GNEAdditionalHandler::builParkingAreaReroute(), GNEAdditionalDialog::cancelChanges(), GNEDemandElementDialog::cancelChanges(), GNEPoly::changeFirstGeometryPoint(), GNEViewNetHelper::LockIcon::checkDrawing(), GNERouteHandler::closeFlow(), GNERouteHandler::closePerson(), GNEPoly::closePolygon(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVehicle(), GNERouteHandler::closeVType(), GNEJunction::commitMoveShape(), GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEPoly::deleteGeometryPoint(), GNEShape::draw(), GNEGenericData::drawAttribute(), GNECalibrator::drawCalibratorSymbol(), GNEEdge::drawEdgeGeometryPoints(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNERerouter::drawGL(), GNERerouterSymbol::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEVariableSpeedSignSymbol::drawGL(), GNEPerson::drawGL(), GNEPersonStop::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEEdge::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GNEHierarchicalElement::drawHierarchicalConnections(), GNELane::drawLaneAsRailway(), GNELane::drawMarkings(), GNEAdditional::drawPartialGL(), GNEEdgeData::drawPartialGL(), GNEEdgeRelData::drawPartialGL(), GNERoute::drawPartialGL(), GNEVehicle::drawPartialGL(), GNEDemandElement::drawPersonPlanPartialJunction(), GNEDemandElement::drawPersonPlanPartialLane(), GNEStoppingPlace::drawSign(), GNEJunction::drawTLSIcon(), GNEAttributeCarrier::drawUsingSelectColor(), GNEEdge::editEndpoint(), GNEDetectorE1::fixAdditionalProblem(), GNEDetectorE1Instant::fixAdditionalProblem(), GNEDetectorE2::fixAdditionalProblem(), GNEDetectorEntryExit::fixAdditionalProblem(), GNEStoppingPlace::fixAdditionalProblem(), GNEEdgeData::getColor(), GNEEdgeRelData::getColor(), GNEPersonStop::getColor(), GNEStop::getColor(), GNEPerson::getHierarchyName(), GNEVehicle::getHierarchyName(), GNEPoly::getMoveOperation(), GNETAZ::getMoveOperation(), GNEConnection::getMoveOperation(), GNECrossing::getMoveOperation(), GNEJunction::getMoveOperation(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEGenericData::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GNEPoly::getVertexIndex(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu(), GNEVehicleTypeDialog::GNEVehicleTypeDialog(), GNEAdditionalDialog::initChanges(), GNEDemandElementDialog::initChanges(), GNEPOI::isAttributeEnabled(), GNEPoly::isAttributeEnabled(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), GNEPersonStop::moveGeometry(), GNEPersonTrip::moveGeometry(), GNERide::moveGeometry(), GNEStop::moveGeometry(), GNEWalk::moveGeometry(), GNEAdditionalHandler::myEndElement(), GNESingleParametersDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), GNECalibratorDialog::onCmdAddFlow(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdAddStep(), GNECalibratorDialog::onCmdAddVehicleType(), GNERoute::GNERoutePopupMenu::onCmdApplyDistance(), GNERerouterIntervalDialog::onCmdChangeBeginEnd(), GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute(), GNERerouterIntervalDialog::onCmdClickedClosingReroute(), GNERerouterIntervalDialog::onCmdClickedDestProbReroute(), GNECalibratorDialog::onCmdClickedFlow(), GNERerouterDialog::onCmdClickedInterval(), GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNERerouterIntervalDialog::onCmdClickedRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdClickedStep(), GNECalibratorDialog::onCmdClickedVehicleType(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdEditStep(), GNEApplicationWindow::onCmdOpenTLSPrograms(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNECalibratorFlowDialog::onCmdSetVariable(), GNERouteDialog::onCmdSetVariable(), GNELane::onDefault(), GNEPoly::openPolygon(), GNERerouter::rebuildRerouterSymbols(), GNEVariableSpeedSign::rebuildVSSSymbols(), GNEChange_DataSet::redo(), GNEChange_DemandElement::redo(), GNEChange_EdgeType::redo(), GNEDataSet::removeDataIntervalChild(), GNEDataInterval::removeGenericDataChild(), GNEPoly::removeGeometryPoint(), GNETAZ::removeGeometryPoint(), GNEConnection::removeGeometryPoint(), GNECrossing::removeGeometryPoint(), GNEJunction::removeGeometryPoint(), GNEEdge::removeLane(), GNEAdditionalDialog::resetChanges(), GNEDemandElementDialog::resetChanges(), GNEAttributeCarrier::selectAttributeCarrier(), GNEEdgeType::setAttribute(), GNEJunction::setColor(), GNELane::setLaneColor(), GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVariable(), GNEPoly::simplifyShape(), GNERouteHandler::transformToFlow(), GNERouteHandler::transformToRouteFlow(), GNERouteHandler::transformToTrip(), GNERouteHandler::transformToVehicle(), GNEChange_DataSet::undo(), GNEChange_DemandElement::undo(), GNEChange_EdgeType::undo(), GNEAttributeCarrier::unselectAttributeCarrier(), GNECalibratorDialog::updateFlowAndLabelButton(), GNEBusStop::updateGeometry(), GNEChargingStation::updateGeometry(), GNEContainerStop::updateGeometry(), GNELane::updateGeometry(), GNECalibratorDialog::updateRouteTable(), and GNECalibratorDialog::updateVehicleTypeTable().
const Boundary & GNENet::getZBoundary | ( | ) | const |
Returns the Z boundary (stored in the x() coordinate) values of 0 do not affect the boundary.
Definition at line 193 of file GNENet.cpp.
References myZBoundary.
void GNENet::initGNEConnections | ( | ) |
initialize GNEConnections
Definition at line 3208 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getEdges(), and myAttributeCarriers.
Referenced by GNEViewNet::onCmdToogleShowConnections().
|
private |
Init Junctions and edges.
Definition at line 3155 of file GNENet.cpp.
References Boundary::add(), NBEdgeCont::getAllNames(), NBNodeCont::getAllNames(), NBNetBuilder::getEdgeCont(), GNENetHelper::AttributeCarriers::getEdges(), Boundary::getHeight(), NBNetBuilder::getNodeCont(), GNEHierarchicalElement::getParentJunctions(), NBNetBuilder::getTypeCont(), Boundary::getWidth(), myAttributeCarriers, myGrid, myNetBuilder, GNENetHelper::AttributeCarriers::registerEdge(), GNENetHelper::AttributeCarriers::registerEdgeType(), GNENetHelper::AttributeCarriers::registerJunction(), NBNodeCont::retrieve(), NBEdgeCont::retrieve(), and NBNodesEdgesSorter::sortNodesEdges().
Referenced by computeAndUpdate().
bool GNENet::isAdditionalsSaved | ( | ) | const |
check if additionals are saved
Definition at line 2419 of file GNENet.cpp.
References myAdditionalsSaved.
Referenced by GNEApplicationWindow::onCmdOpenSUMOGUI(), and GNEApplicationWindow::onUpdSaveAdditionals().
bool GNENet::isDataElementsSaved | ( | ) | const |
check if data sets are saved
Definition at line 2671 of file GNENet.cpp.
References myDataElementsSaved.
Referenced by GNEApplicationWindow::onUpdSaveDataElements().
bool GNENet::isDemandElementsSaved | ( | ) | const |
check if demand elements are saved
Definition at line 2533 of file GNENet.cpp.
References myDemandElementsSaved.
Referenced by GNEApplicationWindow::onCmdOpenSUMOGUI(), and GNEApplicationWindow::onUpdSaveDemandElements().
bool GNENet::isNetRecomputed | ( | ) | const |
check if net requiere recomputing
Definition at line 1715 of file GNENet.cpp.
References myNeedRecompute.
Referenced by GNELane::buildRechableOperations().
bool GNENet::isNetSaved | ( | ) | const |
return if net has to be saved
Definition at line 1053 of file GNENet.cpp.
References myNetSaved.
Referenced by GNEApplicationWindow::continueWithUnsavedChanges(), GNEApplicationWindow::onCmdOpenSUMOGUI(), and GNEApplicationWindow::onUpdSaveNetwork().
bool GNENet::isUpdateDataEnabled | ( | ) | const |
check if update data after inserting or removing has to be updated
Definition at line 3146 of file GNENet.cpp.
References myUpdateDataEnabled.
Referenced by GNEDataInterval::updateAttributeColors(), and GNEDataInterval::updateGenericDataIDs().
bool GNENet::isUpdateGeometryEnabled | ( | ) | const |
check if update geometry after inserting or removing has to be updated
Definition at line 3121 of file GNENet.cpp.
References myUpdateGeometryEnabled.
Referenced by GNEDataInterval::addGenericDataChild().
void GNENet::joinRoutes | ( | GNEUndoList * | undoList | ) |
join routes
Definition at line 1976 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDemandElements(), myAttributeCarriers, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEAttributeCarrier::parseIDs(), SUMO_ATTR_ROUTE, and SUMO_TAG_ROUTE.
Referenced by GNEApplicationWindow::onCmdProcessButton().
bool GNENet::joinSelectedJunctions | ( | GNEUndoList * | undoList | ) |
join selected junctions
Definition at line 1744 of file GNENet.cpp.
References NBNodeCont::analyzeCluster(), checkJunctionPosition(), createJunction(), deleteCrossing(), deleteEdge(), deleteJunction(), getApp(), GNENetHelper::AttributeCarriers::getEdges(), GNENetworkElement::getID(), GNENetHelper::AttributeCarriers::getJunctions(), GNECrossing::getNBCrossing(), GNEJunction::getNBNode(), NBNetBuilder::getNodeCont(), GNEHierarchicalElement::getParentJunctions(), GNE_ATTR_SELECTED, NBNode::isTLControlled(), myAttributeCarriers, myNetBuilder, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), NBNodeCont::registerJoinedCluster(), retrieveJunctions(), GNEJunction::setAttribute(), Position::setx(), Position::sety(), SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_TLTYPE, SUMO_ATTR_TO, SUMO_ATTR_TYPE, SUMO_TAG_JUNCTION, toString(), UNKNOWN, WRITE_DEBUG, Position::x(), and Position::y().
Referenced by GNEApplicationWindow::onCmdProcessButton().
void GNENet::mergeJunctions | ( | GNEJunction * | moved, |
GNEJunction * | target, | ||
GNEUndoList * | undoList | ||
) |
merge the given junctions edges between the given junctions will be deleted
[in] | moved | The junction that will be eliminated |
[in] | target | The junction that will be enlarged |
[in] | undoList | The undo list with which to register changes |
Definition at line 921 of file GNENet.cpp.
References deleteEdge(), deleteJunction(), GNEJunction::getAttribute(), GNENetHelper::AttributeCarriers::getEdges(), GNENetworkElement::getID(), NBNode::getIncomingEdges(), GNEJunction::getNBNode(), NBNode::getOutgoingEdges(), GNEHierarchicalElement::getParentJunctions(), myAttributeCarriers, GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEJunction::setAttribute(), SUMO_ATTR_FROM, SUMO_ATTR_POSITION, SUMO_ATTR_TO, SUMO_TAG_JUNCTION, and toString().
Referenced by GNEViewNet::mergeJunctions().
bool GNENet::netHasGNECrossings | ( | ) | const |
check if net has GNECrossings
Definition at line 1721 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getJunctions(), and myAttributeCarriers.
Referenced by GNEChange_Crossing::redo(), and GNEChange_Crossing::undo().
|
inlinevirtualinherited |
notify object about left click
Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.
Definition at line 163 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::onLeftBtnPress().
|
inlinevirtualinherited |
remove additional user-griggered visualisations
Reimplemented in GUIPerson, and GUIBaseVehicle.
Definition at line 160 of file GUIGlObject.h.
|
inlinevirtualinherited |
notify object about popup menu removal
Reimplemented in GUIBaseVehicle.
Definition at line 109 of file GUIGlObject.h.
Referenced by GUIGLObjectPopupMenu::~GUIGLObjectPopupMenu().
void GNENet::removeExplicitTurnaround | ( | std::string | id | ) |
remove edge id from the list of explicit turnarounds
Definition at line 2300 of file GNENet.cpp.
References myExplicitTurnarounds.
Referenced by GNEEdge::removeConnection().
void GNENet::removeGLObjectFromGrid | ( | GNEAttributeCarrier * | AC | ) |
add GL Object into net
Definition at line 1423 of file GNENet.cpp.
References GNEAttributeCarrier::getGUIGlObject(), GNEAttributeCarrier::getTagProperty(), GNETagProperties::isPlacedInRTree(), myGrid, and SUMORTree::removeAdditionalGLObject().
Referenced by GNEPoly::deleteGeometryPoint(), GNEJunction::rebuildGNECrossings(), GNEPOI::setAttribute(), GNETAZ::setAttribute(), GNEDetectorE3::updateCenteringBoundary(), GNEPOI::updateCenteringBoundary(), GNEPoly::updateCenteringBoundary(), GNERerouter::updateCenteringBoundary(), GNEStoppingPlace::updateCenteringBoundary(), GNEVariableSpeedSign::updateCenteringBoundary(), GNEEdge::updateCenteringBoundary(), and GNEJunction::updateCenteringBoundary().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 315 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
bool GNENet::removeRestrictedLane | ( | SUMOVehicleClass | vclass, |
GNEEdge * | edge, | ||
GNEUndoList * | undoList | ||
) |
remove restricted lane
[in] | vclass | vehicle class to restrict |
[in] | edge | the edge in which remove sidewalk |
[in] | undoList | The undolist in which to mark changes |
Definition at line 742 of file GNENet.cpp.
References deleteLane(), and GNEEdge::getLanes().
Referenced by GNEViewNet::removeRestrictedLane().
void GNENet::removeSolitaryJunctions | ( | GNEUndoList * | undoList | ) |
removes junctions that have no edges
Definition at line 1933 of file GNENet.cpp.
References deleteJunction(), NBNode::getEdges(), GNENetHelper::AttributeCarriers::getJunctions(), GNEJunction::getNBNode(), myAttributeCarriers, GNEUndoList::p_begin(), GNEUndoList::p_end(), SUMO_TAG_JUNCTION, and toString().
Referenced by GNEApplicationWindow::onCmdProcessButton().
void GNENet::replaceIncomingEdge | ( | GNEEdge * | which, |
GNEEdge * | by, | ||
GNEUndoList * | undoList | ||
) |
replaces edge
[in] | which | The edge to be replaced |
[in] | by | The replacement edge |
[in] | undoList | The undolist in which to mark changes |
Definition at line 384 of file GNENet.cpp.
References GNEEdge::getAttribute(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), GNEHierarchicalElement::getChildGenericDatas(), GNEHierarchicalElement::getChildShapes(), NBEdge::getConnections(), GNENetworkElement::getID(), NBEdge::getLaneID(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), GNEHierarchicalElement::getParentAdditionals(), GNEHierarchicalElement::getParentJunctions(), getTLLogicCont(), GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), replaceInListAttribute(), SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_LANE, SUMO_ATTR_TO, SUMO_TAG_EDGE, and toString().
Referenced by replaceJunctionByGeometry().
|
staticprivate |
Definition at line 3322 of file GNENet.cpp.
References GNEAttributeCarrier::getAttribute(), GNETagProperties::getAttributeProperties(), GNEAttributeCarrier::getTagProperty(), GNEAttributeProperties::isList(), GNEAttributeCarrier::setAttribute(), and toString().
Referenced by replaceIncomingEdge().
void GNENet::replaceJunctionByGeometry | ( | GNEJunction * | junction, |
GNEUndoList * | undoList | ||
) |
replace the selected junction by geometry node(s) and merge the edges
Definition at line 2079 of file GNENet.cpp.
References PositionVector::append(), NBNode::checkIsRemovable(), clearJunctionConnections(), deleteJunction(), GNEEdge::getAttribute(), NBEdge::getConnections(), GNENetHelper::AttributeCarriers::getEdges(), NBNode::getEdgesToJoin(), NBEdge::getGeometry(), NBEdge::getInnerGeometry(), GNEEdge::getNBEdge(), GNEJunction::getNBNode(), NBNode::getPosition(), NBEdge::getToNode(), GNE_ATTR_SHAPE_END, NBEdge::hasDefaultGeometryEndpointAtNode(), myAttributeCarriers, GNEUndoList::p_begin(), GNEUndoList::p_end(), PositionVector::push_back_noDoublePos(), replaceIncomingEdge(), NBEdge::resetNodeBorder(), GNEEdge::setAttribute(), SUMO_ATTR_ENDOFFSET, SUMO_ATTR_SHAPE, and toString().
Referenced by GNEViewNet::onCmdReplaceJunction().
void GNENet::requireRecompute | ( | ) |
inform the net about the need for recomputation
Definition at line 1709 of file GNENet.cpp.
References myNeedRecompute.
Referenced by changeEdgeEndpoints(), createEdge(), deleteConnection(), deleteCrossing(), deleteEdge(), deleteLane(), duplicateLane(), GNEJunction::invalidateShape(), and GNEViewNet::onCmdToogleShowConnections().
void GNENet::requireSaveAdditionals | ( | bool | value | ) |
inform that additionals has to be saved
Definition at line 2361 of file GNENet.cpp.
References GNEApplicationWindow::disableSaveAdditionalsMenu(), GNEApplicationWindow::enableSaveAdditionalsMenu(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myAdditionalsSaved, and myViewNet.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), GNEApplicationWindow::onCmdForceSaveAdditionals(), GNEChange_Additional::redo(), GNEChange_Attribute::redo(), GNEChange_EnableAttribute::redo(), GNEChange_Additional::undo(), GNEChange_Attribute::undo(), and GNEChange_EnableAttribute::undo().
void GNENet::requireSaveDataElements | ( | bool | value | ) |
inform that data sets has to be saved
Definition at line 2645 of file GNENet.cpp.
References GNEApplicationWindow::disableSaveDataElementsMenu(), GNEApplicationWindow::enableSaveDataElementsMenu(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myDataElementsSaved, and myViewNet.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), GNEApplicationWindow::onCmdForceSaveDataElements(), GNEChange_Attribute::redo(), GNEChange_DataInterval::redo(), GNEChange_DataSet::redo(), GNEChange_GenericData::redo(), GNEChange_Attribute::undo(), GNEChange_DataInterval::undo(), GNEChange_DataSet::undo(), and GNEChange_GenericData::undo().
void GNENet::requireSaveDemandElements | ( | bool | value | ) |
inform that demand elements has to be saved
Definition at line 2474 of file GNENet.cpp.
References GNEApplicationWindow::disableSaveDemandElementsMenu(), GNEApplicationWindow::enableSaveDemandElementsMenu(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myDemandElementsSaved, and myViewNet.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), GNEApplicationWindow::onCmdForceSaveDemandElements(), GNEChange_Attribute::redo(), GNEChange_Children::redo(), GNEChange_DemandElement::redo(), GNEChange_EnableAttribute::redo(), GNEChange_Attribute::undo(), GNEChange_Children::undo(), GNEChange_DemandElement::undo(), and GNEChange_EnableAttribute::undo().
void GNENet::requireSaveNet | ( | bool | value | ) |
inform that net has to be saved
Definition at line 1047 of file GNENet.cpp.
References myNetSaved.
Referenced by GNEApplicationWindow::handleEvent_NetworkLoaded(), GNEApplicationWindow::onCmdForceSaveNetwork(), GNEChange_Attribute::redo(), GNEChange_Connection::redo(), GNEChange_Crossing::redo(), GNEChange_Edge::redo(), GNEChange_EdgeType::redo(), GNEChange_EnableAttribute::redo(), GNEChange_Junction::redo(), GNEChange_Lane::redo(), GNEChange_LaneType::redo(), GNEChange_TLS::redo(), GNEChange_Attribute::undo(), GNEChange_Connection::undo(), GNEChange_Crossing::undo(), GNEChange_Edge::undo(), GNEChange_EdgeType::undo(), GNEChange_EnableAttribute::undo(), GNEChange_Junction::undo(), GNEChange_Lane::undo(), GNEChange_LaneType::undo(), and GNEChange_TLS::undo().
void GNENet::requireSaveTLSPrograms | ( | ) |
Definition at line 3050 of file GNENet.cpp.
References GNEApplicationWindow::enableSaveTLSProgramsMenu(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myTLSProgramsSaved, myViewNet, and WRITE_DEBUG.
|
private |
reserve edge ID (To avoid duplicates)
Definition at line 3196 of file GNENet.cpp.
References IDSupplier::avoid(), and myEdgeIDSupplier.
Referenced by createEdge().
|
private |
reserve junction ID (To avoid duplicates)
Definition at line 3202 of file GNENet.cpp.
References IDSupplier::avoid(), and myJunctionIDSupplier.
void GNENet::resetJunctionConnections | ( | GNEJunction * | junction, |
GNEUndoList * | undoList | ||
) |
reset junction's connections
Definition at line 2225 of file GNENet.cpp.
References clearJunctionConnections(), GNEUndoList::p_begin(), GNEUndoList::p_end(), and GNEJunction::setLogicValid().
Referenced by GNEViewNet::onCmdResetConnections().
bool GNENet::restrictLane | ( | SUMOVehicleClass | vclass, |
GNELane * | lane, | ||
GNEUndoList * | undoList | ||
) |
transform lane to restricted lane
[in] | vclass | vehicle class to restrict |
[in] | lane | The lane to be transformed |
[in] | undoList | The undolist in which to mark changes |
Definition at line 676 of file GNENet.cpp.
References OptionsCont::getFloat(), GNEEdge::getLanes(), GNEEdge::getNBEdge(), OptionsCont::getOptions(), GNELane::getParentEdge(), NBEdge::getPermissions(), getVehicleClassNames(), GNELane::setAttribute(), SUMO_ATTR_ALLOW, SUMO_ATTR_WIDTH, SVC_BICYCLE, SVC_PEDESTRIAN, and toString().
Referenced by addRestrictedLane(), and GNEViewNet::restrictLane().
std::vector< GNEEdge * > GNENet::retrieve000180AngleEdges | ( | bool | onlySelected = false | ) | const |
return edges with junction angle between 0 (inclusive) and 180 (exclusive) degrees
[in] | onlySelected | Whether to return only selected edges |
Definition at line 1262 of file GNENet.cpp.
References Position::angleTo2D(), GNENetHelper::AttributeCarriers::getEdges(), myAttributeCarriers, and RAD2DEG.
std::vector< GNEEdge * > GNENet::retrieve180360AngleEdges | ( | bool | onlySelected = false | ) | const |
return edges with junction angle between 180 (inclusive) and 360 (exclusive) degrees
[in] | onlySelected | Whether to return only selected edges |
Definition at line 1292 of file GNENet.cpp.
References Position::angleTo2D(), GNENetHelper::AttributeCarriers::getEdges(), myAttributeCarriers, and RAD2DEG.
GNEAdditional * GNENet::retrieveAdditional | ( | SumoXMLTag | type, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named additional.
[in] | type | tag with the type of additional |
[in] | id | The id of the additional to return. |
[in] | failHard | Whether attempts to retrieve a nonexisting additional should result in an exception |
Definition at line 2316 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getAdditionals(), and myAttributeCarriers.
Referenced by GNERouteHandler::PersonValue::addPersonValue(), GNERouteHandler::addStop(), GNEAdditionalHandler::buildBusStop(), GNEAdditionalHandler::buildCalibrator(), GNEAdditionalHandler::buildChargingStation(), GNEAdditionalHandler::buildContainerStop(), GNEAdditionalHandler::buildDetectorE1(), GNEAdditionalHandler::buildDetectorE1Instant(), GNEAdditionalHandler::buildDetectorE3(), GNEAdditionalHandler::buildMultiLaneDetectorE2(), GNEAdditionalHandler::buildParkingArea(), GNEAdditionalHandler::buildRerouter(), GNEAdditionalHandler::buildRouteProbe(), GNEAdditionalHandler::buildSingleLaneDetectorE2(), GNERouteHandler::buildStop(), GNEAdditionalHandler::buildVariableSpeedSign(), GNEAdditionalFrame::generateID(), GNEAdditionalHandler::LastInsertedElement::getAdditionalParent(), GNECalibratorFlow::isValid(), GNEDetectorEntryExit::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNEPersonStop::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNEStop::isValid(), GNEWalk::isValid(), GNEAdditional::isValidAdditionalID(), GNEAdditional::isValidDetectorID(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorE3(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildParkingSpace(), GNEAdditionalHandler::parseAndBuildRerouter(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRerouterInterval(), GNEAdditionalHandler::parseAndBuildRerouterParkingAreaReroute(), GNEAdditionalHandler::parseAndBuildRerouterRouteProbReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEAdditionalHandler::parseAndBuildVariableSpeedSign(), GNEAdditionalHandler::parseAndBuildVariableSpeedSignStep(), GNEAdditional::replaceAdditionalParent(), GNEDemandElement::replaceAdditionalParent(), and GNEFrameModuls::HierarchicalElementTree::showAttributeCarrierParents().
std::vector< GNEAdditional * > GNENet::retrieveAdditionals | ( | bool | onlySelected = false | ) | const |
return all additionals
[in] | onlySelected | Whether to return only selected additionals |
Definition at line 2328 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getAdditionals(), and myAttributeCarriers.
Referenced by GNEViewNet::deleteSelectedAdditionals(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
GNEAttributeCarrier * GNENet::retrieveAttributeCarrier | ( | const GUIGlID | id, |
bool | failHard = true |
||
) | const |
get a single attribute carrier based on a GLID
[in] | ids | the GL IDs for which to retrive the AC |
[in] | failHard | 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 1435 of file GNENet.cpp.
References GUIGlObjectStorage::getObjectBlocking(), GUIGlObjectStorage::gIDStorage, and GUIGlObjectStorage::unblockObject().
Referenced by GNEViewNet::getAttributeCarriersInBoundary(), getSelectedAttributeCarriers(), and GNESelectorFrame::SelectionOperation::onCmdLoad().
std::vector< GNEAttributeCarrier * > GNENet::retrieveAttributeCarriers | ( | SumoXMLTag | type = 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 1458 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getAdditionals(), GNENetHelper::AttributeCarriers::getDataSets(), GNENetHelper::AttributeCarriers::getDemandElements(), GNENetHelper::AttributeCarriers::getEdges(), GNENetHelper::AttributeCarriers::getJunctions(), GNENetHelper::AttributeCarriers::getShapes(), GNEAttributeCarrier::getTagProperties(), GNENetHelper::AttributeCarriers::getTAZElements(), myAttributeCarriers, SUMO_TAG_CONNECTION, SUMO_TAG_CROSSING, SUMO_TAG_DATAINTERVAL, SUMO_TAG_DATASET, SUMO_TAG_EDGE, SUMO_TAG_JUNCTION, SUMO_TAG_LANE, and SUMO_TAG_NOTHING.
Referenced by GNESelectorFrame::getMatches().
GNEConnection * GNENet::retrieveConnection | ( | const std::string & | id, |
bool | failHard = true |
||
) | const |
get Connection by id
[in] | id | The id of the desired Connection |
[in] | failHard | Whether attempts to retrieve a nonexisting Connection should result in an exception |
UnknownElement |
Definition at line 1177 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getJunctions(), and myAttributeCarriers.
Referenced by GNEFrameModuls::HierarchicalElementTree::showAttributeCarrierParents().
std::vector< GNEConnection * > GNENet::retrieveConnections | ( | bool | onlySelected = false | ) | const |
return all connections
[in] | onlySelected | Whether to return only selected connections |
Definition at line 1197 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getJunctions(), and myAttributeCarriers.
Referenced by GNEDeleteFrame::removeSelectedAttributeCarriers().
GNECrossing * GNENet::retrieveCrossing | ( | const std::string & | id, |
bool | failHard = true |
||
) | const |
get Crossing by id
[in] | id | The id of the desired Crossing |
[in] | failHard | Whether attempts to retrieve a nonexisting Crossing should result in an exception |
UnknownElement |
Definition at line 1213 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getJunctions(), and myAttributeCarriers.
Referenced by GNEViewNet::deleteSelectedCrossings(), and GNEFrameModuls::HierarchicalElementTree::showAttributeCarrierParents().
std::vector< GNECrossing * > GNENet::retrieveCrossings | ( | bool | onlySelected = false | ) | const |
return all crossings
[in] | onlySelected | Whether to return only selected crossings |
Definition at line 1233 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getJunctions(), and myAttributeCarriers.
Referenced by GNEDeleteFrame::removeSelectedAttributeCarriers().
GNEDataSet * GNENet::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] | failHard | Whether attempts to retrieve a nonexisting data set should result in an exception |
Definition at line 2590 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDataSets(), and myAttributeCarriers.
Referenced by GNEGenericDataFrame::DataSetSelector::getDataSet(), GNEDataSet::isValid(), GNEDataHandler::parseAndBuildInterval(), GNEChange_Attribute::redo(), GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementChildren(), and GNEChange_Attribute::undo().
std::vector< GNEDataSet * > GNENet::retrieveDataSets | ( | ) | const |
return all data sets
Definition at line 2602 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDataSets(), and myAttributeCarriers.
GNEDemandElement * GNENet::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] | failHard | Whether attempts to retrieve a nonexisting demand element should result in an exception |
Definition at line 2435 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDemandElements(), and myAttributeCarriers.
Referenced by GNERouteHandler::PersonValue::addPersonValue(), GNERouteHandler::buildFlow(), GNERouteHandler::buildFlowEmbeddedRoute(), GNERouteHandler::buildFlowOverRoute(), GNEPersonFrame::buildPerson(), GNERouteHandler::buildPerson(), GNERouteHandler::buildPersonFlow(), GNERouteHandler::buildTrip(), GNERouteHandler::buildVehicleEmbeddedRoute(), GNERouteHandler::buildVehicleOverRoute(), GNERouteHandler::closePerson(), GNERouteHandler::closeRoute(), GNERouteHandler::closeVType(), GNEViewNet::deleteSelectedDemandElements(), GNEPersonTypeFrame::GNEPersonTypeFrame(), GNEVehicleTypeFrame::GNEVehicleTypeFrame(), GNERouteHandler::isPersonIdDuplicated(), GNECalibratorFlow::isValid(), GNEPerson::isValid(), GNEVehicle::isValid(), GNEVehicleType::isValid(), GNEWalk::isValid(), GNEDemandElement::isValidDemandElementID(), GNERouteHandler::isVehicleIdDuplicated(), GNECalibratorDialog::onCmdClickedRoute(), GNECalibratorDialog::onCmdClickedVehicleType(), GNEAdditionalHandler::parseAndBuildCalibratorFlow(), GNEAdditional::replaceDemandElementParent(), GNEDemandElement::replaceDemandElementParent(), GNECalibratorFlow::setAttribute(), and GNEFrameModuls::HierarchicalElementTree::showAttributeCarrierParents().
std::vector< GNEDemandElement * > GNENet::retrieveDemandElements | ( | bool | onlySelected = false | ) | const |
return all demand elements
[in] | onlySelected | Whether to return only selected demand elements |
Definition at line 2447 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDemandElements(), and myAttributeCarriers.
Referenced by GNEViewNet::deleteSelectedDemandElements(), GNEVehicle::getPopUpMenu(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
GNEEdge * GNENet::retrieveEdge | ( | const std::string & | id, |
bool | failHard = true |
||
) | const |
get edge by id
[in] | id | The id of the desired edge |
[in] | failHard | Whether attempts to retrieve a nonexisting edge should result in an exception |
UnknownElement |
Definition at line 1141 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getEdges(), and myAttributeCarriers.
Referenced by GNERouteHandler::PersonValue::addPersonValue(), GNEViewNet::addRestrictedLane(), GNETAZFrame::TAZCurrent::addTAZChild(), GNENetHelper::PathCalculator::calculatePath(), createEdge(), GNERouteFrame::createPath(), createRoundabout(), GNEAdditionalHandler::getLanePos(), GNEEdge::getOppositeEdge(), GNEAdditional::getPopUpMenu(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::initTargets(), GNECalibrator::isValid(), GNEClosingReroute::isValid(), GNEDestProbReroute::isValid(), GNERouteProbe::isValid(), GNEVaporizer::isValid(), GNEEdgeRelData::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNEVehicle::isValid(), GNEWalk::isValid(), GNEEdge::isValid(), GNEJunction::markAsModified(), GNEJunction::moveJunctionGeometry(), GNEConnectorFrame::ConnectionOperations::onCmdSelectConflicts(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), GNECrossingFrame::CrossingParameters::onCmdSetAttribute(), GNEInspectorFrame::TemplateEditor::onCmdSetTemplate(), GNEAttributeCarrier::parse(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEDataHandler::parseAndBuildEdgeData(), GNEDataHandler::parseAndBuildEdgeRelationData(), GNEAdditionalHandler::parseAndBuildRerouterClosingReroute(), GNEAdditionalHandler::parseAndBuildRerouterDestProbReroute(), GNEAdditionalHandler::parseAndBuildRouteProbe(), GNEAdditionalHandler::parseAndBuildTAZ(), GNEAdditionalHandler::parseAndBuildTAZSink(), GNEAdditionalHandler::parseAndBuildTAZSource(), GNEAdditionalHandler::parseAndBuildVaporizer(), GNEJunction::removeConnectionsTo(), GNEViewNet::removeRestrictedLane(), GNEGenericData::replaceFirstParentEdge(), GNEDemandElement::replaceFirstParentEdge(), GNEGenericData::replaceLastParentEdge(), GNEDemandElement::replaceLastParentEdge(), GNEViewNet::restrictLane(), GNEEdge::retrieveGNEConnection(), retrieveLane(), selectRoundabout(), GNEClosingReroute::setAttribute(), GNEDestProbReroute::setAttribute(), GNERouteHandler::RouteParameter::setEdges(), GNEJunction::setLogicValid(), GNEFrameModuls::HierarchicalElementTree::showAttributeCarrierParents(), GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementChildren(), and splitJunction().
GNEEdge * GNENet::retrieveEdge | ( | GNEJunction * | from, |
GNEJunction * | to, | ||
bool | failHard = true |
||
) | const |
get edge by from and to GNEJunction
[in] | id | The id of the desired edge |
[in] | failHard | Whether attempts to retrieve a nonexisting edge should result in an exception |
UnknownElement |
Definition at line 1156 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getEdges(), GNENetworkElement::getID(), and myAttributeCarriers.
std::vector< GNEEdge * > GNENet::retrieveEdges | ( | bool | onlySelected = false | ) |
return all edges
[in] | onlySelected | Whether to return only selected edges |
Definition at line 1249 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getEdges(), and myAttributeCarriers.
Referenced by GNEViewNet::addRestrictedLane(), GNELane::buildEdgeOperations(), GNEViewNet::deleteSelectedConnections(), GNEViewNet::deleteSelectedEdges(), GNETLSEditorFrame::handleMultiChange(), GNEViewNet::onCmdAddReversedEdge(), GNEViewParent::onCmdLocate(), GNEViewNet::onCmdResetEdgeEndpoint(), GNEViewNet::onCmdResetLength(), GNEViewNet::onCmdReverseEdge(), GNEViewNet::onCmdSmoothEdges(), GNEViewNet::onCmdSmoothEdgesElevation(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onCmdStraightenEdgesElevation(), GNEViewNet::removeRestrictedLane(), GNEDeleteFrame::removeSelectedAttributeCarriers(), and GNETAZFrame::TAZCurrent::setTAZ().
GNEEdgeType * GNENet::retrieveEdgeType | ( | const std::string & | id, |
bool | failHard = true |
||
) | const |
get edge type by id
[in] | id | The id of the desired edge type |
[in] | failHard | Whether attempts to retrieve a nonexisting edge type should result in an exception |
UnknownElement |
Definition at line 1126 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getEdgeTypes(), and myAttributeCarriers.
Referenced by GNEEdgeType::isValid(), and GNECreateEdgeFrame::EdgeTypeSelector::onCmdDeleteEdgeType().
std::set< std::string > GNENet::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 2718 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDataSets(), myAttributeCarriers, SUMO_ATTR_BEGIN, and SUMO_ATTR_END.
std::set< std::string > GNENet::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 2688 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDataSets(), myAttributeCarriers, SUMO_ATTR_BEGIN, and SUMO_ATTR_END.
std::vector< GNEGenericData * > GNENet::retrieveGenericDatas | ( | bool | onlySelected = false | ) | const |
return all generic datas
[in] | onlySelected | Whether to return only selected generic datas |
Definition at line 2614 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getDataSets(), and myAttributeCarriers.
Referenced by GNEViewNet::deleteSelectedGenericDatas(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
GNEJunction * GNENet::retrieveJunction | ( | const std::string & | id, |
bool | failHard = true |
||
) | const |
get junction by id
[in] | id | The id of the desired junction |
[in] | failHard | Whether attempts to retrieve a nonexisting junction should result in an exception |
UnknownElement |
Definition at line 1113 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getJunctions(), and myAttributeCarriers.
Referenced by changeEdgeEndpoints(), GNEConnection::changeTLIndex(), GNETLSEditorFrame::cleanup(), GNETLSEditorFrame::editJunction(), GNEEdge::GNEEdge(), GNEJunction::invalidateTLS(), GNEEdge::isValid(), GNEJunction::isValid(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::onCmdOK(), GNETLSEditorFrame::parseTLSPrograms(), GNEJunction::removeTLSConnections(), GNEJunction::replaceIncomingConnections(), GNEEdge::setAttribute(), GNEJunction::setAttribute(), GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementChildren(), GNEEdge::updateFirstParentJunction(), and GNEEdge::updateSecondParentJunction().
std::vector< GNEJunction * > GNENet::retrieveJunctions | ( | bool | onlySelected = false | ) |
return all junctions
[in] | onlySelected | Whether to return only selected junctions |
Definition at line 1370 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getJunctions(), and myAttributeCarriers.
Referenced by GNEViewNet::buildColorRainbow(), GNEViewNet::deleteSelectedCrossings(), GNEViewNet::deleteSelectedJunctions(), GNEJunction::getPopUpMenu(), joinSelectedJunctions(), GNEViewNet::onCmdClearConnections(), GNEViewParent::onCmdLocate(), GNEViewNet::onCmdResetConnections(), GNEViewNet::onCmdResetJunctionShape(), GNEConnectorFrame::ConnectionOperations::onCmdSelectDeadStarts(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
GNELane * GNENet::retrieveLane | ( | const std::string & | id, |
bool | failHard = true , |
||
bool | checkVolatileChange = false |
||
) |
get lane by id
[in] | id | The id of the desired lane |
[in] | failHard | 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 1337 of file GNENet.cpp.
References SUMOXMLDefinitions::getEdgeIDFromLane(), GNELane::getIndex(), GNEEdge::getLanes(), myEdgesAndNumberOfLanes, retrieveEdge(), SUMO_TAG_EDGE, SUMO_TAG_LANE, and toString().
Referenced by GNERouteHandler::PersonValue::addPersonValue(), GNEPolygonFrame::addPOILane(), GNERouteHandler::addStop(), GNERouteHandler::buildStop(), GNEAdditional::getPopUpMenu(), GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEClosingLaneReroute::isValid(), GNEContainerStop::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorEntryExit::isValid(), GNEParkingArea::isValid(), GNEPOI::isValid(), GNEPersonStop::isValid(), GNEStop::isValid(), GNEAdditionalHandler::parseAndBuildAccess(), GNEAdditionalHandler::parseAndBuildBusStop(), GNEAdditionalHandler::parseAndBuildCalibrator(), GNEAdditionalHandler::parseAndBuildChargingStation(), GNEAdditionalHandler::parseAndBuildContainerStop(), GNEAdditionalHandler::parseAndBuildDetectorE1(), GNEAdditionalHandler::parseAndBuildDetectorE1Instant(), GNEAdditionalHandler::parseAndBuildDetectorE2(), GNEAdditionalHandler::parseAndBuildDetectorEntry(), GNEAdditionalHandler::parseAndBuildDetectorExit(), GNEAdditionalHandler::parseAndBuildParkingArea(), GNEAdditionalHandler::parseAndBuildPOI(), GNEAdditionalHandler::parseAndBuildRerouterClosingLaneReroute(), GNEClosingLaneReroute::setAttribute(), GNEFrameModuls::HierarchicalElementTree::showAttributeCarrierParents(), and GNEFrameModuls::HierarchicalElementTree::showHierarchicalElementChildren().
std::vector< GNELane * > GNENet::retrieveLanes | ( | bool | onlySelected = false | ) |
return all lanes
[in] | onlySelected | Whether to return only selected lanes |
Definition at line 1322 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getEdges(), and myAttributeCarriers.
Referenced by GNEViewNet::addRestrictedLane(), GNEViewNet::buildColorRainbow(), GNELane::buildLaneOperations(), GNEViewNet::deleteSelectedLanes(), GNETLSEditorFrame::handleMultiChange(), GNEViewNet::onCmdDuplicateLane(), GNEViewNet::onCmdResetLaneCustomShape(), GNEViewNet::removeRestrictedLane(), GNEDeleteFrame::removeSelectedAttributeCarriers(), and GNEViewNet::restrictLane().
GNEShape * GNENet::retrieveShape | ( | SumoXMLTag | type, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named shape.
[in] | type | tag with the type of shape |
[in] | id | The id of the shape to return. |
[in] | failHard | Whether attempts to retrieve a nonexisting shape should result in an exception |
Definition at line 2944 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getShapes(), and myAttributeCarriers.
Referenced by GNEPolygonFrame::addPOI(), GNEPolygonFrame::addPOILane(), GNEPolygonFrame::addPolygon(), GNEPOI::generateChildID(), GNEPoly::generateChildID(), GNEAdditionalHandler::LastInsertedElement::getShapeParent(), GNEPOI::isValid(), GNEPoly::isValid(), GNEFrameModuls::HierarchicalElementTree::showAttributeCarrierParents(), and GNEChange_Shape::~GNEChange_Shape().
std::vector< GNEShape * > GNENet::retrieveShapes | ( | bool | onlySelected = false | ) |
return all shapes
[in] | onlySelected | Whether to return only selected junctions |
Definition at line 1396 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getShapes(), and myAttributeCarriers.
std::vector< GNEShape * > GNENet::retrieveShapes | ( | bool | onlySelected = false | ) | const |
return all shapes
[in] | onlySelected | Whether to return only selected shapes |
Definition at line 2956 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getShapes(), and myAttributeCarriers.
std::vector< GNEShape * > GNENet::retrieveShapes | ( | SumoXMLTag | shapeTag, |
bool | onlySelected = false |
||
) |
return shape by type shapes
[in] | shapeTag | Type of shape. |
[in] | onlySelected | Whether to return only selected junctions |
Definition at line 1383 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getShapes(), and myAttributeCarriers.
Referenced by GNEViewNet::deleteSelectedShapes(), and GNEDeleteFrame::removeSelectedAttributeCarriers().
GNETAZElement * GNENet::retrieveTAZElement | ( | SumoXMLTag | type, |
const std::string & | id, | ||
bool | hardFail = true |
||
) | const |
Returns the named TAZElement.
[in] | type | tag with the type of TAZElement |
[in] | id | The id of the TAZElement to return. |
[in] | failHard | Whether attempts to retrieve a nonexisting TAZElement should result in an exception |
Definition at line 3001 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getTAZElements(), and myAttributeCarriers.
Referenced by GNETAZElement::generateChildID(), GNEAdditionalHandler::LastInsertedElement::getTAZElementParent(), GNETAZRelData::isValid(), GNETAZElement::isValidTAZElementID(), GNEAdditionalHandler::parseAndBuildTAZ(), GNEDataHandler::parseAndBuildTAZRelationData(), GNEAdditionalHandler::parseAndBuildTAZSink(), GNEAdditionalHandler::parseAndBuildTAZSource(), GNEGenericData::replaceFirstParentTAZElement(), GNEGenericData::replaceLastParentTAZElement(), GNEFrameModuls::HierarchicalElementTree::showAttributeCarrierParents(), and GNEChange_TAZElement::~GNEChange_TAZElement().
std::vector< GNETAZElement * > GNENet::retrieveTAZElements | ( | bool | onlySelected = false | ) | const |
return all TAZElements
[in] | onlySelected | Whether to return only selected TAZElements |
Definition at line 3013 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getTAZElements(), and myAttributeCarriers.
Referenced by GNEViewNet::deleteSelectedTAZElements().
void GNENet::reverseEdge | ( | GNEEdge * | edge, |
GNEUndoList * | undoList | ||
) |
reverse edge
[in] | edge | The edge to be reversed |
Definition at line 873 of file GNENet.cpp.
References createEdge(), deleteEdge(), GNEEdge::getAttribute(), GNENetworkElement::getID(), NBEdge::getInnerGeometry(), GNEEdge::getNBEdge(), GNEHierarchicalElement::getParentJunctions(), GNE_ATTR_SHAPE_END, GNE_ATTR_SHAPE_START, GNEUndoList::p_begin(), GNEUndoList::p_end(), PositionVector::reverse(), GNEEdge::setAttribute(), SUMO_ATTR_SHAPE, SUMO_TAG_EDGE, and toString().
Referenced by GNEViewNet::onCmdReverseEdge().
void GNENet::save | ( | OptionsCont & | oc | ) |
save the network
[in] | oc | The OptionsCont which knows how and where to save |
Definition at line 1059 of file GNENet.cpp.
References NBTypeCont::clearTypes(), computeAndUpdate(), GNENetHelper::AttributeCarriers::getEdgeTypes(), NBNetBuilder::getTypeCont(), NBTypeCont::insertEdgeType(), NBTypeCont::insertLaneType(), myAttributeCarriers, myNetBuilder, myNetSaved, and NWFrame::writeNetwork().
Referenced by GNEApplicationWindow::onCmdSaveNetwork().
void GNENet::saveAdditionals | ( | const std::string & | filename | ) |
save additional elements of the network
[in] | filename | name of the file in wich save additionals |
Definition at line 2374 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::getAdditionals(), myAdditionalsSaved, myAttributeCarriers, myViewNet, saveAdditionalsConfirmed(), SUMO_ATTR_LANE, SUMO_ATTR_LANES, GNEViewNet::updateViewNet(), and WRITE_DEBUG.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), and GNEApplicationWindow::onCmdSaveAdditionals().
|
private |
save additionals after confirming invalid objects
Definition at line 2829 of file GNENet.cpp.
References OutputDevice::close(), GNENetHelper::AttributeCarriers::getAdditionals(), OutputDevice::getDevice(), GNENetHelper::AttributeCarriers::getShapes(), GNEAttributeCarrier::getTagProperties(), GNENetHelper::AttributeCarriers::getTAZElements(), GNETagProperties::isDetector(), GNETagProperties::isStoppingPlace(), myAttributeCarriers, SUMO_TAG_POLY, SUMO_TAG_ROUTE, SUMO_TAG_ROUTEPROBE, SUMO_TAG_TAZ, SUMO_TAG_VTYPE, TAZ, and OutputDevice::writeXMLHeader().
Referenced by saveAdditionals().
void GNENet::saveDataElements | ( | const std::string & | filename | ) |
save data set elements of the network
[in] | filename | name of the file in wich save data sets |
Definition at line 2658 of file GNENet.cpp.
References computeDataElements(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myDataElementsSaved, myViewNet, saveDataElementsConfirmed(), and WRITE_DEBUG.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), and GNEApplicationWindow::onCmdSaveDataElements().
|
private |
save data elements after confirming invalid objects
Definition at line 2931 of file GNENet.cpp.
References OutputDevice::close(), GNENetHelper::AttributeCarriers::getDataSets(), OutputDevice::getDevice(), myAttributeCarriers, and OutputDevice::writeXMLHeader().
Referenced by saveDataElements().
void GNENet::saveDemandElements | ( | const std::string & | filename | ) |
save demand element elements of the network
[in] | filename | name of the file in wich save demand elements |
Definition at line 2487 of file GNENet.cpp.
References computeDemandElements(), GNENetHelper::AttributeCarriers::getDemandElements(), GNEViewParent::getGNEAppWindows(), GNEViewNet::getViewParent(), myAttributeCarriers, myDemandElementsSaved, myViewNet, saveDemandElementsConfirmed(), GNEViewNet::updateViewNet(), and WRITE_DEBUG.
Referenced by GNEApplicationWindow::computeJunctionWithVolatileOptions(), and GNEApplicationWindow::onCmdSaveDemandElements().
|
private |
save demand elements after confirming invalid objects
Definition at line 2895 of file GNENet.cpp.
References OutputDevice::close(), GNENetHelper::AttributeCarriers::getDemandElements(), OutputDevice::getDevice(), myAttributeCarriers, SUMO_TAG_PTYPE, SUMO_TAG_ROUTE, SUMO_TAG_VTYPE, and OutputDevice::writeXMLHeader().
Referenced by saveDemandElements().
void GNENet::saveEdgeTypes | ( | const std::string & | filename | ) |
save edgeTypes elements of the network
[in] | filename | name of the file in wich save edgeTypes |
Definition at line 3081 of file GNENet.cpp.
References NBTypeCont::clearTypes(), OutputDevice::close(), OutputDevice::closeTag(), OutputDevice::getDevice(), GNENetHelper::AttributeCarriers::getEdgeTypes(), NBNetBuilder::getTypeCont(), NBTypeCont::insertEdgeType(), NBTypeCont::insertLaneType(), myAttributeCarriers, myNetBuilder, OutputDevice::openTag(), SUMO_TAG_TYPE, and NBTypeCont::writeEdgeTypes().
Referenced by GNEApplicationWindow::onCmdSaveEdgeTypes().
void GNENet::saveJoined | ( | OptionsCont & | oc | ) |
save log of joined junctions (and nothing else)
[in] | oc | The OptionsCont which knows how and where to save |
Definition at line 1090 of file GNENet.cpp.
References computeAndUpdate(), NBNetBuilder::getNodeCont(), myNetBuilder, and NWWriter_XML::writeJoinedJunctions().
Referenced by GNEApplicationWindow::onCmdSaveJoined().
void GNENet::savePlain | ( | OptionsCont & | oc | ) |
save plain xml representation of the network (and nothing else)
[in] | oc | The OptionsCont which knows how and where to save |
Definition at line 1082 of file GNENet.cpp.
References computeAndUpdate(), myNetBuilder, and NWWriter_XML::writeNetwork().
Referenced by GNEApplicationWindow::onCmdSaveAsPlainXML().
void GNENet::saveTLSPrograms | ( | const std::string & | filename | ) |
save TLS Programs elements of the network
[in] | filename | name of the file in wich save TLS Programs |
Definition at line 3060 of file GNENet.cpp.
References OutputDevice::close(), OutputDevice::getDevice(), getTLLogicCont(), myTLSProgramsSaved, OutputDevice::openTag(), WRITE_DEBUG, and NWWriter_SUMO::writeTrafficLights().
Referenced by GNEApplicationWindow::onCmdSaveTLSPrograms().
void GNENet::selectRoundabout | ( | GNEJunction * | junction, |
GNEUndoList * | undoList | ||
) |
select all roundabout edges and junctions for the current roundabout
Definition at line 954 of file GNENet.cpp.
References NBNetBuilder::getEdgeCont(), GNEJunction::getNBNode(), GNEHierarchicalElement::getParentJunctions(), NBEdgeCont::getRoundabouts(), GNE_ATTR_SELECTED, myNetBuilder, GNEUndoList::p_begin(), GNEUndoList::p_end(), retrieveEdge(), and GNEEdge::setAttribute().
Referenced by GNEViewNet::onCmdSelectRoundabout().
|
virtualinherited |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 190 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObjectStorage::gIDStorage, GUIGlObject::myFullName, GUIGlObject::myGlID, GUIGlObject::myMicrosimID, GUIGlObjectStorage::registerObject(), and GUIGlObjectStorage::remove().
Referenced by GNELane::setIndex(), GNEEdge::setMicrosimID(), GNENetHelper::AttributeCarriers::updateAdditionalID(), GNENetHelper::AttributeCarriers::updateDemandElementID(), GNENetHelper::AttributeCarriers::updateEdgeTypeID(), GNEConnection::updateID(), GNENetHelper::AttributeCarriers::updateJunctionID(), GNENetHelper::AttributeCarriers::updateShapeID(), and GNENetHelper::AttributeCarriers::updateTAZElementID().
void GNENet::setViewNet | ( | GNEViewNet * | viewNet | ) |
Set the net to be notified of network changes.
Definition at line 1098 of file GNENet.cpp.
References GNENetHelper::AttributeCarriers::addDefaultVTypes(), GNENetHelper::AttributeCarriers::getEdges(), myAttributeCarriers, and myViewNet.
GNEJunction * GNENet::splitEdge | ( | GNEEdge * | edge, |
const Position & | pos, | ||
GNEUndoList * | undoList, | ||
GNEJunction * | newJunction = 0 |
||
) |
split edge at position by inserting a new junction
[in] | edge | The edge to be split |
[in] | pos | The position on which to insert the new junction |
Definition at line 756 of file GNENet.cpp.
References createEdge(), createJunction(), NBNode::Crossing::edges, GNEEdge::getAttribute(), GNEHierarchicalElement::getChildAdditionals(), GNEHierarchicalElement::getChildDemandElements(), NBEdge::getGeometry(), GNENetworkElement::getID(), GNEEdge::getLanes(), GUIGlObject::getMicrosimID(), GNEEdge::getNBEdge(), GNEHierarchicalElement::getParentJunctions(), GNE_ATTR_SHAPE_END, PositionVector::nearest_offset_to_point2D(), GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEEdge::setAttribute(), PositionVector::splitAt(), SUMO_ATTR_SHAPE, SUMO_ATTR_TO, SUMO_TAG_EDGE, toString(), and GNEEdge::wasSplit().
Referenced by createRoundabout(), GNEViewNet::onCmdSplitEdge(), GNEViewNet::processLeftButtonPressNetwork(), and splitEdgesBidi().
void GNENet::splitEdgesBidi | ( | GNEEdge * | edge, |
GNEEdge * | oppositeEdge, | ||
const Position & | pos, | ||
GNEUndoList * | undoList | ||
) |
split all edges at position by inserting one new junction
[in] | edge | The edge to be split |
[in] | oppositeEdge | The oppositeEdge to be split |
[in] | pos | The position on which to insert the new junction |
Definition at line 861 of file GNENet.cpp.
References GNEUndoList::p_begin(), GNEUndoList::p_end(), splitEdge(), SUMO_TAG_EDGE, and toString().
Referenced by GNEViewNet::onCmdSplitEdgeBidi(), and GNEViewNet::processLeftButtonPressNetwork().
void GNENet::splitJunction | ( | GNEJunction * | junction, |
bool | reconnect, | ||
GNEUndoList * | undoList | ||
) |
replace the selected junction by a list of junctions for each unique edge endpoint
Definition at line 2129 of file GNENet.cpp.
References createEdge(), createJunction(), deleteJunction(), duplicateLane(), NBNode::getDirection(), NBNode::getEndPoints(), GNEJunction::getGNEIncomingEdges(), GNEJunction::getGNEOutgoingEdges(), GNENetworkElement::getID(), GNEEdge::getLanes(), GNEJunction::getNBNode(), GNEHierarchicalElement::getParentJunctions(), GNEJunction::isValid(), GNEUndoList::p_add(), GNEUndoList::p_begin(), GNEUndoList::p_end(), retrieveEdge(), GNEEdge::setAttribute(), GNEJunction::setLogicValid(), STRAIGHT, SUMO_ATTR_ALLOW, SUMO_ATTR_FROM, SUMO_ATTR_ID, SUMO_ATTR_NUMLANES, SUMO_ATTR_TO, and WRITE_WARNING.
Referenced by GNEViewNet::onCmdSplitJunction(), and GNEViewNet::onCmdSplitJunctionReconnect().
|
staticprivateinherited |
LinkStates (Currently unused)
vector for TypeNames Initializer
Definition at line 275 of file GUIGlObject.h.
|
staticinherited |
Definition at line 67 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOViewParent::onCmdSpeedFactor(), GUISUMOViewParent::onUpdSpeedFactor(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_GUI::processGet(), and GUIViewTraffic::stopTrack().
|
protected |
Flag to check if additionals has to be saved.
Definition at line 778 of file GNENet.h.
Referenced by isAdditionalsSaved(), requireSaveAdditionals(), and saveAdditionals().
|
protected |
AttributeCarriers of net.
Definition at line 757 of file GNENet.h.
Referenced by checkJunctionPosition(), cleanInvalidCrossings(), cleanInvalidDemandElements(), cleanUnusedRoutes(), computeAndUpdate(), computeDemandElements(), computeNetwork(), deleteJunction(), enableUpdateData(), generateAdditionalID(), generateDataSetID(), generateDemandElementID(), generateEdgeTypeID(), generateShapeID(), generateTAZElementID(), getAttributeCarriers(), getDataSetIntervalMaximumEnd(), getDataSetIntervalMinimumBegin(), getNumberOfAdditionals(), getNumberOfDataSets(), getNumberOfDemandElements(), getNumberOfShapes(), getNumberOfTAZElements(), initGNEConnections(), initJunctionsAndEdges(), joinRoutes(), joinSelectedJunctions(), mergeJunctions(), netHasGNECrossings(), removeSolitaryJunctions(), replaceJunctionByGeometry(), retrieve000180AngleEdges(), retrieve180360AngleEdges(), retrieveAdditional(), retrieveAdditionals(), retrieveAttributeCarriers(), retrieveConnection(), retrieveConnections(), retrieveCrossing(), retrieveCrossings(), retrieveDataSet(), retrieveDataSets(), retrieveDemandElement(), retrieveDemandElements(), retrieveEdge(), retrieveEdges(), retrieveEdgeType(), retrieveGenericDataParameters(), retrieveGenericDatas(), retrieveJunction(), retrieveJunctions(), retrieveLanes(), retrieveShape(), retrieveShapes(), retrieveTAZElement(), retrieveTAZElements(), save(), saveAdditionals(), saveAdditionalsConfirmed(), saveDataElementsConfirmed(), saveDemandElements(), saveDemandElementsConfirmed(), saveEdgeTypes(), setViewNet(), and ~GNENet().
|
protected |
Flag to check if data elements has to be saved.
Definition at line 787 of file GNENet.h.
Referenced by isDataElementsSaved(), requireSaveDataElements(), and saveDataElements().
|
protected |
Flag to check if demand elements has to be saved.
Definition at line 784 of file GNENet.h.
Referenced by isDemandElementsSaved(), requireSaveDemandElements(), and saveDemandElements().
|
protected |
Definition at line 764 of file GNENet.h.
Referenced by createEdge(), and reserveEdgeID().
|
private |
map with the Edges and their number of lanes
Definition at line 826 of file GNENet.h.
Referenced by computeNetwork(), and retrieveLane().
|
protected |
list of edge ids for which turn-arounds must be added explicitly
Definition at line 769 of file GNENet.h.
Referenced by addExplicitTurnaround(), computeAndUpdate(), and removeExplicitTurnaround().
|
privateinherited |
full name of GL Object
Definition at line 258 of file GUIGlObject.h.
Referenced by GUIGlObject::getFullName(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
privateinherited |
The numerical id of the object.
Definition at line 249 of file GUIGlObject.h.
Referenced by GUIGlObject::getGlID(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
privateinherited |
The type of the object.
Definition at line 252 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), GUIGlObject::getType(), and GUIGlObject::GUIGlObject().
|
protected |
the rtree which contains all GUIGlObjects (so named for historical reasons)
Definition at line 748 of file GNENet.h.
Referenced by addGLObjectIntoGrid(), computeAndUpdate(), expandBoundary(), getBoundary(), getGrid(), initJunctionsAndEdges(), and removeGLObjectFromGrid().
|
protected |
Definition at line 765 of file GNENet.h.
Referenced by createJunction(), and reserveJunctionID().
|
privateinherited |
ID of GL object.
Definition at line 255 of file GUIGlObject.h.
Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().
|
protected |
whether the net needs recomputation
Definition at line 772 of file GNENet.h.
Referenced by computeAndUpdate(), computeNetwork(), isNetRecomputed(), and requireRecompute().
|
protected |
The internal netbuilder.
Definition at line 754 of file GNENet.h.
Referenced by computeAndUpdate(), getEdgeCont(), getNetBuilder(), getTLLogicCont(), initJunctionsAndEdges(), joinSelectedJunctions(), save(), saveEdgeTypes(), saveJoined(), savePlain(), selectRoundabout(), and ~GNENet().
|
protected |
Flag to check if net has to be saved.
Definition at line 775 of file GNENet.h.
Referenced by isNetSaved(), requireSaveNet(), and save().
|
privateinherited |
Parameter table windows which refer to this object.
Definition at line 261 of file GUIGlObject.h.
Referenced by GUIGlObject::addParameterTable(), GUIGlObject::removeParameterTable(), and GUIGlObject::~GUIGlObject().
|
protected |
PathCalculator instance.
Definition at line 760 of file GNENet.h.
Referenced by computeDemandElements(), getPathCalculator(), and ~GNENet().
|
protected |
Flag to check if shapes has to be saved.
Definition at line 781 of file GNENet.h.
Referenced by requireSaveTLSPrograms(), and saveTLSPrograms().
|
protected |
Flag to enable or disable update data elements after inserting or removing element in net.
Definition at line 793 of file GNENet.h.
Referenced by disableUpdateData(), enableUpdateData(), and isUpdateDataEnabled().
|
protected |
Flag to enable or disable update geometry of elements after inserting or removing element in net.
Definition at line 790 of file GNENet.h.
Referenced by computeAndUpdate(), disableUpdateGeometry(), enableUpdateGeometry(), and isUpdateGeometryEnabled().
|
protected |
The net to be notofied of about changes.
Definition at line 751 of file GNENet.h.
Referenced by computeAndUpdate(), computeDemandElements(), deleteDemandElement(), getApp(), getSelectedAttributeCarriers(), getViewNet(), requireSaveAdditionals(), requireSaveDataElements(), requireSaveDemandElements(), requireSaveTLSPrograms(), saveAdditionals(), saveDataElements(), saveDemandElements(), and setViewNet().
|
private |
the z boundary (stored in the x-coordinate), values of 0 are ignored
Definition at line 820 of file GNENet.h.
Referenced by addZValueInBoundary(), and getZBoundary().
|
staticinherited |
associates object types with strings
Definition at line 66 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().
|
staticprivate |
marker for whether the z-boundary is initialized
Definition at line 823 of file GNENet.h.
Referenced by addZValueInBoundary().