Algorithmic Solutions > LEDA > LEDA Guide > GeoWin > Programming Interface > Create and Open

Creating and Opening a GeoWin

Creating a GeoWin

LEDA provides the following constructors for GeoWin
    GeoWin geow(const char* label);
constructs a GeoWin geow with window label label and
    GeoWin geow;

defines a GeoWin geow with the default label GEOWIN.

Opening a GeoWin

The drawing window associated with a GeoWin is displayed only after using one of the following display()-operations. The operation
    geow.display(int x, int y);

will display the GeoWin geow with its upper left corner at (x,y).

    geow.display();

will display geow at the center of the screen.

Starting the Interactive Mode of GeoWin

The interactive interface of GeoWin is started by

    geow.edit();

The operation

    bool geow.edit(geo_scene sc);

starts the interactive mode with sc as the active scene.

Remark: Pressing done in the second case terminates the session and returns true, quit in the file menu also terminates the session, but returns false.

For an example of how to use these operations in a program, have a look at First Example of GeoWin.

See also:

Programming Interface

GeoWin

Interactive Interface

First Example of GeoWin


Manual Pages:

Manual Page GraphWin




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