CartoType API
Public Member Functions | Protected Member Functions
CartoType::TFlattenTraverser Class Reference

#include <cartotype_flatten.h>

Inheritance diagram for CartoType::TFlattenTraverser:
CartoType::MPathTraverser

List of all members.

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 TPointFixedCurrentPoint () const

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files: