wxPdfFlatPath Class Reference

Class representing a flattened path. More...

#include <pdfgraphics.h>

List of all members.

Public Member Functions

 wxPdfFlatPath (const wxPdfShape *shape, double flatness=1, int limit=10)
 Constructor.
virtual ~wxPdfFlatPath ()
 Destructor.
void InitIter ()
 Initialize path iterator.
void FetchSegment ()
 Fetch current path segment.
void Next ()
 Advance path iterator.
int CurrentSegment (double coords[])
 Get current path segment.
void SubdivideCubic ()
 Subdivide cubic bezier curve path.
bool IsDone ()
 Check whether path iterator is done.
double MeasurePathLength ()
 Measure flattened path length.


Detailed Description

Class representing a flattened path.


Constructor & Destructor Documentation

wxPdfFlatPath::wxPdfFlatPath ( const wxPdfShape shape,
double  flatness = 1,
int  limit = 10 
)

Constructor.

wxPdfFlatPath::~wxPdfFlatPath (  )  [virtual]

Destructor.


Member Function Documentation

void wxPdfFlatPath::InitIter (  ) 

Initialize path iterator.

void wxPdfFlatPath::FetchSegment (  ) 

Fetch current path segment.

Fetches the next segment from the source iterator.

void wxPdfFlatPath::Next (  ) 

Advance path iterator.

int wxPdfFlatPath::CurrentSegment ( double  coords[]  ) 

Get current path segment.

Parameters:
[out] coords coordinates of current segment
Returns:
current segment type

void wxPdfFlatPath::SubdivideCubic (  ) 

Subdivide cubic bezier curve path.

Repeatedly subdivides the cubic curve segment that is on top of the stack. The iteration terminates when the recursion limit has been reached, or when the resulting segment is flat enough.

bool wxPdfFlatPath::IsDone (  )  [inline]

Check whether path iterator is done.

double wxPdfFlatPath::MeasurePathLength (  ) 

Measure flattened path length.


The documentation for this class was generated from the following files:
Generated on Fri Dec 15 21:30:37 2006 for wxPdfDocument by  doxygen 1.5.1-p1