Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ixion::drawing_functions Namespace Reference


Functions

void drawLine (Target &target, int x1, int y1, int x2, int y2)
void drawBox (Target &target, int x1, int y1, int x2, int y2)
void fillBox (Target &target, int x1, int y1, int x2, int y2)
void drawCircle (Target &target, int x, int y, int r)
void fillCircle (Target &target, int x, int y, int r)
void drawEllipse (Target &target, int x, int y, int r_x, int r_y)
void fillEllipse (Target &target, int x, int y, int r_x, int r_y)
void drawPolygon (Target &target, polygon< T > const &poly)
void fillPolygon (Target &target, polygon< T > const &poly)


Detailed Description

A namespace containing functions that implement drawing primitives on a "Target" object that must have the following methods:

Further, the Target interface must be stateful with respect to drawing modes and colors (i.e. these cannot be passed through these functions).


Function Documentation

void drawBox ( Target & target,
int x1,
int y1,
int x2,
int y2 )
 

void drawCircle ( Target & target,
int x,
int y,
int r )
 

void drawEllipse ( Target & target,
int x,
int y,
int r_x,
int r_y )
 

void ixion::drawing_functions::drawLine ( Target & target,
int x1,
int y1,
int x2,
int y2 )
 

Draws a line from [(x1,y1),(x2,y2)), i.e. leaves out the last pixel. Set manually if needed.

This is done to allow faciliating the drawing of multiple lines in-a-row.

void drawPolygon ( Target & target,
polygon< T > const & poly )
 

void fillBox ( Target & target,
int x1,
int y1,
int x2,
int y2 )
 

void fillCircle ( Target & target,
int x,
int y,
int r )
 

void fillEllipse ( Target & target,
int x,
int y,
int r_x,
int r_y )
 

void fillPolygon ( Target & target,
polygon< T > const & poly )
 


Generated at Tue Apr 17 18:29:47 2001 for ixlib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001