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.

ool<br />

gw.wait(const char ∗ msg)<br />

displays msg and waits until the done button is<br />

pressed (true returned) or exit is selected from the<br />

file menu (false returned).<br />

bool gw.wait(float sec, const char ∗ msg = ””)<br />

void gw.acknowledge(string s)<br />

as above but waits no longer than sec seconds returns<br />

?? if neither button was pressed within this<br />

time interval.<br />

displays string s and asks for acknowledgement.<br />

node gw.ask node( ) asks the user to select a node with the left mouse<br />

button. If a node is selected it is returned otherwise<br />

nil is returned.<br />

edge gw.ask edge( ) asks the user to select an edge with the left mouse<br />

button. If an edge is selected it is returned otherwise<br />

nil is returned.<br />

bool gw.define area(double& x0 , double& y0 , double& x1 , double& y1 ,<br />

const char ∗ msg = ””)<br />

displays message msg and returns the coordinates<br />

of a rectangular area defined by clicking and dragging<br />

the mouse.<br />

list gw.get nodes in area(double x0 , double y0 , double x1 , double y1 )<br />

returns the list of nodes intersecting the rectangular<br />

area (x0, y0, x1, y1).<br />

list gw.get edges in area(double x0 , double y0 , double x1 , double y1 )<br />

void gw.save node attributes( )<br />

void gw.save edge attributes( )<br />

void gw.save all attributes( ) ...<br />

void gw.restore node attributes( )<br />

void gw.restore edge attributes( )<br />

returns the list of edges intersecting the rectangular<br />

area (x0, y0, x1, y1).<br />

...<br />

...<br />

...<br />

...

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

Saved successfully!

Ooh no, something went wrong!