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.
void toNB() const
Converts the stored network into its netbuilder-representation.
NGNode * findNode(int xPos, int yPos)
Returns the node at the given position.
int nodeNo() const
Returns the number of stored nodes.
std::list< NGEdge * > NGEdgeList
A list of edges (edge pointers)
void createChequerBoard(int numX, int numY, SUMOReal spaceX, SUMOReal spaceY, SUMOReal attachLength, bool alphaIDs)
Creates a grid network.
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.
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.