next up previous contents index
Next: Grid Concept for Orthogonal Up: Implementation of Layout Algorithms Previous: Grid Concept for Graph   Contents   Index


Grid Concept for Plane Graph Copies ( PlaneGraphCopyGridConcept )

Definition

The class PlaneGraphCopyGridConcept represents an implementation concept for grid layout algorithms which work on a planar map and access the grid layout via an object of type GridLayout. The graph is stored as a plane graph copy PG, which can be modified by the algorithm. The following transformations are performed by the update functions:

A computed bounding box can be passed to the grid concept using set_bbox(). Otherwise, the bounding box is computed on demand.

#include < AGD/PlaneGraphCopyGridConcept.h >

Operations

PlaneGraphCopyGridConcept implements the constructors and operations which are required for template argument GRID_CONCEPT of GridLayoutModuleImpl. Furthermore, the following operations are provided:

PlaneGraphCopy& C.get_graph() returns the plane graph copy PG.

leda_face C.get_exterior_face() returns the exterior face of PG or nil.

GridLayout& C.get_layout() returns the grid layout of G.

void C.set_zero_size() sets the grid width and height of all nodes to 0.

void C.set_bbox(const IRect& bbox)
    sets the bounding box of the grid layout to bbox.


next up previous contents index
Next: Grid Concept for Orthogonal Up: Implementation of Layout Algorithms Previous: Grid Concept for Graph   Contents   Index

© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13