Algorithmic Solutions > LEDA > LEDA Guide > GeoWin > Interactive Interface

The GeoWin Interactive Interface

The interactive user interface of GeoWin is simple and intuitive. The best way to learn about it is to open a GeoWin and play around with it, e.g., by compiling and running the following simple program. See also First Example of GeoWin.

#include <LEDA/graphics/geowin.h>
	
int main()
{	
   leda::GeoWin geow;	
   geow.edit();

   return 0;
}
On the right there is a screenshot of the program after adding some polygons, circles and segments. Clicking on the picture shows the GeoWin in original size.
Example GeoWin Interactive Interface

The interactive interface of GeoWin is activated by calling the member functions geow.edit(); or geow.edit(geo_scene sc); The first variant opens geow with an empty set of scenes. The second makes sc the active scene of geow.

Menus

Here is a brief description of all default menus of GeoWin.
  • File: A menu that offers file I/O operations and operations to output scenes in Postscript format. There is also an entry for making screenshots and the quit button.
  • Edit: A menu with panels for object input, object creation, selection of objects and buffer operations. This menu is not available if geow has an empty set of scenes.
  • Scenes: A menu to open, close, clear, and activate scenes of geometric objects. It is possible to change the visibility of the current scene and to view the content of a scene as textual information (useful for debugging purposes).
  • Window: A menu with (zoom) operations for changing the user space of the drawing window.
  • Options: A menu with various sub-panels for viewing and editing various parameters amd attributes of GeoWin.
  • Algorithms: A menu that lets you call various geoemtric algorithms for the selected objects of the current scene. Remark: We do not provide algorithms for all kinds of scenes.
  • Help: A menu for help panels on a number of GeoWin topics.
  • Done: Button to leave GeoWin.

When an edit scene is activated or opened using the menu, the mouse can be used to edit this scene. The default actions associated with the mouse buttons are

  • left button: input new objects, scrolling the scene by holding the button
  • middle button: selection of objects in the active scene
  • right button: pressed over an object a menu appears that provides access to operations applicable to this object, e.g., setup, delete, or edit; pressed over the background will open a dialog box for the scene attributes

See also:

GeoWin

First Example of GeoWin


Manual Pages:

Manual Page GeoWin




Please send any suggestions, comments or questions to leda@algorithmic-solutions.com
© Copyright 2001-2003, Algorithmic Solutions Software GmbH