CartoType API
Public Member Functions
CartoType::MPathTraverser Class Reference

#include <cartotype_graphics.h>

Inheritance diagram for CartoType::MPathTraverser:
CartoType::CStroker CartoType::TAntiAliasRender CartoType::TFlattenTraverser CartoType::TFlattenTraverserFP

List of all members.

Public Member Functions

virtual ~MPathTraverser ()
virtual TResult MoveTo (const TPoint &aPoint, bool aClosed)=0
virtual TResult LineTo (const TPoint &aPoint)=0
virtual TResult QuadraticTo (const TPoint &aPoint1, const TPoint &aPoint2)=0
virtual TResult CubicTo (const TPoint &aPoint1, const TPoint &aPoint2, const TPoint &aPoint3)=0

Detailed Description

An interface class for traversing paths. When a path is traversed it is decomposed into a series of operations. There are four different operations: move, traverse a straight line to a point, traverse a quadratic (i.e., conic) Bezier spline, and traverse a cubic Bezier spline.


Constructor & Destructor Documentation

virtual CartoType::MPathTraverser::~MPathTraverser ( ) [inline, virtual]

A virtual destructor: not strictly necessary since pointers to MPathTraverser should never be owned and thus should not be deleted.


Member Function Documentation

virtual TResult CartoType::MPathTraverser::CubicTo ( const TPoint aPoint1,
const TPoint aPoint2,
const TPoint aPoint3 
) [pure virtual]

Draw a cubic spline from the current point to aPoint3, using aPoint1 and aPoint2 as the off-curve control points, and set the current point to aPoint3.

virtual TResult CartoType::MPathTraverser::LineTo ( const TPoint aPoint) [pure virtual]

Draw a line from the current point to aPoint and set the current point to aPoint.

virtual TResult CartoType::MPathTraverser::MoveTo ( const TPoint aPoint,
bool  aClosed 
) [pure 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.

Implemented in CartoType::TFlattenTraverser.

virtual TResult CartoType::MPathTraverser::QuadraticTo ( const TPoint aPoint1,
const TPoint aPoint2 
) [pure virtual]

Draw a quadratic spline from the current point to aPoint2, using aPoint1 as the off-curve control point, and set the current point to aPoint2.


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