85 double radialToX(
double radius,
double phi);
94 double radialToY(
double radius,
double phi);
114 void createChequerBoard(
int numX,
int numY,
double spaceX,
double spaceY,
double xAttachLength,
double yAttachLength);
134 void createSpiderWeb(
int numRadDiv,
int numCircles,
double spaceRad,
bool hasCenter,
double attachLength);
std::list< NGEdge * > NGEdgeList
A list of edges (edge pointers)
std::list< NGNode * > NGNodeList
A list of nodes (node pointers)
Instance responsible for building networks.
A netgen-representation of an edge.
The class storing the generated network.
double radialToX(double radius, double phi)
Returns the x-position resulting from the given radius and angle.
int myLastID
The last ID given to node or link.
void toNB() const
Converts the stored network into its netbuilder-representation.
NGNet & operator=(const NGNet &)
Invalidated assignment operator.
void connect(NGNode *node1, NGNode *node2)
Connects both nodes with two edges, one for each direction.
void createChequerBoard(int numX, int numY, double spaceX, double spaceY, double xAttachLength, double yAttachLength)
Creates a grid network.
void add(NGNode *node)
Adds the given node to the network.
int nodeNo() const
Returns the number of stored nodes.
void createSpiderWeb(int numRadDiv, int numCircles, double spaceRad, bool hasCenter, double attachLength)
Creates a spider network.
double radialToY(double radius, double phi)
Returns the y-position resulting from the given radius and angle.
NGNode * findNode(int xPos, int yPos)
Returns the node at the given position.
std::string alphabeticalCode(int i, int iMax)
return a letter code for the given integer index
std::string getNextFreeID()
Returns the next free id.
static Distribution_Parameterized getDistribution(const std::string &option)
get distribution from option
NGNodeList myNodeList
The list of nodes.
const bool myAlphaIDs
Whether to use alphanumericalIDs.
NBNetBuilder & myNetBuilder
The builder used to build NB*-structures.
NGNet(const NGNet &)
Invalidated copy constructor.
NGEdgeList myEdgeList
The list of links.
A netgen-representation of a node.