#include <PolygonTester.h>
Public Member Functions | |
PolygonTester () | |
Constructor. | |
bool | init (VectorGraphic **aVectorGraphics, char **aVectorGraphicNames, int aVectorGraphicCount, Renderer **aFillers, char **aFillerNames, int aFillerCount) |
Initializer. | |
~PolygonTester () | |
Destructor. | |
int | getIterationCount () |
Returns the iteration count of the tester. | |
void | setIterationCount (int aIterationCount) |
Sets the iteration count for each test. The default value is 1000. | |
void | setPivot (const VECTOR2D &aPivot) |
Sets the pivot (rotation center) for the polygon tester. | |
void | setMovement (const VECTOR2D &aMovement) |
Sets the movement, i.e. the change of translation per tick for the tester. | |
void | setRotationSpeed (RATIONAL aRotationSpeed) |
Sets the rotation speed, i.e. the change of rotation per tick for the tester. | |
void | setScale (RATIONAL aScale) |
Sets the scale for the transformations. | |
void | setScale (RATIONAL aScale, int aVectorGraphic) |
Sets the scale for the transformation of the given graphic. | |
void | runTest (RenderTargetWrapper *aTarget) |
Runs one iteration of the test. This renders the graphic to aTarget. | |
int | getTestCount () |
Returns the amount of tests done. | |
int | getFillerCount () |
Returns the total amount of fillers. | |
int | getVectorGraphicCount () |
Returns the total amount of vector graphics. | |
int | getTiming (int aIndex) |
Returns the timing for a test at given index. | |
int | getCount (int aIndex) |
Returns the count for a test at given index. | |
bool | isReady () |
Returns true if the test is finsihed. | |
const char * | getVectorGraphicName (int aIndex) |
Returns the vector graphic name for a test at given index. | |
const char * | getFillerName (int aIndex) |
Returns the filler name for a test at given index. | |
VectorGraphic * | getVectorGraphic (int aIndex) |
Returns the vector graphic for a test at given index. | |
Renderer * | getFiller (int aIndex) |
Returns the filler for a test at given index. | |
bool | saveResults (const char *aFileName) |
Writes the results of the tests to a file with given name. | |
void | restart () |
Restarts the tests. | |
Protected Member Functions | |
void | updateTransformation (MATRIX2D &aTransformation) |
Updates the transformation and calculates it to a matrix. | |
void | beginTest (int aTestIndex) |
Begins a new test. | |
Protected Attributes | |
VectorGraphic ** | mVectorGraphics |
The vector graphics to be used in the test. | |
char ** | mVectorGraphicNames |
The names for the vector graphics. | |
int | mVectorGraphicCount |
Amount of vector graphics. | |
Renderer ** | mFillers |
The polygon fillers being tested. | |
char ** | mFillerNames |
The names of the fillers. | |
int | mFillerCount |
Amount of fillers. | |
int | mIterationCount |
Amount of iterations per test. | |
int * | mTestTimings |
Test result array. | |
int * | mTestCounts |
Count of ticks per test. | |
int | mCurrentTest |
Current test number. | |
int | mCurrentIteration |
Current iteration count. | |
VECTOR2D | mPivot |
Pivot for the rotations. | |
VECTOR2D | mMovement |
Movement, i.e. the change of rotation per tick for the tester. | |
RATIONAL | mRotationSpeed |
Rotation speed, i.e. the change of rotation per tick for the tester. | |
VECTOR2D | mCurrentTranslation |
Current translation. | |
RATIONAL | mCurrentRotation |
Current rotation. | |
RATIONAL | mScale |
Global scale factor. | |
RATIONAL * | mScales |
Scale factors for the vector graphics. |
|
Constructor.
|
|
Destructor.
|
|
Begins a new test.
|
|
Returns the count for a test at given index.
|
|
Returns the filler for a test at given index.
|
|
Returns the total amount of fillers.
|
|
Returns the filler name for a test at given index.
|
|
Returns the iteration count of the tester.
|
|
Returns the amount of tests done.
|
|
Returns the timing for a test at given index.
|
|
Returns the vector graphic for a test at given index.
|
|
Returns the total amount of vector graphics.
|
|
Returns the vector graphic name for a test at given index.
|
|
Initializer. Note that the ownership of aVectorGraphics, aFillers, aVectorGraphicNames and aFillerNames is transferred. |
|
Returns true if the test is finsihed.
|
|
Restarts the tests.
|
|
Runs one iteration of the test. This renders the graphic to aTarget.
|
|
Writes the results of the tests to a file with given name.
|
|
Sets the iteration count for each test. The default value is 1000.
|
|
Sets the movement, i.e. the change of translation per tick for the tester.
|
|
Sets the pivot (rotation center) for the polygon tester.
|
|
Sets the rotation speed, i.e. the change of rotation per tick for the tester.
|
|
Sets the scale for the transformation of the given graphic.
|
|
Sets the scale for the transformations.
|
|
Updates the transformation and calculates it to a matrix.
|
|
Current iteration count.
|
|
Current rotation.
|
|
Current test number.
|
|
Current translation.
|
|
Amount of fillers.
|
|
The names of the fillers.
|
|
The polygon fillers being tested.
|
|
Amount of iterations per test.
|
|
Movement, i.e. the change of rotation per tick for the tester.
|
|
Pivot for the rotations.
|
|
Rotation speed, i.e. the change of rotation per tick for the tester.
|
|
Global scale factor.
|
|
Scale factors for the vector graphics.
|
|
Count of ticks per test.
|
|
Test result array.
|
|
Amount of vector graphics.
|
|
The names for the vector graphics.
|
|
The vector graphics to be used in the test.
|