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::FilledEllipse Navigation: Up, Table of Contents, Index,

Filled Ellipses (ifm::FilledEllipse)

ifm::FilledEllipse e ( int x, int y, int w, int h);
Creates a filled ellipse with center (x, y), width 2 · w and height 2 · h.

int e.x () Returns center's x-coordinate.
int e.y () Returns center's y-coordinate.
int e.w () Returns half the width of e.
int e.h () Returns half the height of e.

Example

The following code draws a filled ellipse with center (100, 100), width 80 and height 50. Then it waits for a mouseclick to finish.

#include <IFM/window>

int main()
{
    ifm::wio << ifm::FilledEllipse(100, 100, 80, 50) << ifm::flush;
    ifm::wio.wait_for_mouse_click();
    return 0;
}

Next: Some convenience functions
Navigation: Up, Table of Contents, Index,
Michael Hoffmann. Wed, November 17, 2004.