|
wxMaxima
|
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. | |
Class representing a flattened path.
| wxPdfFlatPath::wxPdfFlatPath | ( | const wxPdfShape * | shape, |
| double | flatness = 1, |
||
| int | limit = 10 |
||
| ) |
Constructor.
| shape | Associated shape |
| flatness | Flatness tolerance (default: 1) |
| limit | Recursion limit (default: 10) |
| int wxPdfFlatPath::CurrentSegment | ( | double | coords[] | ) |
Get current path segment.
| [out] | coords | coordinates of current segment |
| void wxPdfFlatPath::FetchSegment | ( | ) |
Fetch current path segment.
Fetches the next segment from the source iterator.
|
inline |
Check whether path iterator is done.
true if the iterator is done, false otherwise | double wxPdfFlatPath::MeasurePathLength | ( | ) |
Measure flattened path length.
| void wxPdfFlatPath::SubdivideCubic | ( | ) |
Subdivide cubic Bézier 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.