#include <GridLayoutModule.h>

Public Member Functions | |
| PlanarGridLayoutModule () | |
| Initializes a planar grid layout module. | |
| virtual | ~PlanarGridLayoutModule () |
| void | callFixEmbed (GraphAttributes &AG, adjEntry adjExternal=0) |
| Calls the grid layout algorithm with a fixed planar embedding (general call). | |
| void | callGridFixEmbed (const Graph &G, GridLayout &gridLayout, adjEntry adjExternal=0) |
| Calls the grid layout algorithm with a fixed planar embedding (call for GridLayout). | |
Protected Member Functions | |
| virtual void | doCall (const Graph &G, GridLayout &gridLayout, IPoint &boundingBox) |
| Implements the algorithm call. | |
| virtual void | doCall (const Graph &G, adjEntry adjExternal, GridLayout &gridLayout, IPoint &boundingBox, bool fixEmbedding)=0 |
| Implements the algorithm call. | |
A planar grid layout algorithm is a grid layout algorithm that produces a crossing-free grid layout of a planar graph. It provides an additional call method for producing a planar layout with a pedefined planar embedding.
Definition at line 155 of file GridLayoutModule.h.
| ogdf::PlanarGridLayoutModule::PlanarGridLayoutModule | ( | ) | [inline] |
| virtual ogdf::PlanarGridLayoutModule::~PlanarGridLayoutModule | ( | ) | [inline, virtual] |
Definition at line 161 of file GridLayoutModule.h.
| void ogdf::PlanarGridLayoutModule::callFixEmbed | ( | GraphAttributes & | AG, | |
| adjEntry | adjExternal = 0 | |||
| ) |
Calls the grid layout algorithm with a fixed planar embedding (general call).
A derived algorithm implements the call by implementing doCall().
| AG | is the input graph; the new layout is also stored in AG. | |
| adjExternal | specifies an adjacency entry on the external face, or is set to 0 if no particular external face shall be specified. |
| void ogdf::PlanarGridLayoutModule::callGridFixEmbed | ( | const Graph & | G, | |
| GridLayout & | gridLayout, | |||
| adjEntry | adjExternal = 0 | |||
| ) |
Calls the grid layout algorithm with a fixed planar embedding (call for GridLayout).
A derived algorithm implements the call by implementing doCall().
| G | is the input graph. | |
| gridLayout | is assigned the computed grid layout. | |
| adjExternal | specifies an adjacency entry (of G) on the external face, or is set to 0 if no particular external face shall be specified. |
Reimplemented in ogdf::GridLayoutPlanRepModule.
| virtual void ogdf::PlanarGridLayoutModule::doCall | ( | const Graph & | G, | |
| GridLayout & | gridLayout, | |||
| IPoint & | boundingBox | |||
| ) | [inline, protected, virtual] |
Implements the algorithm call.
| G | is the input graph. | |
| gridLayout | is assigned the computed grid layout. | |
| boundingBox | returns the bounding box of the grid layout. The lower left corner of the bounding box is always (0,0), thus this IPoint defines the upper right corner as well as the width and height of the grid layout. |
Implements ogdf::GridLayoutModule.
Definition at line 196 of file GridLayoutModule.h.
| virtual void ogdf::PlanarGridLayoutModule::doCall | ( | const Graph & | G, | |
| adjEntry | adjExternal, | |||
| GridLayout & | gridLayout, | |||
| IPoint & | boundingBox, | |||
| bool | fixEmbedding | |||
| ) | [protected, pure virtual] |
Implements the algorithm call.
A derived algorithm must implement this method and return the computed grid layout in gridLayout.
| G | is the input graph. | |
| adjExternal | is an adjacency entry on the external face, or 0 if no external face is specified. | |
| gridLayout | is assigned the computed grid layout. | |
| boundingBox | returns the bounding box of the grid layout. The lower left corner of the bounding box is always (0,0), thus this IPoint defines the upper right corner as well as the width and height of the grid layout. | |
| fixEmbedding | determines if the input graph is embedded and that embedding has to be preserved (true), or if an embedding needs to be computed (false). |
Implemented in ogdf::GridLayoutPlanRepModule, ogdf::PlanarDrawLayout, and ogdf::PlanarStraightLayout.