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.

int W.read mouse seg(const point& p, point& q)<br />

as above with x 0 = p.xcoord( ) and y 0 = p.ycoord( ) and<br />

the current position is assigned to q.<br />

int W.read mouse line(double x 0 , double y 0 , double& x, double& y)<br />

int W.read mouse line(const point& p, point& q)<br />

displays a line passing through (x 0 , y 0 ) and the current<br />

cursor position until a mouse button is pressed inside the<br />

drawing section of W . When a button is pressed the current<br />

position is assigned to (x, y) and the number of the<br />

pressed button is returned.<br />

as above with x 0 = p.xcoord( ) and y 0 = p.ycoord( ) and<br />

the current position is assigned to q.<br />

int W.read mouse ray(double x 0 , double y 0 , double& x, double& y)<br />

int W.read mouse ray(const point& p, point& q)<br />

displays a ray from (x 0 , y 0 ) passing through the current<br />

cursor position until a mouse button is pressed inside the<br />

drawing section of W . When a button is pressed the current<br />

position is assigned to (x, y) and the number of the<br />

pressed button is returned.<br />

as above with x 0 = p.xcoord( ) and y 0 = p.ycoord( ) and<br />

the current position is assigned to q.<br />

int W.read mouse rect(double x 0 , double y 0 , double& x, double& y)<br />

int W.read mouse rect(const point& p, point& q)<br />

displays a rectangle with diagonal from (x 0 , y 0 ) to the current<br />

cursor position until a mouse button is pressed inside<br />

the drawing section of W . When a button is pressed the<br />

current position is assigned to (x, y) and the number of<br />

the pressed button is returned.<br />

as above with x 0 = p.xcoord( ) and y 0 = p.ycoord( ) and<br />

the current position is assigned to q.<br />

int W.read mouse circle(double x 0 , double y 0 , double& x, double& y)<br />

int W.read mouse circle(const point& p, point& q)<br />

displays a circle with center (x 0 , y 0 ) passing through the<br />

current cursor position until a mouse button is pressed<br />

inside the drawing section of W . When a button is pressed<br />

the current position is assigned to (x, y) and the number<br />

of the pressed button is returned.<br />

as above with x 0 = p.xcoord( ) and y 0 = p.ycoord( ) and<br />

the current position is assigned to q.

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

Saved successfully!

Ooh no, something went wrong!