64 explicit Layout(
const Graph& G) : m_x(G, 0), m_y(G, 0), m_bends(G) { }
89 const double&
x(
node v)
const {
return m_x[v]; }
94 double&
x(
node v) {
return m_x[v]; }
99 const double&
y(
node v)
const {
return m_y[v]; }
104 double&
y(
node v) {
return m_y[v]; }
Includes declaration of graph class.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
Basic declarations, included by all source files.
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.
Class for the representation of nodes.
Planarized representations (of a connected component) of a graph.
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
RegisteredArray for nodes, edges and adjEntries of a graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Declaration of memory manager for allocating small pieces of memory.
The namespace for all OGDF objects.