PolygonFiller Class Reference

Defines the API for the polygon fillers. More...

#include <PolygonFiller.h>

Inheritance diagram for PolygonFiller:

Renderer PolygonVersionA PolygonVersionB PolygonVersionC PolygonVersionD PolygonVersionE PolygonVersionF List of all members.

Public Member Functions

virtual ~PolygonFiller ()
 Virtual destructor.
virtual void render (RenderTargetWrapper *aTarget, PolygonWrapper *aPolygon, PaintWrapper *aColor, RENDERER_FILLMODE aFillMode, const MATRIX2D &aTransformation)
 Renders a polygon.
virtual void renderEvenOdd (BitmapData *aTarget, const Polygon *aPolygon, unsigned long aColor, const MATRIX2D &aTransformation)=0
 Renders the polygon with even-odd fill.
virtual void renderNonZeroWinding (BitmapData *aTarget, const Polygon *aPolygon, unsigned long aColor, const MATRIX2D &aTransformation)=0
 Renders the polygon with non-zero winding fill.
virtual void setClipRect (unsigned int aX, unsigned int aY, unsigned int aWidth, unsigned int aHeight)=0
 Sets the clip rectangle for the polygon filler.

Detailed Description

Defines the API for the polygon fillers.


Constructor & Destructor Documentation

virtual PolygonFiller::~PolygonFiller  )  [inline, virtual]
 

Virtual destructor.


Member Function Documentation

virtual void PolygonFiller::render RenderTargetWrapper aTarget,
PolygonWrapper aPolygon,
PaintWrapper aColor,
RENDERER_FILLMODE  aFillMode,
const MATRIX2D &  aTransformation
[inline, virtual]
 

Renders a polygon.

/param aTarget the render target for rendering the polygon. /param aPolygon the polygon to render. /param aColor the rendering color. /param aFillMode the fill mode for rendering. /param aTransformation the transformation for rendering.

Implements Renderer.

virtual void PolygonFiller::renderEvenOdd BitmapData aTarget,
const Polygon aPolygon,
unsigned long  aColor,
const MATRIX2D &  aTransformation
[pure virtual]
 

Renders the polygon with even-odd fill.

Parameters:
aTarget the target bitmap.
aPolygon the polygon to render.
aColor the color to be used for rendering.
aTransformation the transformation matrix.

Implemented in PolygonVersionA, PolygonVersionB, PolygonVersionC, PolygonVersionD, PolygonVersionE, and PolygonVersionF.

virtual void PolygonFiller::renderNonZeroWinding BitmapData aTarget,
const Polygon aPolygon,
unsigned long  aColor,
const MATRIX2D &  aTransformation
[pure virtual]
 

Renders the polygon with non-zero winding fill.

Parameters:
aTarget the target bitmap.
aPolygon the polygon to render.
aColor the color to be used for rendering.
aTransformation the transformation matrix.

Implemented in PolygonVersionA, PolygonVersionB, PolygonVersionC, PolygonVersionD, PolygonVersionE, and PolygonVersionF.

virtual void PolygonFiller::setClipRect unsigned int  aX,
unsigned int  aY,
unsigned int  aWidth,
unsigned int  aHeight
[pure virtual]
 

Sets the clip rectangle for the polygon filler.

Implemented in PolygonVersionA, PolygonVersionB, PolygonVersionC, PolygonVersionD, PolygonVersionE, and PolygonVersionF.


The documentation for this class was generated from the following file:
Generated on Fri Aug 3 00:44:38 2007 for Scanline edge-flag algorithm for antialiasing by  doxygen 1.4.6-NO