CVD::Brezenham Class Reference
[Computer graphics]

#include <brezenham.h>

List of all members.


Detailed Description

Class to implement the Bresenham line-drawing algorithm.

This object does not draw directly into an image, it simply outputs the set of image co-ordinates that should be visited to draw a line in a certain direction. Pixels are generated in a 4-connected sense (i.e. there are no diagonal steps--each step is either horizontal or vertical) details of the algorithm. See also Brezenham8.

Definition at line 37 of file brezenham.h.


Public Member Functions

 Brezenham (TooN::Vector< 2 > dir)
ImageRef step ()

Constructor & Destructor Documentation

CVD::Brezenham::Brezenham ( TooN::Vector< 2 >  dir  ) 

Construct a line-drawing object.

Parameters:
dir The (x,y) direction of the line


Member Function Documentation

ImageRef CVD::Brezenham::step (  ) 

Returns the next image co-ordinate along the line.


The documentation for this class was generated from the following file:
Generated on Wed Feb 18 10:23:05 2009 for CVD by  doxygen 1.5.3