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 GW.get show status( )<br />

return<br />

bool GW.set show status(bool b)<br />

bool GW.set show menu(bool v)<br />

display a status window (b=true) or not (b=false).<br />

<strong>The</strong> operation should be called before the first display<br />

- operation of GW .<br />

sets the visibility of the menu of GW to v.<br />

void GW.set menu add fcn(void (∗mfcn)(window& W ))<br />

bool GW.set show file menu(bool v)<br />

bool GW.set show edit menu(bool v)<br />

bool GW.set show scenes menu(bool v)<br />

bool GW.set show window menu(bool v)<br />

bool GW.set show options menu(bool v)<br />

bool GW.set show algorithms menu(bool v)<br />

bool GW.set show help menu(bool v)<br />

This handler function can be used to add own menus<br />

to the menu bar of a GeoWin. It is called before<br />

the menu initialization of a GeoWin. See the demo<br />

program geowin gui for an example.<br />

sets the visibility of the file menu of GW to v.<br />

sets the visibility of the edit menu of GW to v.<br />

sets the visibility of the scenes menu of GW to v.<br />

sets the visibility of the window menu of GW to v.<br />

sets the visibility of the options menu of GW to v.<br />

sets the visibility of the algorithms menu of GW to v.<br />

sets the visibility of the help menu of GW to v.<br />

void<br />

GW.init menu(window ∗ wptr = NULL)<br />

initializes the menu of GW . Normally you don’t have<br />

to call this operation directly, but if you want to add<br />

additional graphical elements like sliders or buttons to<br />

the window of GW you have to call init window (with<br />

no parameters). After that add the desired elements<br />

and then call edit or display. See the demo programs<br />

for examples.<br />

c) Scene and scene group Operations

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

Saved successfully!

Ooh no, something went wrong!