Comprehensive Guide for Developers: Features, Integration, and API Reference
Represents a geometry. More...
#include <pdfsdk/cxx/graphics.h>
Public Member Functions | |
| void | SetFillRule (GXFillRule fillrule) |
| GXFillRule | GetFillRule () const |
| bool | IsPointsEmpty () const |
| bool | IsPointsEqual (const Geometry &rhs) const |
| bool | GetCurrentPoint (PointF *presult) const |
| RectF | GetBound (const Matrix *xform=nullptr) const |
| RectF | GetWidenBound (float lineWidth, const GXStrokeParams ¶ms, const Matrix *xform=nullptr, float flatness=0.75f) const |
| void | BeginFigure (const PointF &point) |
| void | EndFigure () |
| void | EndFigureClose () |
| void | LineTo (const PointF &to) |
| void | CurveTo (const PointF &c, const PointF &to) |
| void | CurveTo (const PointF &c0, const PointF &c1, const PointF &to) |
| void | Rectangle (const RectF &rect) |
| void | Ellipse (const RectF &bound) |
| void | RoundRectangle (const RectF &rect, float xradii, float yradii) |
| Geometry | Copy () const |
| Geometry | Transform (const Matrix &xform) const |
| Geometry | Widen (float width, const GXStrokeParams ¶ms, float flatness=0.75) const |
| Geometry | Combine (GXCombineMode mode, const Geometry &rhs, const Matrix *xform=nullptr, float flatness=0.75) const |
| bool | HitTest (const PointF &point) const |
| Geometry | Simplify (float flatness=0.75) const |
| std::optional< RectF > | IsRectangle (const Matrix &xform=Matrix{}) const |
| bool | IsSingleLine () const |
| size_t | GetNumFigures () const |
| size_t | GetFigureNumSegments (size_t figureindex) const |
| size_t | GetFigureNumPoints (size_t figureindex) const |
| const PointF * | GetFigurePointsPtr (size_t figureindex) const |
| bool | IsFigureSegmentCurve (size_t figureindex, size_t segindex) const |
| size_t | GetFigureSegmentPointsIndex (size_t figureindex, size_t segindex) const |
| bool | IsFigureClosed (size_t figureindex) const |
| Geometry (GXGeometry handle, bool adopt=false) noexcept | |
| Geometry (const Geometry &rhs) noexcept | |
| Geometry & | operator= (const Geometry &rhs) noexcept |
| Geometry (Geometry &&rhs) noexcept | |
| Geometry & | operator= (Geometry &&rhs) noexcept |
Static Public Member Functions | |
| static Geometry | New () |
| static Geometry | NewFromRectangle (const PDF::RectF &rect) |
Represents a geometry.