Definition
The class GridLayoutInfo defines a generic interface for accessing attributes of a grid layout for a graph G. It decouples the access of attributes from the representation of the grid layout, e.g., the grid layout might be given implicitly by a grid layout of a modified copy of G. GridLayoutInfo is used by GridCoordinateMapper.
#include < AGD/GridLayoutInfo.h >
Initialization
GridLayoutInfo | gli | initializes a grid layout info. |
Operations
int | gli.x(leda_node v) | returns the column of v in the grid layout. |
int | gli.y(leda_node v) | returns the row of v in the grid layout. |
IPolyline | gli.bends(leda_edge e) | returns the list of bend points of e in the grid layout. |
int | gli.grid_width(leda_node v) | |
returns the width of v in the grid layout. | ||
int | gli.grid_height(leda_node v) | |
returns the height of v in the grid layout. | ||
IRect | gli.get_gbbox() | returns a tight bounding box of the grid layout. |
void | gli.grid_width(leda_node v, int w) | |
sets the width of v in the grid layout to w. | ||
void | gli.grid_height(leda_node v, int h) | |
sets the height of v in the grid layout to h. |
© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13