|
CartoType API
|
#include <cartotype_graphics.h>
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 |
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.
| 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.
| 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.
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.
1.7.5.1