|
Public Member Functions |
| | ShapeMaker () |
| | Constructor.
|
| | ~ShapeMaker () |
| | Destructor.
|
| void | setTransformation (const MATRIX2D &aTransformation) |
| | Sets the transformation matrix.
|
| void | setColor (unsigned int aColor) |
| | Sets the current color.
|
| void | setFillRule (RENDERER_FILLMODE aFillMode) |
| | Sets the current fillrule.
|
| bool | newShape () |
| | Starts a new shape and clears the shape data collected this far.
|
| bool | beginPath () |
| | Begins a new path.
|
| bool | endPath () |
| | Ends the path.
|
| bool | moveToAbsolute (const VECTOR2D &aPosition) |
| | Moves the draw head to an absolute position.
|
| bool | moveToRelative (const VECTOR2D &aPosition) |
| | Moves the draw head to a position relative to the previous one.
|
| bool | lineToAbsolute (const VECTOR2D &aPosition) |
| | Draws a line to an absolute position.
|
| bool | lineToRelative (const VECTOR2D &aPosition) |
| | Draws a line to a position relative to the previous one.
|
| bool | horizontalLineToAbsolute (RATIONAL aX) |
| | Draws a horizontal line to the new x coordinate.
|
| bool | horizontalLineToRelative (RATIONAL aX) |
| | Draws a horizontal line to the new x coordinate, relative to the previous point.
|
| bool | verticalLineToAbsolute (RATIONAL aY) |
| | Draws a vertical line to the new y coordinate.
|
| bool | verticalLineToRelative (RATIONAL aY) |
| | Draws a vertical line to the new y coordinate, relative to the previous point.
|
| bool | curveToAbsolute (const VECTOR2D &aPoint1, const VECTOR2D &aPoint2, const VECTOR2D &aPosition) |
| | Draws a cubic bezier curve to point aPosition, using aPoint1 and aPoint2 as control points.
|
| bool | curveToRelative (const VECTOR2D &aPoint1, const VECTOR2D &aPoint2, const VECTOR2D &aPosition) |
| | Draws a cubic bezier curve to point aPosition, using aPoint1 and aPoint2 as control points.
|
| bool | smoothCurveToAbsolute (const VECTOR2D &aPoint2, const VECTOR2D &aPosition) |
| | Draws a cubic bezier curve to point aPosition, mirroring the first control point from the previous curveTo command and using aPoint2 as second control point.
|
| bool | smoothCurveToRelative (const VECTOR2D &aPoint2, const VECTOR2D &aPosition) |
| | Draws a cubic bezier curve to point aPosition, mirroring the first control point from the previous curveTo command and using aPoint2 as second control point.
|
| bool | quadraticCurveToAbsolute (const VECTOR2D &aPoint, const VECTOR2D &aPosition) |
| | Draws a quadratic bezier curve to point aPosition, using aPoint as the control point.
|
| bool | quadraticCurveToRelative (const VECTOR2D &aPoint, const VECTOR2D &aPosition) |
| | Draws a quadratic bezier curve to point aPosition, using aPoint as the control point.
|
| bool | smoothQuadraticCurveToAbsolute (const VECTOR2D &aPosition) |
| | Draws a quadratic bezier curve to point aPosition, mirroring the control point from the previous curveTo command.
|
| bool | smoothQuadraticCurveToRelative (const VECTOR2D &aPosition) |
| | Draws a quadratic bezier curve to point aPosition, mirroring the control point from the previous curveTo command.
|
| bool | closePath () |
| | Closes the path being drawn.
|
| void | setBezierSteps (int aSteps) |
| | Sets the amount of bezier steps.
|
| const ShapeMaker::ShapeData * | getShapeData () const |
| | Returns a pointer to the shape data gathered since the last call to newShape().
|
Protected Member Functions |
| bool | moveTo (const VECTOR2D &aPosition) |
| | Moves the internal cursor to a new position.
|
| bool | edgeTo (const VECTOR2D &aPosition) |
| | Draws an edge from the previous position to a new position.
|
Protected Attributes |
| ShapeData * | mShapeData |
| MATRIX2D | mTransformation |
| unsigned int | mCurrentColor |
| RENDERER_FILLMODE | mCurrentFillMode |
| int | mBezierSteps |
| VECTOR2D | mCurrentPoint |
| VECTOR2D | mCurrentControlPoint |
| VECTOR2D | mStartPoint |
| VECTOR2D | mInternalCursorPos |
| bool | mInternalCursorMove |
Classes |
| class | ShapeData |
| | Inner class for handling the path data as a set of polygons. More...
|