CVD::Brezenham Class Reference
[Computer graphics]

#include <brezenham.h>

List of all members.

Public Member Functions

 Brezenham (TooN::Vector< 2 > dir)
ImageRef step ()
 Returns the next image co-ordinate along the line.

Private Attributes

double residual
ImageRef step1
ImageRef step2
double val1
double val2

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.


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.


Member Data Documentation

double CVD::Brezenham::residual [private]

Definition at line 47 of file brezenham.h.

Definition at line 50 of file brezenham.h.

Definition at line 51 of file brezenham.h.

double CVD::Brezenham::val1 [private]

Definition at line 48 of file brezenham.h.

double CVD::Brezenham::val2 [private]

Definition at line 49 of file brezenham.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


libcvd
Author(s): Edward Rosten, Paul Smith, Tom Drummond, Gerhard Reitmayr, Ethan Eade, Timothy Gan, Chris Kemp, Georg Klein
autogenerated on Fri Jan 11 09:13:50 2013