Class representing a shape consisting of line and curve segments.
More...
#include <pdfshape.h>
|
| 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.
|
|
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::wxPdfShape |
( |
| ) |
|
◆ ~wxPdfShape()
virtual wxPdfShape::~wxPdfShape |
( |
| ) |
|
|
virtual |
◆ ClosePath()
void wxPdfShape::ClosePath |
( |
| ) |
|
Close (sub)path of the shape.
◆ CurveTo()
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).
- Parameters
-
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 |
◆ GetSegment()
wxPdfSegmentType wxPdfShape::GetSegment |
( |
int | iterType, |
|
|
int | iterPoints, |
|
|
double | coords[] ) const |
Get a specific segment of the shape (for internal use only)
- Parameters
-
[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) |
- Returns
- the type of the segment
◆ GetSegmentCount()
unsigned int wxPdfShape::GetSegmentCount |
( |
| ) |
const |
|
inline |
Get the number of segments of the shape.
◆ LineTo()
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).
- Parameters
-
x | abscissa value |
y | ordinate value |
◆ MoveTo()
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).
- Parameters
-
x | abscissa value |
y | ordinate value |
The documentation for this class was generated from the following file: