next up previous contents index
Next: Layouts ( AGDLayout ) Up: Layout Interfaces Previous: Layout Buffers ( LayoutBuffer   Contents   Index


Layout Interface for Graph Copies ( GraphCopyLI )

Baseclasses


\begin{picture}(8,4)
\thicklines
\put(0,3){\framebox (5,1){\bf LayoutInterface...
...2){\vector(0,-1){1}}\put(3,0){\framebox (5,1){\bf GraphCopyLI}}
\end{picture}

Definition

An instance A of type GraphCopyLI is a temporary buffer for storing graphical attributes of a graph copy GC with original graph G. The width and height of each node are accessed through a layout interface A for G. The update() method assigns the computed layout to A by transforming dummy nodes in PG into bend points.

#include < AGD/GraphCopyLI.h >

Creation

GraphCopyLI A(GraphCopy& GC, LayoutInterface& A)
    creates an instance A of type GraphCopyLI initialized to a layout buffer for graph copy GC with layout interface A.

GraphCopyLI A(const GraphCopyLI& gcli)
    copy constructor.

Operations

double A.get_width(leda_node v) returns the width of the graphics of node original(v) if original(v)! = nil, 0 otherwise.

void A.set_width(leda_node v, double new_w)
    sets the width of the graphics of node original(v) to new_w if original(v)! = nil.

double A.get_height(leda_node v) returns the height of the graphics of node original(v) if original(v)! = nil, 0 otherwise.

void A.set_height(leda_node v, double new_h)
    sets the height of the graphics of node original(v) to new_h new_w if original(v)! = nil..

void A.update() assigns the stored layout to A and calls the update method of A, where A is the layout interface for the original graph G.


next up previous contents index
Next: Layouts ( AGDLayout ) Up: Layout Interfaces Previous: Layout Buffers ( LayoutBuffer   Contents   Index

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