PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
PDF::Graphics::Geometry Class Reference

Represents a geometry. More...

#include <pdfsdk/cxx/graphics.h>

Inheritance diagram for PDF::Graphics::Geometry:

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 &params, 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 &params, 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< RectFIsRectangle (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 PointFGetFigurePointsPtr (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
 
Geometryoperator= (const Geometry &rhs) noexcept
 
 Geometry (Geometry &&rhs) noexcept
 
Geometryoperator= (Geometry &&rhs) noexcept
 

Static Public Member Functions

static Geometry New ()
 
static Geometry NewFromRectangle (const PDF::RectF &rect)
 

Detailed Description

Represents a geometry.

See also
GXGeometry

The documentation for this class was generated from the following file: