21 #ifndef NBNetBuilder_h 22 #define NBNetBuilder_h 137 void compute(
OptionsCont& oc,
const std::set<std::string>& explicitTurnarounds = std::set<std::string>(),
bool mayAddOrRemove =
true);
NBNetBuilder()
Constructor.
void setHaveNetworkCrossings(bool value)
enable crossing in networks
NBTypeCont myTypeCont
The used container for street types.
NBPTStopCont myPTStopCont
The used container for pt stops.
ShapeContainer & getShapeCont()
NBTypeCont & getTypeCont()
Returns a reference to the type container.
static bool transformCoordinate(Position &from, bool includeInBoundary=true, GeoConvHelper *from_srs=0)
transforms loaded coordinates handles projections, offsets (using GeoConvHelper) and import of height...
void mirrorX()
mirror the network along the X-axis
A container for traffic light definitions and built programs.
~NBNetBuilder()
Destructor.
A container for districts.
A NBNetBuilder extended by visualisation and editing capabilities.
NBPTStopCont & getPTStopCont()
Returns a reference to the pt stop container.
NBPTLineCont & getPTLineCont()
Returns a reference to the pt line container.
static bool transformCoordinates(PositionVector &from, bool includeInBoundary=true, GeoConvHelper *from_srs=0)
Storage for geometrical objects.
const std::string & getID() const
Returns the id.
NBParkingCont & getParkingCont()
NBNetBuilder & operator=(const NBNetBuilder &s)
invalidated assignment operator
void applyOptions(OptionsCont &oc)
Initialises the storage by applying given options.
static methods for processing the coordinates conversion for the current net
A point in 2D or 3D with translation and scaling methods.
NBEdgeCont & getEdgeCont()
NBEdgeCont myEdgeCont
The used container for edges.
int operator()(const NBNode *n1, const NBNode *n2) const
selection operator
bool myNetworkHaveCrossings
flag to indicate that network has crossings
by_id_sorter()
constructor
NBTrafficLightLogicCont myTLLCont
The used container for traffic light logics.
Storage for edges, including some functionality operating on multiple edges.
Sorts nodes by their ids.
bool haveNetworkCrossings()
notify about style of loaded network (Without Crossings)
void moveToOrigin(GeoConvHelper &geoConvHelper, bool lefthand)
shift network so its lower left corner is at 0,0
NBNodeCont & getNodeCont()
Returns a reference to the node container.
Instance responsible for building networks.
static bool runningNetedit()
whether netbuilding takes place in the context of NETEDIT
A storage for options typed value containers)
NBTrafficLightLogicCont & getTLLogicCont()
Returns a reference to the traffic light logics container.
Represents a single node (junction) during network building.
NBDistrictCont myDistrictCont
The used container for districts.
Static storage of an output device and its base (abstract) implementation.
void compute(OptionsCont &oc, const std::set< std::string > &explicitTurnarounds=std::set< std::string >(), bool mayAddOrRemove=true)
Performs the network building steps.
Container for nodes during the netbuilding process.
NBParkingCont myParkingCont
NBNodeCont myNodeCont
The used container for nodes.
NBDistrictCont & getDistrictCont()
Returns a reference the districts container.
ShapeContainer myShapeCont
container for loaded polygon data
NBPTLineCont myPTLineCont
The used container for pt stops.
A storage for available types of edges.