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.

geowin_gui_rat_transform<br />

geowin_gui_transform<br />

where KERNEL CLASS is a class of the <strong>LEDA</strong> rat- or float-kernel. <strong>The</strong> default is that<br />

no transformation objects are associated with editable scenes.<br />

template <br />

void GW.set transform(GeoEditScene ∗ sc,<br />

geowin transform& trans)<br />

makes trans the transformation object of edit scene<br />

sc.<br />

Input objects: <strong>The</strong> following operation can be used to set an input object for an edit<br />

scene. <strong>The</strong> operation uses member templates. If your compiler does not support member<br />

templates, you should use instead the templated functions prefixed with geowin. A<br />

GeoInputObject has the following virtual functions:<br />

void operator( )(GeoWin& gw, list& L);<br />

This virtual function is called for the input of objects.<br />

returned in L.<br />

<strong>The</strong> new objects have to be<br />

void options(GeoWin& gw);<br />

This function is called for setting options for the input object.<br />

template <br />

bool GW.set input object(GeoEditScene ∗ sc,<br />

const GeoInputObject& obj ,<br />

string name)<br />

sets the input object obj for edit scene (∗sc). <strong>The</strong><br />

function gets the GeoWin where (∗sc) belongs to and<br />

a reference to a list L. <strong>The</strong> function must write the<br />

new objects to L.<br />

template <br />

bool GW.add input object(GeoEditScene ∗ sc,<br />

const GeoInputObject& obj ,<br />

string name)<br />

adds the input object obj to the list of available input<br />

objects of edit scene (∗sc) without setting obj as input<br />

object.<br />

template

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

Saved successfully!

Ooh no, something went wrong!