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.

}<br />

};<br />

int main()<br />

{<br />

GeoWin gw;<br />

list LP;<br />

geo_scene sc_points = gw.new_scene(LP);<br />

hull_update_redraw up_rd;<br />

geo_scene sc_hull = gw.new_scene(up_rd, up_rd, sc_points, "Convex hull");<br />

gw.set_color(sc_hull, blue);<br />

gw.set_visible(sc_hull, true);<br />

gw.edit(sc_points);<br />

return 0;<br />

}<br />

template <br />

GeoResultScene∗ GW.new scene(geowin update& up,<br />

geowin redraw container& rd,<br />

geo scene sc input, string str,<br />

D3 FCN f = NULL)<br />

creates a new result scene with name str. <strong>The</strong> input<br />

scene for this new result scene will be sc input. <strong>The</strong><br />

update object will be ub. <strong>The</strong> redraw container object<br />

will be rd.<br />

template <br />

bool GW.get objects(CONTAINER& c)<br />

If the container storing the contents of the current<br />

edit scene has type CONTAINER, then the contents<br />

of this scene is copied to c.<br />

template <br />

bool GW.get objects(geo scene sc, CONTAINER& c)<br />

If the container storing the contents of scene sc has<br />

type CONTAINER, then the contents of scene sc is<br />

copied to c.<br />

template <br />

void GW.get selected objects(GeoEditScene ∗ sc,<br />

CONTAINER& cnt)<br />

returns the selected objects of scene sc in container<br />

cnt.<br />

template

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

Saved successfully!

Ooh no, something went wrong!