How to use Partition_2 Demo

Main Functionality

- Reset application
- Creating a new window
- Print
- Close the current window
- Quit the application

Editing

- Generate polygon
- Create a new simple polygon

Persistance

- Save the current polygon
- Load an existing polygon

Reset application

Press Ctrl+N combination keys or go to File menu and choose "New". The polygon will be erased, the window's visible area will be set to default. (-1, 1, -1, 1)

Create a new window

Press Ctrl+W combination keys or go to File menu and choose "New Window". A new window will appear, modifying the visible area to be the default (-1, 1, -1, 1).

Print

Press Ctrl+P combination keys or go to File menu and choose "Print". The visible area on the screen will be outputed to the print device of your choice.

Close the current window

Press Ctrl+X combination keys or go to File menu and choose "Close". You may do it for any window other than the initial one, this operation will close only the one you have choosen. If you do this for the initial parent window, it will close the others too.

Quit the application

Press Ctrl+Q combination keys or go to File menu and choose "Quit". When you quit the application, all the windows you have created will be destroyed.

Generate polygon

To generate a polygon, go to Draw menu and choose "Generate polygon" or press Ctrl+G combination keys. This action will generate a random simple polygon having the points coordinates between ranges (-1, 1). The old polygon is erased each time you generate a new one.

Create a new simple polygon

Left click on the "Input simple polygon" layer. Be sure there is no layer activated in standard toolbar that eat events. To be sure, press the arrow button situated on the standard toolbar. Left Click anywhere on the application's drawing area (the black rectangle) to insert points in the polygon. You may press "Esc" key if you want to erase the last point. Once you have completed the polygon press the right click to close the polygon. To deactivate this layer, just press the arrow button situated on the same toolbar.

Save the current polygon

Press Ctrl+S combination keys or go to File menu, then choose "Save Polygon". A save file dialog will appear, the default name given is "polygon.cgal". You may change the name then press "Save" or hit "Enter" key. To cancel the save process just press Esc key.
The polygon saved does not contain the visible area.

Load an existing polygon

Press Ctrl+L combination keys or go to File menu and choose "Load Polygon". A load file dialog will appear, having a filter that displays only the files with "cgal" extension. Choose a file then press "Open" button or hit "Enter" key.
The polygon saved does not contain the visible area. The application will change the current visible area to fit the bounding box of the polygon.

Last modified: Fri May 16 15:19:48 MEST 2003