|
CartoType API
|
#include <cartotype_flatten.h>
Public Member Functions | |
| TFlattenTraverser (int32 aFractionalPixelBits, TFixed aMaxDistance) | |
| virtual TResult | FlatLine (const TLineFixed &aLine)=0 |
| void | SetFractionalBits (int32 aFractionalPixelBits) |
Protected Member Functions | |
| CT_IMPORT TResult | MoveTo (const TPoint &aPoint, bool aClosed) |
| const TPointFixed & | CurrentPoint () const |
This abstract class traverses a path and converts any curves into a series of straight lines, expressed in 16.16 fixed-point coordinates, which it passes to the virtual function FlatLine, which must be implemented by the derived class.
| CartoType::TFlattenTraverser::TFlattenTraverser | ( | int32 | aFractionalPixelBits, |
| TFixed | aMaxDistance | ||
| ) | [inline] |
Create a TFlattenTraverser object.
aFractionalPixelBits is the number of fractional pixels in the points in the outline or contour.
aMaxDistance is the maximum distance of any control point from any of the resulting straight lines.
| virtual TResult CartoType::TFlattenTraverser::FlatLine | ( | const TLineFixed & | aLine | ) | [pure virtual] |
Handle a line segment emitted by the traverser.
| CT_EXPORT TResult TFlattenTraverser::MoveTo | ( | const TPoint & | aPoint, |
| bool | aClosed | ||
| ) | [protected, virtual] |
Start a new contour. Move to aPoint without drawing a line and set the current point to aPoint. The argument aClosed states whether the contour is closed.
Implements CartoType::MPathTraverser.
| void CartoType::TFlattenTraverser::SetFractionalBits | ( | int32 | aFractionalPixelBits | ) | [inline] |
Set the number of fractional bits used in coordinates.
1.7.5.1