TestPattern Class Reference

A utility class for constructing test patterns. More...

#include <TestPattern.h>

List of all members.

Static Public Member Functions

static VectorGraphicsiemensStar (RATIONAL aSize, int aSegments, RATIONAL aRotation, const VECTOR2D &aCenter, RENDERER_FILLMODE aFillMode, unsigned long aColor, PolygonFactory *aFactory, const char *aSVGDumpName, const char *aBinaryDumpName)
 Creates a siemens star test pattern.
static VectorGraphicfilledStar (RATIONAL aSize, int aSegments, RATIONAL aFillSize, RATIONAL aRotation, const VECTOR2D &aCenter, RENDERER_FILLMODE aFillMode, unsigned long aColor, PolygonFactory *aFactory, const char *aSVGDumpName, const char *aBinaryDumpName)
 Creates a star test pattern with a fill in the middle.
static VectorGraphiccircles (RATIONAL aSize, RATIONAL aWidth, int aSegments, int aCount, const VECTOR2D &aCenter, RENDERER_FILLMODE aFillMode, unsigned long aColor, PolygonFactory *aFactory, const char *aSVGDumpName, const char *aBinaryDumpName)
 Creates a test pattern of concentric circles.
static VectorGraphicrandomPolygon (RATIONAL aSize, int aVertexCount, int aSeed, RATIONAL aMinStep, RATIONAL aMaxStep, const VECTOR2D &aCenter, RENDERER_FILLMODE aFillMode, unsigned long aColor, PolygonFactory *aFactory, const char *aSVGDumpName, const char *aBinaryDumpName)
 Creates a test pattern of random polygon.
static VectorGraphicstar (RATIONAL aSize, int aSpikeCount, const VECTOR2D &aCenter, RENDERER_FILLMODE aFillMode, unsigned long aColor, PolygonFactory *aFactory, const char *aSVGDumpName, const char *aBinaryDumpName)
 Creates a test pattern of a star.
static VectorGraphiccheckers (RATIONAL aSize, int aCount, const VECTOR2D &aCenter, RENDERER_FILLMODE aFillMode, unsigned long aColor, PolygonFactory *aFactory, const char *aSVGDumpName, const char *aBinaryDumpName)
 Creates a test pattern of a checker board.
static VectorGraphicsquares (RATIONAL aSquareSize, RATIONAL aGridCellSize, int aGridSteps, int aSubPolygonCount, RATIONAL aSizeDelta, int aSegmentCount, const VECTOR2D &aCenter, RENDERER_FILLMODE aFillMode, unsigned long aColor, unsigned long aColorDelta, PolygonFactory *aFactory, const char *aSVGDumpName, const char *aBinaryDumpName)
 Creates a test pattern of a set of squares.
static VectorGraphicqtPolygon (int aIndex, RENDERER_FILLMODE aFillMode, unsigned long aColor, PolygonFactory *aFactory, const char *aSVGDumpName, const char *aBinaryDumpName)
 Creates a test polygon with Zack Rusin's QT test polygons (from http://ktown.kde.org/~zrusin/complex.data).

Static Protected Member Functions

static RATIONAL * starVertices (RATIONAL aSize, int aCount, const VECTOR2D &aCenter, RATIONAL aStartAngle, RATIONAL aAngleDelta)
 Creates a set of vertices for a star.


Detailed Description

A utility class for constructing test patterns.


Member Function Documentation

VectorGraphic * TestPattern::checkers RATIONAL  aSize,
int  aCount,
const VECTOR2D &  aCenter,
RENDERER_FILLMODE  aFillMode,
unsigned long  aColor,
PolygonFactory aFactory,
const char *  aSVGDumpName,
const char *  aBinaryDumpName
[static]
 

Creates a test pattern of a checker board.

VectorGraphic * TestPattern::circles RATIONAL  aSize,
RATIONAL  aWidth,
int  aSegments,
int  aCount,
const VECTOR2D &  aCenter,
RENDERER_FILLMODE  aFillMode,
unsigned long  aColor,
PolygonFactory aFactory,
const char *  aSVGDumpName,
const char *  aBinaryDumpName
[static]
 

Creates a test pattern of concentric circles.

Note that the winding direction for all circles is the same, so non-zero winding fill rule should produce just one large disk.

VectorGraphic * TestPattern::filledStar RATIONAL  aSize,
int  aSegments,
RATIONAL  aFillSize,
RATIONAL  aRotation,
const VECTOR2D &  aCenter,
RENDERER_FILLMODE  aFillMode,
unsigned long  aColor,
PolygonFactory aFactory,
const char *  aSVGDumpName,
const char *  aBinaryDumpName
[static]
 

Creates a star test pattern with a fill in the middle.

VectorGraphic * TestPattern::qtPolygon int  aIndex,
RENDERER_FILLMODE  aFillMode,
unsigned long  aColor,
PolygonFactory aFactory,
const char *  aSVGDumpName,
const char *  aBinaryDumpName
[static]
 

Creates a test polygon with Zack Rusin's QT test polygons (from http://ktown.kde.org/~zrusin/complex.data).

aIndex should be in the range of 0 to 2.

VectorGraphic * TestPattern::randomPolygon RATIONAL  aSize,
int  aVertexCount,
int  aSeed,
RATIONAL  aMinStep,
RATIONAL  aMaxStep,
const VECTOR2D &  aCenter,
RENDERER_FILLMODE  aFillMode,
unsigned long  aColor,
PolygonFactory aFactory,
const char *  aSVGDumpName,
const char *  aBinaryDumpName
[static]
 

Creates a test pattern of random polygon.

VectorGraphic * TestPattern::siemensStar RATIONAL  aSize,
int  aSegments,
RATIONAL  aRotation,
const VECTOR2D &  aCenter,
RENDERER_FILLMODE  aFillMode,
unsigned long  aColor,
PolygonFactory aFactory,
const char *  aSVGDumpName,
const char *  aBinaryDumpName
[static]
 

Creates a siemens star test pattern.

VectorGraphic * TestPattern::squares RATIONAL  aSquareSize,
RATIONAL  aGridCellSize,
int  aGridSteps,
int  aSubPolygonCount,
RATIONAL  aSizeDelta,
int  aSegmentCount,
const VECTOR2D &  aCenter,
RENDERER_FILLMODE  aFillMode,
unsigned long  aColor,
unsigned long  aColorDelta,
PolygonFactory aFactory,
const char *  aSVGDumpName,
const char *  aBinaryDumpName
[static]
 

Creates a test pattern of a set of squares.

VectorGraphic * TestPattern::star RATIONAL  aSize,
int  aSpikeCount,
const VECTOR2D &  aCenter,
RENDERER_FILLMODE  aFillMode,
unsigned long  aColor,
PolygonFactory aFactory,
const char *  aSVGDumpName,
const char *  aBinaryDumpName
[static]
 

Creates a test pattern of a star.

RATIONAL * TestPattern::starVertices RATIONAL  aSize,
int  aCount,
const VECTOR2D &  aCenter,
RATIONAL  aStartAngle,
RATIONAL  aAngleDelta
[static, protected]
 

Creates a set of vertices for a star.


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