60 int toGrid(
double x)
const {
return cGridScale *
int(m_fMapping * x + 0.5); }
63 double toDouble(
int i)
const {
return (i / cGridScale) / m_fMapping; }
75 const int&
width(
node v)
const {
return m_gridWidth[v]; }
80 const int&
height(
node v)
const {
return m_gridWidth[v]; }
Declaration of class GridLayout.
Declaration of orthogonal representation of planar graphs.
Declaration of a base class for planar representations of graphs and cluster graphs.
Representation of a graph's grid layout.
Extends GridLayout by a grid mapping mechanism.
const int & height(node v) const
NodeArray< int > m_gridHeight
const NodeArray< int > & width() const
static const int cGridScale
scaling to allow correct edge anchors
const int & width(node v) const
int toGrid(double x) const
NodeArray< int > & width()
GridLayoutMapped(const PlanRep &PG, const OrthoRep &OR, double separation, double cOverhang, int fineness=4)
NodeArray< int > m_gridWidth
NodeArray< int > & height()
const NodeArray< int > & height() const
void remap(Layout &drawing) override
Transforms the grid layout to a layout.
double toDouble(int i) const
Stores a layout of a graph (coordinates of nodes, bend points of edges).
Dynamic arrays indexed with nodes.
Class for the representation of nodes.
Orthogonal representation of an embedded graph.
Planarized representations (of a connected component) of a graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.