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.

void W.draw rectangle(double x 0 , double y 0 , double x 1 , double y 1 ,<br />

color = window :: fgcol)<br />

draws a rectangle with lower left corner (x 0 , y 0 ) and upper<br />

right corner (x 1 , y 1 ).<br />

Precondition: x 0 < x 1 and y 0 < y 1 .<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

void<br />

W.draw rectangle(point p, point q, color = window :: fgcol)<br />

draws a rectangle with lower left corner p and upper right<br />

corner q.<br />

Precondition: p < q.<br />

W.draw rectangle(const rectangle& R, color = window :: fgcol)<br />

draws rectangle R.<br />

W.draw box(double x 0 , double y 0 , double x 1 , double y 1 , color c = window :: fgcol)<br />

draws a filled rectangle with lower left corner (x 0 , y 0 ) and<br />

upper right corner (x 1 , y 1 ).<br />

Precondition: x 0 < x 1 and y 0 < y 1 .<br />

W.draw filled rectangle(point p, point q, color = window :: fgcol)<br />

draws a filled rectangle with lower left corner p and upper<br />

right corner q.<br />

Precondition: p < q.<br />

W.draw filled rectangle(const rectangle& R, color = window :: fgcol)<br />

draws rectangle R.<br />

W.draw box(point p, point q, color c = window :: fgcol)<br />

same as draw filled rectangle(p, q, c).<br />

W.draw box(const rectangle& R, color c = window :: fgcol)<br />

same as draw filled rectangle(p, q, c).<br />

W.draw roundrect(double x 0 , double y 0 , double x 1 , double y 1 , double rndness,<br />

color col = window :: fgcol)<br />

draws a rectangle (x 0 , y 0 , x 1 , y 1 ) with round corners. <strong>The</strong><br />

rndness argument must be real number in the intervall<br />

[0, 1] and defines the “roundness” of the rectangle.<br />

W.draw roundrect(point p, point q, double rndness, color col = window :: fgcol)<br />

draws a round rectangle with lower left corner p, upper<br />

right corner q, and roundness rndness.<br />

W.draw roundbox(double x 0 , double y 0 , double x 1 , double y 1 , double rndness,<br />

color col = window :: fgcol)<br />

draws a filled rectangle (x 0 , y 0 , x 1 , y 1 ) with round corners.<br />

<strong>The</strong> rndness argument must be real number in the intervall<br />

[0, 1] and defined the “roundness” of the rectangle.

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

Saved successfully!

Ooh no, something went wrong!