Baseclasses
Definition
The class ShapeModule extends the functionality of a TopologyModule. For orthogonal drawings, one might be interested in not only the topology but also the shape of the drawing. An instance of class ShapeModule takes as input an orthogonal drawing (or just a sketch of it) and produces as output an OrthogonalRepresenation. This might be used as input for a CompactionModule.
Input and Output Parameters
input parameter: | graph |
in![]() |
layout |
in![]() |
|
output parameter: | orthogonal representation |
out![]() ![]() |
#include < AGD/ShapeModule.h >
Initialization
ShapeModule | S | initializes a shape module. |
Operations
Standard Interface
bool | S.check(const leda_graph& G, AgdKey& p) | |
returns true if G satisfies the precondition of S. Otherwise, false is returned and p contains a property that is not satisfied. | ||
OrthogonalRepresentation& | S.call(const leda_graph& G, const LayoutInterface& L) | |
calls the ShapeModule for LayoutInterface L and its underlying graph. Eventually, edges must be added in order to make the graph a map. These edges will be contained in the list M. |
Options
bool | S.get_round() | returns the value of the rounding option. If set, each scanned angle is set to the closest multiple of 90o. |
void | S.set_round(bool r) | sets the parameter round to r |
© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13