![]() |
wxPdfDocument
1.4.0
Library for generating PDF documents from wxWidgets applications
|
Class representing a shape consisting of line and curve segments. More...
#include <pdfshape.h>
Public Member Functions | |
| wxPdfShape () | |
| Constructor. | |
| virtual | ~wxPdfShape () |
| Destructor. | |
| void | MoveTo (double x, double y) |
| Begin a new subpath of the shape. | |
| void | LineTo (double x, double y) |
| Add line segment to the shape. | |
| void | CurveTo (double x1, double y1, double x2, double y2, double x3, double y3) |
| Add a cubic Bézier curve to the shape. | |
| void | ClosePath () |
| Close (sub)path of the shape. | |
| unsigned int | GetSegmentCount () const |
| Get the number of segments of the shape. | |
| wxPdfSegmentType | GetSegment (int iterType, int iterPoints, double coords[]) const |
| Get a specific segment of the shape (for internal use only). | |
Class representing a shape consisting of line and curve segments.
| wxPdfShape::wxPdfShape | ( | ) |
Constructor.
|
virtual |
Destructor.
| void wxPdfShape::ClosePath | ( | ) |
Close (sub)path of the shape.
Appends a closepath segment to the current subpath.
| void wxPdfShape::CurveTo | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| double | x3, | ||
| double | y3 ) |
Add a cubic Bézier curve to the shape.
Append a cubic Bézier curve to the current path. The curve extends from the current point to the point (x3, y3), using (x1, y1) and (x2, y2) as the Bézier control points. The new current point is (x3, y3).
| x1 | Abscissa of control point 1 |
| y1 | Ordinate of control point 1 |
| x2 | Abscissa of control point 2 |
| y2 | Ordinate of control point 2 |
| x3 | Abscissa of end point |
| y3 | Ordinate of end point |
| wxPdfSegmentType wxPdfShape::GetSegment | ( | int | iterType, |
| int | iterPoints, | ||
| double | coords[] ) const |
Get a specific segment of the shape (for internal use only).
| [in] | iterType | index of segment in segment type array |
| [in] | iterPoints | index of segment in segment coordinate array |
| [out] | coords | array of segment coordinates (size: >= 8) |
|
inline |
Get the number of segments of the shape.
| void wxPdfShape::LineTo | ( | double | x, |
| double | y ) |
Add line segment to the shape.
Append a straight line segment from the current point to the point (x, y). The new current point is (x, y).
| x | abscissa value |
| y | ordinate value |
| void wxPdfShape::MoveTo | ( | double | x, |
| double | y ) |
Begin a new subpath of the shape.
Move to the starting point of a new (sub)path. The new current point is (x, y).
| x | abscissa value |
| y | ordinate value |