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.

int D.move( ) animates the contents of D until a button is<br />

pressed and returns the pressed mouse button. If<br />

the movement is stopped or no mouse button is<br />

pressed, NO BUTTON will be returned, else the<br />

number of the pressed mouse button will be returned<br />

(see also Definition and the get mouse operation<br />

of the window data type).<br />

int D.get mouse( ) does the same as move.<br />

int D.read mouse( ) calls move as long as move returns NO BUTTON .<br />

Else the movement is stopped, and the number of<br />

the pressed mouse button is returned.<br />

void D.set position(node v, double x, double y, double z)<br />

sets the position of node v in the visualized graph<br />

D to (x, y, z).<br />

<strong>The</strong> set-<br />

Get- and set-operations<br />

<strong>The</strong> following operations can be used to get and set the parameters of D.<br />

operations return the previous value of the parameter.<br />

bool D.get x rotation( ) returns true, if D has rotation about the x-axis<br />

enabled, false otherwise.<br />

bool D.get y rotation( ) returns true, if D has rotation about the y-axis<br />

enabled, false otherwise.<br />

bool D.set x rotation(bool b) enables (disables) rotation about the x-axis.<br />

bool D.set y rotation(bool b) enables (disables) rotation about the y-axis.<br />

bool D.get elim( ) returns the hidden line elimination flag.<br />

bool D.set elim(bool b) sets the hidden line elimination flag to b. If b is<br />

true, hidden lines will be eliminated, if b is false,<br />

hidden lines will be shown.<br />

bool D.get solid( ) returns the solid flag of D.<br />

bool D.set solid(bool b) sets the solid flag of D to b. If b is true and the<br />

current graph of D is a planar map, its faces will<br />

be painted in different grey scales, otherwise the<br />

faces will be painted white.<br />

bool D.get draw edges( ) return true, if edges will be drawn, false otherwise.<br />

bool D.set draw edges(bool b) enables (disables) the redraw of the edges of D.<br />

string D.get message( ) returns the message that will be displayed on top<br />

of the drawing area of the window.

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

Saved successfully!

Ooh no, something went wrong!