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

ixion::drawing_functions Namespace Reference


Functions

template<class Target> void drawLine (Target &target, int x1, int y1, int x2, int y2)
template<class Target> void drawBox (Target &target, int x1, int y1, int x2, int y2)
template<class Target> void fillBox (Target &target, int x1, int y1, int x2, int y2)
template<class Target> void drawCircle (Target &target, int x, int y, int r)
template<class Target> void fillCircle (Target &target, int x, int y, int r)
template<class Target> void drawEllipse (Target &target, int x, int y, int r_x, int r_y)
template<class Target> void fillEllipse (Target &target, int x, int y, int r_x, int r_y)
template<class Target, class T> void drawPolygon (Target &target, polygon< T > const &poly)
template<class Target, class T> 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

template<class Target>
void ixion::drawing_functions::drawBox Target &    target,
int    x1,
int    y1,
int    x2,
int    y2
 

Definition at line 137 of file ixlib_drawing_functions.hh.

template<class Target>
void ixion::drawing_functions::drawCircle Target &    target,
int    x,
int    y,
int    r
 

Definition at line 166 of file ixlib_drawing_functions.hh.

template<class Target>
void ixion::drawing_functions::drawEllipse Target &    target,
int    x,
int    y,
int    r_x,
int    r_y
 

Definition at line 237 of file ixlib_drawing_functions.hh.

template<class Target>
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.

Definition at line 72 of file ixlib_drawing_functions.hh.

Referenced by drawPolygon().

template<class Target, class T>
void ixion::drawing_functions::drawPolygon Target &    target,
polygon< T > const &    poly
 

Definition at line 436 of file ixlib_drawing_functions.hh.

template<class Target>
void ixion::drawing_functions::fillBox Target &    target,
int    x1,
int    y1,
int    x2,
int    y2
 

Definition at line 148 of file ixlib_drawing_functions.hh.

template<class Target>
void ixion::drawing_functions::fillCircle Target &    target,
int    x,
int    y,
int    r
 

Definition at line 203 of file ixlib_drawing_functions.hh.

template<class Target>
void ixion::drawing_functions::fillEllipse Target &    target,
int    x,
int    y,
int    r_x,
int    r_y
 

Definition at line 352 of file ixlib_drawing_functions.hh.

template<class Target, class T>
void ixion::drawing_functions::fillPolygon Target &    target,
polygon< T > const &    poly
 

Definition at line 480 of file ixlib_drawing_functions.hh.


Generated on Wed Oct 31 17:12:26 2001 for ixlib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001