NBNetBuilder & myNetBuilder
The builder used to build NB*-structures.
NGNet(NBNetBuilder &nb)
Constructor.
A netgen-representation of an edge.
void connect(NGNode *node1, NGNode *node2)
Connects both nodes with two edges, one for each direction.
NGNode * findNode(int xPos, int yPos)
Returns the node at the given position.
void toNB() const
Converts the stored network into its netbuilder-representation.
void createChequerBoard(int numX, int numY, SUMOReal spaceX, SUMOReal spaceY, SUMOReal attachLength)
Creates a grid network.
std::list< NGEdge * > NGEdgeList
A list of edges (edge pointers)
NGEdgeList myEdgeList
The list of links.
NGNet & operator=(const NGNet &)
Invalidated assignment operator.
void createSpiderWeb(int numRadDiv, int numCircles, SUMOReal spaceRad, bool hasCenter)
Creates a spider network.
SUMOReal radialToX(SUMOReal radius, SUMOReal phi)
Returns the x-position resulting from the given radius and angle.
size_t nodeNo() const
Returns the number of stored nodes.
SUMOReal radialToY(SUMOReal radius, SUMOReal phi)
Returns the y-position resulting from the given radius and angle.
std::list< NGNode * > NGNodeList
A list of nodes (node pointers)
std::string getNextFreeID()
Returns the next free id.
NGNodeList myNodeList
The list of nodes.
The class storing the generated network.
int myLastID
The last ID given to node or link.
Instance responsible for building networks.
A netgen-representation of a node.
void add(NGNode *node)
Adds the given node to the network.