Algorithmic Solutions > LEDA > LEDA Guide > GeoWin > First Example

First Example GeoWin

The following program generates a GeoWin geow. Then it creates an editable scene sc of polygons and changes the color attributes for the polygon scene.

Then the interactive mode for sc is started.

On the right there is a screenshot of the program after adding some polygons interactively. Clicking on the picture shows the GeoWin in original size.

Picture of GeoWin
#include <LEDA/graphics/GeoWin.h>
#include <LEDA/core/list.h>
#include <LEDA/geo/polygon.h>

using namespace leda;

int main() 
{
  GeoWin geow;

  list<polygon> L;
  geo_scene sc=geow.new_scene(L);

  geow.set_color(sc,black);
  geow.set_fill_color(sc,grey1);
 
  geow.edit(sc);

  geow.get_window().screenshot("geowin_first");

  return 0;
} 

See also:

GeoWin

Interactive Interface

Windows and Panels

Colors

Geometry


Manual Pages:

Manual Page GeoWin




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