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.

void GW.set d3 fcn(geo scene sc, void (∗f)(geo scene gs, d3 window& W,<br />

GRAPH & H))<br />

sets a function for computing 3d output. <strong>The</strong> parameters<br />

of the function are the geo scene for that it will<br />

be set and a function pointer. <strong>The</strong> function f will get<br />

the scene for that it was set and the reference to a<br />

d3 window that will be the output window.<br />

D3 FCN<br />

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

returns the function for computing 3d output<br />

that is set for scene sc. <strong>The</strong> returned function<br />

has pointer type void (∗)(geo scene, d3 window&,<br />

GRAPH &).<br />

GeoWin can be pined at a point in the plane. As standard behavior it is defined that<br />

moves of geometric objects will be rotations around the pin point.<br />

bool GW.get pin point(point& p)<br />

void GW.set pin point(point p)<br />

returns the pin point in p if it is set.<br />

sets the pin point to p.<br />

void GW.del pin point( ) deletes the pin point.<br />

void<br />

void<br />

GW.add help text(string name)<br />

adds the help text contained in name.hlp with label<br />

name to the help menu of the main window. <strong>The</strong><br />

file name.hlp must exist either in the current working<br />

directory or in $<strong>LEDA</strong>ROOT/incl/Help. Note that<br />

this operation must be called before gw.display( ).<br />

GW.add special help text(string name, bool auto display = false)<br />

adds one help text contained in name.hlp to the<br />

menu of the main window. <strong>The</strong> file name.hlp must<br />

exist either in the current working directory or in<br />

$<strong>LEDA</strong>ROOT/incl/Help. Note that this operation<br />

must be called before gw.display( ). If auto display is<br />

true, this help text will be displayed, when the main<br />

window is displayed.<br />

template <br />

int GW.get limit(GeoEditScene ∗ es)<br />

template <br />

returns the limit of edit scene es (a negative number<br />

will be returned, if there is no limit).

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

Saved successfully!

Ooh no, something went wrong!