#include <ogdf/misclayout/BertaultLayout.h>
|
class | BertaultSections |
| The sections associated with each node. More...
|
|
class | CCElement |
| Objects of this class are members of the containment heirarchy made in preprocessing stage of ImPrEd. More...
|
|
struct | proj |
| a structure which stores the projection of a node on an edge More...
|
|
|
void | compute_I (node *v, edge *e, GraphAttributes &AG) |
| Computes the projection of node v on the edge (a,b) More...
|
|
void | f_Edge (node *v, edge *e, GraphAttributes &AG) |
| Calculates the repulsive force on node v due to the edge on which node i lies and adds it to total force on v. More...
|
|
void | f_Node_Attractive (node *v, node *j, GraphAttributes &AG) |
| Calculates the attractive force on node v due to node j and adds it to total force on v. More...
|
|
void | f_Node_Repulsive (node *v, node *j, GraphAttributes &AG) |
| Calculates the repulsive force on node v due to node j and adds it to total force on v. More...
|
|
bool | i_On_Edge (edge *e, GraphAttributes &AG) |
| Returns true if node i lies on the edge (a,b) More...
|
|
void | move (node *v, GraphAttributes &AG) |
| Moves the node v according to the forces Fx and Fy on it. Also ensures that movement is within the respective zones. More...
|
|
void | r_Calc_On_Edge (node *v, edge *e, GraphAttributes &AG) |
| Calculates the radii of the zones of node v if node i lies on edge (a,b) More...
|
|
void | r_Calc_Outside_Edge (node *v, edge *e, GraphAttributes &AG) |
| Calculates the radii of the zones of node v if node i does not lie on edge (a,b) More...
|
|
|
void | compute (CCElement *element, PlanRep &PG, GraphAttributes &AG1, GraphCopy &G1) |
| Computes the surrounding edges from the data calculated so far. More...
|
|
int | contained (CCElement *ele1, CCElement *ele2, GraphAttributes &PAG, PlanRep &PG) |
| Checks if the first connected component is within the second one. Returns -1 if not contained. If contained, returns the index of the face of the second connected component which contains it. More...
|
|
void | crossingPlanarize (GraphAttributes &AG) |
| Inserts a node at each edge crossing in a GraphCopy and assigns weights to the new edges formed. More...
|
|
int | insert (CCElement *new1, CCElement *node, GraphAttributes &PAG, PlanRep &PG) |
| Insert method for the data structure which stores the heirarchy of containment of Connected Components. More...
|
|
void | labelling (GraphAttributes &AG) |
| labels the edges with weights which aids in surrounding edge computation More...
|
|
void | preprocess (GraphAttributes &AG) |
| preprocessing for ImPrEd More...
|
|
Definition at line 52 of file BertaultLayout.h.
◆ BertaultLayout() [1/3]
ogdf::BertaultLayout::BertaultLayout |
( |
| ) |
|
Constructor, sets options to default values.
◆ ~BertaultLayout()
ogdf::BertaultLayout::~BertaultLayout |
( |
| ) |
|
◆ BertaultLayout() [2/3]
ogdf::BertaultLayout::BertaultLayout |
( |
double |
length, |
|
|
int |
number |
|
) |
| |
Constructor, with user defined values for required length and number of iterations.
◆ BertaultLayout() [3/3]
ogdf::BertaultLayout::BertaultLayout |
( |
int |
number | ) |
|
|
explicit |
Constructor, with user defined values for number of iterations.
◆ call()
The main call to the algorithm. AG should have nodeGraphics and EdgeGraphics attributes enabled.
Implements ogdf::LayoutModule.
◆ compute()
Computes the surrounding edges from the data calculated so far.
◆ compute_I()
Computes the projection of node v on the edge (a,b)
◆ contained()
Checks if the first connected component is within the second one. Returns -1 if not contained. If contained, returns the index of the face of the second connected component which contains it.
◆ crossingPlanarize()
Inserts a node at each edge crossing in a GraphCopy and assigns weights to the new edges formed.
◆ edgeCrossings()
Calculates the edge crossings in the graph corresponding to AG. Node attributes required.
◆ edgelength()
Calculates the normalised standard deviation of edge lengths in the graph corresponding to AG. Node attributes required.
◆ f_Edge()
Calculates the repulsive force on node v due to the edge on which node i lies and adds it to total force on v.
◆ f_Node_Attractive()
Calculates the attractive force on node v due to node j and adds it to total force on v.
◆ f_Node_Repulsive()
Calculates the repulsive force on node v due to node j and adds it to total force on v.
◆ i_On_Edge()
Returns true if node i lies on the edge (a,b)
◆ initPositions()
Set the initPositions of nodes.
Must for graphs without node attributes c accepts character arguments: 'm' for Grid-like Layout of nodes 'c' for arranging nodes in concentric circles 'r' for random arrangement of nodes
◆ insert()
Insert method for the data structure which stores the heirarchy of containment of Connected Components.
◆ iterno() [1/2]
int ogdf::BertaultLayout::iterno |
( |
| ) |
|
|
inline |
◆ iterno() [2/2]
void ogdf::BertaultLayout::iterno |
( |
int |
no | ) |
|
|
inline |
Sets the number of iterations. If no
<= 0, 10*n will be used.
Definition at line 73 of file BertaultLayout.h.
◆ labelling()
labels the edges with weights which aids in surrounding edge computation
◆ move()
Moves the node v according to the forces Fx and Fy on it. Also ensures that movement is within the respective zones.
◆ nodeDistribution()
Gives a measure of the node distribution in the graph corresponding to AG. The lesser the value, the more uniform the distribution. Node attributes required.
◆ preprocess()
◆ r_Calc_On_Edge()
Calculates the radii of the zones of node v if node i lies on edge (a,b)
◆ r_Calc_Outside_Edge()
Calculates the radii of the zones of node v if node i does not lie on edge (a,b)
◆ reqlength() [1/2]
double ogdf::BertaultLayout::reqlength |
( |
| ) |
|
|
inline |
◆ reqlength() [2/2]
void ogdf::BertaultLayout::reqlength |
( |
double |
length | ) |
|
|
inline |
Sets the required length. If length
<= 0, the average edge length will be used.
Definition at line 80 of file BertaultLayout.h.
◆ setImpred()
void ogdf::BertaultLayout::setImpred |
( |
bool |
option | ) |
|
|
inline |
◆ F_x
◆ F_y
◆ impred
bool ogdf::BertaultLayout::impred |
|
private |
◆ iter_no
int ogdf::BertaultLayout::iter_no |
|
private |
◆ proj
◆ req_length
double ogdf::BertaultLayout::req_length |
|
private |
◆ sect
◆ surr
Array2D<bool> ogdf::BertaultLayout::surr |
|
private |
◆ userIterNo
double ogdf::BertaultLayout::userIterNo |
|
private |
◆ userReqLength
double ogdf::BertaultLayout::userReqLength |
|
private |
The documentation for this class was generated from the following file: