VectorGraphic Class Reference

A vector graphic image is a set of polygons. Each polygon is associated with a color. More...

#include <VectorGraphic.h>

List of all members.

Public Member Functions

 VectorGraphic (PolygonWrapper **aPolygons, PaintWrapper **aColors, RENDERER_FILLMODE *aFillModes, int aPolygonCount)
 Constructor.
 ~VectorGraphic ()
 Destructor.
int getPolygonCount ()
 Returns the polygon count of the graphic.
const PolygonWrappergetPolygon (int aIndex)
 Returns the polygon at given index.
const PaintWrappergetColor (int aIndex)
 Returns the color at given index.
RENDERER_FILLMODE getFillMode (int aIndex)
 Returns the fill mode at given index.
void render (Renderer *aRenderer, RenderTargetWrapper *aTarget, const MATRIX2D &aTransformation)
 Renders the vector graphic with given renderer.

Static Public Member Functions

static VectorGraphiccreate (const PolygonData *const *aPolygons, const unsigned long *aColors, const RENDERER_FILLMODE *aFillModes, int aPolygonCount, PolygonFactory *aFactory)
 Static method for creating the vector graphic from data.

Protected Attributes

int mPolygonCount
PolygonWrapper ** mPolygons
PaintWrapper ** mColors
RENDERER_FILLMODE * mFillModes


Detailed Description

A vector graphic image is a set of polygons. Each polygon is associated with a color.


Constructor & Destructor Documentation

VectorGraphic::VectorGraphic PolygonWrapper **  aPolygons,
PaintWrapper **  aColors,
RENDERER_FILLMODE *  aFillModes,
int  aPolygonCount
 

Constructor.

VectorGraphic::~VectorGraphic  ) 
 

Destructor.


Member Function Documentation

VectorGraphic * VectorGraphic::create const PolygonData *const *  aPolygons,
const unsigned long *  aColors,
const RENDERER_FILLMODE *  aFillModes,
int  aPolygonCount,
PolygonFactory aFactory
[static]
 

Static method for creating the vector graphic from data.

const PaintWrapper* VectorGraphic::getColor int  aIndex  )  [inline]
 

Returns the color at given index.

RENDERER_FILLMODE VectorGraphic::getFillMode int  aIndex  )  [inline]
 

Returns the fill mode at given index.

const PolygonWrapper* VectorGraphic::getPolygon int  aIndex  )  [inline]
 

Returns the polygon at given index.

int VectorGraphic::getPolygonCount  )  [inline]
 

Returns the polygon count of the graphic.

void VectorGraphic::render Renderer aRenderer,
RenderTargetWrapper aTarget,
const MATRIX2D &  aTransformation
 

Renders the vector graphic with given renderer.

/param aRenderer the class to use for rendering. /param aTarget the render target. /param aTransformation the transformation to use in the rendering.


Member Data Documentation

PaintWrapper** VectorGraphic::mColors [protected]
 

RENDERER_FILLMODE* VectorGraphic::mFillModes [protected]
 

int VectorGraphic::mPolygonCount [protected]
 

PolygonWrapper** VectorGraphic::mPolygons [protected]
 


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