next up previous contents index
Next: Augmentation Up: Implementation of Layout Algorithms Previous: Implementation of Clustergraph Grid   Contents   Index


Grid Concept for Plane Cluster Graph Copies ( CGPlaneGraphCopyGridConcept )

Definition

The class CGPlaneGraphCopyGridConcept represents an implementation concept for clustergraph grid layout algorithms which work on a planar map and access the clustergraph grid layout via an object of type CGGridLayout. The graph is stored as a plane clustergraph copy PCG, 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/CGPlaneGraphCopyGridConcept.h >

Operations

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

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

PlaneClusterGraphCopy& C.get_clustergraph() returns the plane clustergraph copy PCG.

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: Augmentation Up: Implementation of Layout Algorithms Previous: Implementation of Clustergraph Grid   Contents   Index

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