31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

17.8 Geometry Windows ( GeoWin )<br />

1. Definition<br />

An instance of data type GeoWin is an editor for sets of geometric objects. It can<br />

be used for the visualization of result and progression of geometric algorithms. GeoWin<br />

provides an interactive interface and a programming interface to visualize and manipulate<br />

geometric objects and data structures.<br />

Sets of geometric objects are maintained in so-called scenes.<br />

Scenes<br />

Scenes are instances of the various scene data types supported by GeoWin. <strong>The</strong>y are used<br />

to store collections of geometric objects and attributes of the objects and collections.<br />

Furthermore the scene classes have to provide functionality for GeoWin to handle the<br />

geometric objects of a scene.<br />

Each scene stores geometric objects in a container (a <strong>LEDA</strong>-list or STL-list). We call<br />

these geometric objects stored in a container of a scene the contents of a scene. <strong>The</strong> scenes<br />

and their contents can be manipulated by the interactive interface and the programming<br />

interface of GeoWin.<br />

With every scene a set of attributes is associated. Most of them describe the visual<br />

representation of the scene, for instance the boundary- and fill-color of the objects, the<br />

visibility of the scene,... .<br />

We use the type geo scene as the scene item type of GeoWin; it may be helpful to view<br />

it as pointers to scenes.<br />

We distinguish the following types of scene classes:<br />

1. Edit Scenes (type GeoEditScene)<br />

where CONTAINER is the type of the scene’s container storing the contents of the<br />

scene, for instance list. <strong>The</strong>se scenes can be edited by the user through the<br />

interactive interface of GeoWin. Note that edit scenes have some special features.<br />

An important feature is the possibility to select objects through the interactive<br />

interface. <strong>The</strong>se selected objects have special attributes, see the table of scene<br />

attributes.<br />

2. Result Scenes (type GeoResultScene)<br />

<strong>The</strong>se scenes are not independently editable by the user. <strong>The</strong> contents of result<br />

scenes is computed by a user-defined update function or update object executing a<br />

geometric algorithm. This recomputation of the scene contents will be done every<br />

time when another scene (this other scene we call the input scene of the result scene)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!