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]; }
Includes declaration of graph class.
Declaration of class GridLayout.
Basic declarations, included by all source files.
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).
Class for the representation of nodes.
Orthogonal representation of an embedded graph.
Planarized representations (of a connected component) of a graph.
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),...
The namespace for all OGDF objects.