|
Public Member Functions |
| SubPolygon (VECTOR2D *aVertices, int aVertexCount) |
| Constructor.
|
bool | init () |
| Initializer.
|
| ~SubPolygon () |
| Destructor.
|
int | getVertexCount () const |
| Returns the amount of vertices in the polygon.
|
const VECTOR2D & | getVertex (int aIndex) const |
| Returns a vertex at given position.
|
int | getEdges (int aFirstVertex, int aVertexCount, PolygonEdge *aEdges, const MATRIX2D &aTransformation, const ClipRectangle &aClipRectangle) const |
| Calculates the edges of the polygon with transformation and clipping to aEdges array.
|
int | getScanEdges (PolygonScanEdge *aEdges, const MATRIX2D &aTransformation, const ClipRectangle &aClipRectangle) const |
| Calculates the edges of the polygon with transformation and clipping to aEdges array.
|
Protected Member Functions |
int | getClipFlags (const VECTOR2D &aPoint, const ClipRectangle &aClipRectangle) const |
| Calculates the clip flags for a point.
|
bool | getEdge (const VECTOR2D &aStart, const VECTOR2D &aEnd, PolygonEdge &aEdge, const ClipRectangle &aClipRectangle) const |
| Creates a polygon edge between two vectors.
|
bool | getVerticalEdge (RATIONAL aStartY, RATIONAL aEndY, RATIONAL aX, PolygonEdge &aEdge, const ClipRectangle &aClipRectangle) const |
| Creates a vertical polygon edge between two y values.
|
int | getScanEdge (VertexData *aVertexData, short aWinding, PolygonScanEdge *aEdges, const ClipRectangle &aClipRectangle) const |
| Returns the edge(s) between two vertices in aVertexData.
|
Protected Attributes |
int | mVertexCount |
VECTOR2D * | mVertices |
VertexData * | mVertexData |