#include <pdfproperties.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 Bezier curve to the shape. | |
void | ClosePath () |
Close (sub)path of the shape. | |
size_t | 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). |
wxPdfShape::wxPdfShape | ( | ) |
Constructor.
wxPdfShape::~wxPdfShape | ( | ) | [virtual] |
Destructor.
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 |
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::CurveTo | ( | double | x1, | |
double | y1, | |||
double | x2, | |||
double | y2, | |||
double | x3, | |||
double | y3 | |||
) |
Add a cubic Bezier curve to the shape.
Append a cubic Bezier 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 Bezier 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 |
void wxPdfShape::ClosePath | ( | ) |
Close (sub)path of the shape.
size_t wxPdfShape::GetSegmentCount | ( | ) | const [inline] |
Get the number of segments of the shape.
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) |