#include <ogdf/basic/GridLayoutMapped.h>
Public Member Functions | |
| GridLayoutMapped (const PlanRep &PG, const OrthoRep &OR, double separation, double cOverhang, int fineness=4) | |
| void | remap (Layout &drawing) |
| Transforms the grid layout to a layout write grid layout to a layout. | |
| int | toGrid (double x) const |
| double | toDouble (int i) const |
| const NodeArray< int > & | width () const |
| NodeArray< int > & | width () |
| const NodeArray< int > & | height () const |
| NodeArray< int > & | height () |
| const int & | width (node v) const |
| int & | width (node v) |
| const int & | height (node v) const |
| int & | height (node v) |
Private Types | |
| enum | { cGridScale = 2 } |
Private Attributes | |
| NodeArray< int > | m_gridWidth |
| NodeArray< int > | m_gridHeight |
| const PlanRep * | m_pPG |
| double | m_fMapping |
Definition at line 75 of file GridLayoutMapped.h.
anonymous enum [private] |
Definition at line 78 of file GridLayoutMapped.h.
| ogdf::GridLayoutMapped::GridLayoutMapped | ( | const PlanRep & | PG, | |
| const OrthoRep & | OR, | |||
| double | separation, | |||
| double | cOverhang, | |||
| int | fineness = 4 | |||
| ) |
| const NodeArray<int>& ogdf::GridLayoutMapped::height | ( | ) | const [inline] |
Definition at line 108 of file GridLayoutMapped.h.
| const int& ogdf::GridLayoutMapped::height | ( | node | v | ) | const [inline] |
Definition at line 116 of file GridLayoutMapped.h.
| int& ogdf::GridLayoutMapped::height | ( | node | v | ) | [inline] |
Definition at line 118 of file GridLayoutMapped.h.
| NodeArray<int>& ogdf::GridLayoutMapped::height | ( | ) | [inline] |
Definition at line 110 of file GridLayoutMapped.h.
| void ogdf::GridLayoutMapped::remap | ( | Layout & | drawing | ) | [virtual] |
Transforms the grid layout to a layout write 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.
| double ogdf::GridLayoutMapped::toDouble | ( | int | i | ) | const [inline] |
Definition at line 99 of file GridLayoutMapped.h.
| int ogdf::GridLayoutMapped::toGrid | ( | double | x | ) | const [inline] |
Definition at line 94 of file GridLayoutMapped.h.
| NodeArray<int>& ogdf::GridLayoutMapped::width | ( | ) | [inline] |
Definition at line 106 of file GridLayoutMapped.h.
| const NodeArray<int>& ogdf::GridLayoutMapped::width | ( | ) | const [inline] |
Definition at line 104 of file GridLayoutMapped.h.
| int& ogdf::GridLayoutMapped::width | ( | node | v | ) | [inline] |
Definition at line 114 of file GridLayoutMapped.h.
| const int& ogdf::GridLayoutMapped::width | ( | node | v | ) | const [inline] |
Definition at line 112 of file GridLayoutMapped.h.
double ogdf::GridLayoutMapped::m_fMapping [private] |
Definition at line 126 of file GridLayoutMapped.h.
NodeArray<int> ogdf::GridLayoutMapped::m_gridHeight [private] |
Definition at line 123 of file GridLayoutMapped.h.
NodeArray<int> ogdf::GridLayoutMapped::m_gridWidth [private] |
Definition at line 122 of file GridLayoutMapped.h.
const PlanRep* ogdf::GridLayoutMapped::m_pPG [private] |
Definition at line 125 of file GridLayoutMapped.h.