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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• A DRAG (button not released)<br />

• A IMMEDIATE (do it immediatly without dragging or double click check)<br />

• A OBJECT (editable object at mouse position).<br />

and can be combined with OR ( ).<br />

void GW.set action(long mask, geo action f = 0)<br />

set action on condition mask to f. geo action is a<br />

function of type void (∗)(GeoWin&, const point&).<br />

For f == 0 the corresponding action is deleted.<br />

geo action<br />

GW.get action(long mask)<br />

get action defined for condition mask.<br />

void GW.reset actions( ) set all actions to their default values.<br />

Default values are defined as follows :<br />

• A LEFT or A LEFT A OBJECT<br />

read a new object at mouse position.<br />

• A LEFT A DRAG<br />

scrolling the window.<br />

• A LEFT A DRAG A OBJECT<br />

move the object.<br />

• A LEFT A CTRL<br />

pin current scene at mouse position or delete the pin point if it is currently there.<br />

• A MIDDLE A OBJECT<br />

toggle the selection state of the object at mouse position.<br />

• A MIDDLE A DRAG<br />

toggle the selection state of the objects in the dragging area.<br />

• A RIGHT A IMMEDIATE<br />

set the options of the currently active scene.<br />

• A RIGHT A IMMEDIATE A OBJECT<br />

opens a menu for the object at mouse position.<br />

void GW.clear actions( ) clears all actions.<br />

Scene events<br />

<strong>The</strong> following event handling functions can be set for edit scenes:

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

Saved successfully!

Ooh no, something went wrong!