 |
Open Graph Drawing Framework |
v. 2022.02 (Dogwood)
|
|
|
Go to the documentation of this file.
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]; }
The namespace for all OGDF objects.
Planarized representations (of a connected component) of a graph.
const NodeArray< int > & width() const
NodeArray< int > m_gridWidth
Declaration of a base class for planar representations of graphs and cluster graphs.
const int & height(node v) const
Stores a layout of a graph (coordinates of nodes, bend points of edges).
NodeArray< int > & height()
const int & width(node v) const
Declaration of orthogonal representation of planar graphs.
Orthogonal representation of an embedded graph.
NodeArray< int > m_gridHeight
const NodeArray< int > & height() const
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
NodeArray< int > & width()
double toDouble(int i) const
static const int cGridScale
scaling to allow correct edge anchors
Representation of a graph's grid layout.
Extends GridLayout by a grid mapping mechanism.
Class for the representation of nodes.
Declaration of class GridLayout.
int toGrid(double x) const