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<br />

void<br />

void<br />

void<br />

void<br />

int<br />

int<br />

GW.set draw object fcn(GeoBaseScene ∗ sc,<br />

window& (∗fcn)(window& ,<br />

const typename T :: value type& , int w))<br />

sets a function fcn for scene (∗sc) that will be called<br />

for drawing the objects of scene (∗sc). If no such<br />

function is set (the default), the output operator is<br />

used.<br />

GW.set activate handler(geo scene sc, void (∗f)(geo scene))<br />

sets a handler function f that is called with sc as<br />

parameter when the user activates sc.<br />

GW.set edit loop handler(bool (∗f)(const GeoWin& gw))<br />

sets a handler function f that is called periodically in<br />

the interactive mode. If this handler returns true, we<br />

will leave the interactive mode.<br />

GW.set quit handler(bool (∗f)(const GeoWin& gw))<br />

sets a handler function f that is called when the user<br />

clicks the quit menu button. f should return true for<br />

allowing quiting, false otherwise.<br />

GW.set done handler(bool (∗f)(const GeoWin& gw))<br />

GW.set edit mode(geo scene sc, int emode)<br />

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

sets a handler function f that is called when the user<br />

clicks the done menu button. f should return true for<br />

allowing quiting, false otherwise.<br />

sets the edit mode of scene sc to emode.<br />

return the edit mode of scene sc.<br />

h) Scene group Operations<br />

GeoWin can manage scenes in groups. It is possible to add and remove scenes to/from<br />

groups. Various parameters and dependences can be set for whole groups. Note that<br />

geo scenegroup is a pointer to a scene group.<br />

geo scenegroup GW.new scenegroup(string name)<br />

Creates a new scene group with name name and returns<br />

a pointer to it.<br />

geo scenegroup GW.new scenegroup(string name, const list& LS)<br />

Creates a new scene group name and adds the scenes<br />

in LS to this group.<br />

void<br />

GW.insert(geo scenegroup GS, geo scene sc)<br />

adds sc to scene group GS .

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

Saved successfully!

Ooh no, something went wrong!