62 void remap(
Layout &drawing)
override;
66 return cGridScale*int(m_fMapping * x + 0.5);
71 return (i/cGridScale) / m_fMapping;
83 const int &
width(
node v)
const {
return m_gridWidth[v]; }
87 const int &
height(
node v)
const {
return m_gridWidth[v]; }
const NodeArray< int > & width() const
Representation of a graph's grid layout.
NodeArray< int > & height()
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Declaration of orthogonal representation of planar graphs.
Extends GridLayout by a grid mapping mechanism.
Orthogonal representation of an embedded graph.
Declaration of a base class for planar representations of graphs and cluster graphs.
int toGrid(double x) const
const int & width(node v) const
Declaration of class GridLayout.
static const int cGridScale
scaling to allow correct edge anchors
Class for the representation of nodes.
double toDouble(int i) const
NodeArray< int > m_gridWidth
const NodeArray< int > & height() const
NodeArray< int > m_gridHeight
NodeArray< int > & width()
const int & height(node v) const
The namespace for all OGDF objects.
Planarized representations (of a connected component) of a graph.
Stores a layout of a graph (coordinates of nodes, bend points of edges).