wxPdfDocument  1.4.0
Library for generating PDF documents from wxWidgets applications
Loading...
Searching...
No Matches
wxPdfFlatPath Class Reference

Class representing a flattened path. More...

#include <pdfgraphics.h>

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 Bézier 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::wxPdfFlatPath ( const wxPdfShape * shape,
double flatness = 1,
int limit = 10 )

Constructor.

Parameters
shapeAssociated shape
flatnessFlatness tolerance (default: 1)
limitRecursion limit (default: 10)

◆ ~wxPdfFlatPath()

virtual wxPdfFlatPath::~wxPdfFlatPath ( )
virtual

Destructor.

Member Function Documentation

◆ CurrentSegment()

int wxPdfFlatPath::CurrentSegment ( double coords[])

Get current path segment.

Parameters
[out]coordscoordinates of current segment
Returns
current segment type

◆ FetchSegment()

void wxPdfFlatPath::FetchSegment ( )

Fetch current path segment.

◆ InitIter()

void wxPdfFlatPath::InitIter ( )

Initialize path iterator.

◆ IsDone()

bool wxPdfFlatPath::IsDone ( )
inline

Check whether path iterator is done.

Returns
true if the iterator is done, false otherwise

◆ MeasurePathLength()

double wxPdfFlatPath::MeasurePathLength ( )

Measure flattened path length.

Returns
The length of the flattened path

◆ Next()

void wxPdfFlatPath::Next ( )

Advance path iterator.

◆ SubdivideCubic()

void wxPdfFlatPath::SubdivideCubic ( )

Subdivide cubic Bézier curve path.


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