Polygon Class Reference

A class for handling polygons. Each polygon is a set of sub-polygons. More...

#include <Polygon.h>

Inheritance diagram for Polygon:

PolygonWrapper List of all members.

Public Member Functions

 Polygon (SubPolygon **aSubPolygons, int aSubPolygonCount)
 Constructor.
virtual ~Polygon ()
 Virtual destructor.
int getSubPolygonCount () const
 Returns the amount of sub-polygons.
const SubPolygongetSubPolygon (int aIndex) const
 Returns a sub-polygon at given index.

Static Public Member Functions

static Polygoncreate (const PolygonData *aPolygonData)
 Static method for creating a polygon from the data.

Protected Attributes

int mSubPolygonCount
SubPolygon ** mSubPolygons

Detailed Description

A class for handling polygons. Each polygon is a set of sub-polygons.


Constructor & Destructor Documentation

Polygon::Polygon SubPolygon **  aSubPolygons,
int  aSubPolygonCount
 

Constructor.

Note that the ownership of the sub-polygon array is transferred.

Polygon::~Polygon  )  [virtual]
 

Virtual destructor.


Member Function Documentation

Polygon * Polygon::create const PolygonData aPolygonData  )  [static]
 

Static method for creating a polygon from the data.

const SubPolygon& Polygon::getSubPolygon int  aIndex  )  const [inline]
 

Returns a sub-polygon at given index.

int Polygon::getSubPolygonCount  )  const [inline]
 

Returns the amount of sub-polygons.


Member Data Documentation

int Polygon::mSubPolygonCount [protected]
 

SubPolygon** Polygon::mSubPolygons [protected]
 


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