|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
60 void remap(
Layout& drawing)
override;
63 int toGrid(
double x)
const {
return cGridScale * int(m_fMapping * x + 0.5); }
66 double toDouble(
int i)
const {
return (i / cGridScale) / m_fMapping; }
78 const int&
width(
node v)
const {
return m_gridWidth[v]; }
83 const int&
height(
node v)
const {
return m_gridWidth[v]; }
The namespace for all OGDF objects.
Includes declaration of graph class.
Planarized representations (of a connected component) of a graph.
const NodeArray< int > & width() const
NodeArray< int > m_gridWidth
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
Orthogonal representation of an embedded graph.
RegisteredArray for nodes, edges and adjEntries of a graph.
NodeArray< int > m_gridHeight
Basic declarations, included by all source files.
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