Extends GridLayout by a grid mapping mechanism. More...
#include <ogdf/basic/GridLayoutMapped.h>
Inheritance diagram for ogdf::GridLayoutMapped:Public Member Functions | |
| GridLayoutMapped (const PlanRep &PG, const OrthoRep &OR, double separation, double cOverhang, int fineness=4) | |
| const NodeArray< int > & | height () const |
| NodeArray< int > & | height () |
| const int & | height (node v) const |
| int & | height (node v) |
| void | remap (Layout &drawing) override |
| Transforms the grid layout to a layout. More... | |
| double | toDouble (int i) const |
| int | toGrid (double x) const |
| const NodeArray< int > & | width () const |
| NodeArray< int > & | width () |
| const int & | width (node v) const |
| int & | width (node v) |
Public Member Functions inherited from ogdf::GridLayout | |
| GridLayout () | |
| Creates an instance of a grid layout (associated with no graph). More... | |
| GridLayout (const Graph &G) | |
Creates an instance of a grid layout associated with G. More... | |
| virtual | ~GridLayout () |
| Destruction. More... | |
| const EdgeArray< IPolyline > & | bends () const |
| Returns a reference to the array storing the bend points of edges. More... | |
| EdgeArray< IPolyline > & | bends () |
| Returns a reference to the array storing the bend points of edges. More... | |
| const IPolyline & | bends (edge e) const |
Returns a reference to the bend point list of edge e. More... | |
| IPolyline & | bends (edge e) |
Returns a reference to the bend point list of edge e. More... | |
| bool | checkLayout () |
| Checks if the grid layout is reasonable. More... | |
| void | compactAllBends () |
| Removes all unnecessary bends. More... | |
| void | computeBoundingBox (int &xmin, int &xmax, int &ymin, int &ymax) |
| Computes the bounding box of the grid layout. More... | |
| IPolyline | getCompactBends (edge e) const |
Returns the bend point list of edge e without unnecessary bends. More... | |
| void | init (const Graph &G) |
Initializes the grid layout for graph G. More... | |
| void | init () |
| Initializes the grid layout for no graph (frees memory). More... | |
| int | manhattanEdgeLength (edge e) const |
| int | maxManhattanEdgeLength () const |
| int | numberOfBends () const |
| Computes the total number of bends in the grid layout. More... | |
| IPolyline | polyline (edge e) const |
Returns the polyline of edge e (including start and end point!). More... | |
| double | totalEdgeLength () const |
| Computes the total (euclidean) edge length of the grid layout. More... | |
| int | totalManhattanEdgeLength () const |
| Computes the total manhattan edge length of the grid layout. More... | |
| const NodeArray< int > & | x () const |
| Returns a reference to the array storing the x-coordinates of nodes. More... | |
| NodeArray< int > & | x () |
| Returns a reference to the array storing the x-coordinates of nodes. More... | |
| const int & | x (node v) const |
Returns a reference to the x-coordinate of node v. More... | |
| int & | x (node v) |
Returns a reference to the x-coordinate of node v. More... | |
| const NodeArray< int > & | y () const |
| Returns a reference to the array storing the y-coordinates of nodes. More... | |
| NodeArray< int > & | y () |
| Returns a reference to the array storing the y-coordinates of nodes. More... | |
| const int & | y (node v) const |
Returns a reference to the y-coordinate of node v. More... | |
| int & | y (node v) |
Returns a reference to the y-coordinate of node v. More... | |
Private Attributes | |
| double | m_fMapping |
| NodeArray< int > | m_gridHeight |
| NodeArray< int > | m_gridWidth |
| const PlanRep * | m_pPG |
Static Private Attributes | |
| static const int | cGridScale |
| scaling to allow correct edge anchors More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ogdf::GridLayout | |
| static double | euclideanDistance (const IPoint &ip1, const IPoint &ip2) |
| static int | manhattanDistance (const IPoint &ip1, const IPoint &ip2) |
Protected Attributes inherited from ogdf::GridLayout | |
| EdgeArray< IPolyline > | m_bends |
| The bend points of edges. More... | |
| NodeArray< int > | m_x |
| The x-coordinates of nodes. More... | |
| NodeArray< int > | m_y |
| The y-coordinates of nodes. More... | |
Extends GridLayout by a grid mapping mechanism.
Definition at line 46 of file GridLayoutMapped.h.
| ogdf::GridLayoutMapped::GridLayoutMapped | ( | const PlanRep & | PG, |
| const OrthoRep & | OR, | ||
| double | separation, | ||
| double | cOverhang, | ||
| int | fineness = 4 |
||
| ) |
|
inline |
Definition at line 79 of file GridLayoutMapped.h.
|
inline |
Definition at line 81 of file GridLayoutMapped.h.
|
inline |
Definition at line 87 of file GridLayoutMapped.h.
|
inline |
Definition at line 89 of file GridLayoutMapped.h.
|
overridevirtual |
Transforms the grid layout to a layout.
This implementation only copies the grid coordinates to drawing; the derived class GridLayoutMapped performs the actual transformation of coordinates.
Reimplemented from ogdf::GridLayout.
|
inline |
Definition at line 70 of file GridLayoutMapped.h.
|
inline |
Definition at line 65 of file GridLayoutMapped.h.
|
inline |
Definition at line 75 of file GridLayoutMapped.h.
|
inline |
Definition at line 77 of file GridLayoutMapped.h.
|
inline |
Definition at line 83 of file GridLayoutMapped.h.
|
inline |
Definition at line 85 of file GridLayoutMapped.h.
|
staticprivate |
scaling to allow correct edge anchors
Definition at line 49 of file GridLayoutMapped.h.
|
private |
Definition at line 97 of file GridLayoutMapped.h.
|
private |
Definition at line 94 of file GridLayoutMapped.h.
|
private |
Definition at line 93 of file GridLayoutMapped.h.
|
private |
Definition at line 96 of file GridLayoutMapped.h.