61 explicit Layout(
const Graph& G) : m_x(G, 0), m_y(G, 0), m_bends(G) { }
86 const double&
x(
node v)
const {
return m_x[v]; }
91 double&
x(
node v) {
return m_x[v]; }
96 const double&
y(
node v)
const {
return m_y[v]; }
101 double&
y(
node v) {
return m_y[v]; }
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declaration of graph copy classes.
Dynamic arrays indexed with edges.
Class for the representation of edges.
Polylines with PointType points.
Copies of graphs supporting edge splitting.
Data type for general directed graphs (adjacency list representation).
Stores a layout of a graph (coordinates of nodes, bend points of edges).
DPolyline & bends(edge e)
Returns the bend point list of edge e.
const NodeArray< double > & y() const
Returns a reference to the array storing y-coordinates of nodes.
EdgeArray< DPolyline > m_bends
The bend points of edges.
const DPolyline & bends(edge e) const
Returns the bend point list of edge e.
NodeArray< double > & x()
Returns a reference to the array storing x-coordinates of nodes.
double & y(node v)
Returns the y-coordinate of node v.
void computePolylineClear(PlanRep &PG, edge eOrig, DPolyline &dpl)
Returns the polyline of edge eOrig in dpl and clears the bend points of the copies.
Layout()
Creates a layout associated with no graph.
NodeArray< double > m_y
The y-coordinates of nodes.
NodeArray< double > m_x
The x-coordinates of nodes.
double & x(node v)
Returns the x-coordinate of node v.
void computePolyline(GraphCopy &GC, edge eOrig, DPolyline &dpl) const
Returns the polyline of edge eOrig in dpl.
Layout(const Graph &G)
Creates a layout associated with graph G.
const double & x(node v) const
Returns the x-coordinate of node v.
const double & y(node v) const
Returns the y-coordinate of node v.
const NodeArray< double > & x() const
Returns a reference to the array storing x-coordinates of nodes.
NodeArray< double > & y()
Returns a reference to the array storing y-coordinates of nodes.
DPoint computeBoundingBox(PlanRep &PG) const
Computes the bounding box of the layout, which is a drawing of PG.
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
Planarized representations (of a connected component) of a graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.