93 double radialToX(
double radius,
double phi);
102 double radialToY(
double radius,
double phi);
122 void createChequerBoard(
int numX,
int numY,
double spaceX,
double spaceY,
double attachLength,
bool alphaIDs);
142 void createSpiderWeb(
int numRadDiv,
int numCircles,
double spaceRad,
bool hasCenter);
NBNetBuilder & myNetBuilder
The builder used to build NB*-structures.
NGNet(NBNetBuilder &nb)
Constructor.
A netgen-representation of an edge.
double radialToX(double radius, double phi)
Returns the x-position resulting from the given radius and angle.
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.
double radialToY(double radius, double phi)
Returns the y-position resulting from the given radius and angle.
int nodeNo() const
Returns the number of stored nodes.
std::list< NGEdge * > NGEdgeList
A list of edges (edge pointers)
NGEdgeList myEdgeList
The list of links.
NGNet & operator=(const NGNet &)
Invalidated assignment operator.
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.
void createSpiderWeb(int numRadDiv, int numCircles, double spaceRad, bool hasCenter)
Creates a spider network.
void createChequerBoard(int numX, int numY, double spaceX, double spaceY, double attachLength, bool alphaIDs)
Creates a grid network.
A netgen-representation of a node.
void add(NGNode *node)
Adds the given node to the network.