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.

template <br />

bool GW.get obj text(GeoBaseScene ∗ sc, typename T :: iterator it,<br />

geowin text& gt)<br />

Gets the text associated with the object it points to<br />

and assigns it to gt. If no text is associated with the<br />

object, false will be returned, otherwise true.<br />

template <br />

void GW.set obj text(GeoBaseScene ∗ sc, void ∗ adr, const geowin text& gt)<br />

Assigns gt to the object at adr in scene sc.<br />

template <br />

void GW.set obj text(GeoBaseScene ∗ sc, typename T :: iterator it,<br />

const geowin text& gt)<br />

Assigns gt to the object it points to in scene sc.<br />

template <br />

void GW.reset obj attributes(GeoBaseScene ∗ sc)<br />

d) Input and Output Operations<br />

deletes all individual attributes of objects in scene<br />

(∗sc).<br />

void<br />

void<br />

void<br />

GW.read(geo scene sc, istream& is)<br />

GW.write(geo scene sc, ostream& os)<br />

GW.write active scene(ostream& os)<br />

reads the contents of sc from input stream is. Before<br />

the contents of sc is cleared.<br />

writes the contents of sc to output stream os.<br />

writes the contents of the active scene of GW to output<br />

stream os.<br />

e) View Operations<br />

void GW.zoom up( ) <strong>The</strong> visible range is reduced to the half.<br />

void GW.zoom down( ) <strong>The</strong> visible range is doubled.<br />

void GW.fill window( ) changes window coordinate system, so that the objects<br />

of the currently active scene fill the window.<br />

void GW.reset window( ) resets the visible range to the values that where current<br />

when constructing GW .<br />

f) Parameter Operations<br />

<strong>The</strong> following operations allow the set and retrieve the various parameters of GeoWin.

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

Saved successfully!

Ooh no, something went wrong!