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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

geo scene<br />

void<br />

int<br />

GW.get scene with name(string nm)<br />

GW.activate(geo scene sc)<br />

GW.get z order(geo scene sc)<br />

returns the scene with name nm or nil if there is no<br />

scene with name nm.<br />

makes scene sc the active scene of GW .<br />

returns the z-coordinate of sc.<br />

int GW.set z order(geo scene sc, int n)<br />

sets the z-coordinate of sc to n and returns its previous<br />

value.<br />

In front of the scenes of a GeoWin object a so-called ”user layer” can store some geometric<br />

objects illustrating scenes. <strong>The</strong> following functions let you add some of these objects.<br />

void GW.add user layer segment(const segment& s)<br />

void GW.add user layer circle(const circle& c)<br />

void GW.add user layer point(const point& p)<br />

adds segment s to the segments of the user layer.<br />

adds circle c to the circles of the user layer.<br />

adds point p to the points of the user layer.<br />

void GW.add user layer rectangle(const rectangle& r)<br />

void GW.remove user layer objects( )<br />

adds rectangle r to the rectangles of the user layer.<br />

removes all objects of the user layer.<br />

void<br />

GW.set draw user layer fcn(void (∗fcn)(GeoWin∗))<br />

this function can be used for additional user-defined<br />

redraw after drawing the objects of the user layer.<br />

void GW.set postscript user layer fcn(void (∗fcn)(GeoWin∗, ps file& ))<br />

geo scene GW.get active scene( )<br />

returns the active scene of GW .<br />

bool<br />

GW.is active(geo scene sc)<br />

returns true if sc is an active scene in a GeoWin.<br />

<strong>The</strong> following get and set operations can be used for retrieving and changing scene parameters.<br />

All set operations return the previous value.<br />

string<br />

GW.get name(geo scene sc)<br />

returns the name of scene sc.

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

Saved successfully!

Ooh no, something went wrong!