Department of Computer Science | Institute of Theoretical Computer Science | CADMO

Theory of Combinatorial Algorithms

Prof. Emo Welzl and Prof. Bernd Gärtner

Reference Manual: ifm::FilledCircle Navigation: Up, Table of Contents, Index,

Filled Circles (ifm::FilledCircle)

ifm::FilledCircle c ( int x, int y, int r);
Creates a filled circle with center (x, y) and radius r.

int c.x () Returns center's x-coordinate.
int c.y () Returns center's y-coordinate.
int c.r () Returns radius of c.

Example

The following code draws a filled circle with center (100, 100) and radius 20. Then it waits for a mouseclick to finish.

#include <IFM/window>

int main()
{
    ifm::wio << ifm::FilledCircle(100, 100, 20) << ifm::flush;
    ifm::wio.wait_for_mouse_click();
    return 0;
}

Next: Class declaration of ifm::Ellipse
Navigation: Up, Table of Contents, Index,
Michael Hoffmann. Wed, November 17, 2004.