org.esa.beam.util
Class ShapeRasterizer.BresenhamLineRasterizer

java.lang.Object
  extended by org.esa.beam.util.ShapeRasterizer.BresenhamLineRasterizer
All Implemented Interfaces:
ShapeRasterizer.LineRasterizer
Enclosing class:
ShapeRasterizer

public static class ShapeRasterizer.BresenhamLineRasterizer
extends Object
implements ShapeRasterizer.LineRasterizer

The Bresenham Algorithm is the default algorithm used to rasterize lines.


Constructor Summary
ShapeRasterizer.BresenhamLineRasterizer()
           
 
Method Summary
 void rasterize(int x0, int y0, int x1, int y1, ShapeRasterizer.LinePixelVisitor visitor)
          Rasterizes a line by visiting all pixels between the two line end-points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeRasterizer.BresenhamLineRasterizer

public ShapeRasterizer.BresenhamLineRasterizer()
Method Detail

rasterize

public void rasterize(int x0,
                      int y0,
                      int x1,
                      int y1,
                      ShapeRasterizer.LinePixelVisitor visitor)
Description copied from interface: ShapeRasterizer.LineRasterizer
Rasterizes a line by visiting all pixels between the two line end-points.

Specified by:
rasterize in interface ShapeRasterizer.LineRasterizer
Parameters:
x0 - x of the first end-point
y0 - y of the first end-point
x1 - x of the seconf end-point
y1 - y of the seconf end-point
visitor - the pixel visitor


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.