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