24#include <com/sun/star/drawing/PointSequenceSequence.hpp>
87 const ::std::vector<double>& rDotDashArray,
89 double fFullDashDotLen = 0.0);
107 : mnPolygonIndex(nPolygonIndex),
108 mnPointIndex(nPointIndex)
153 std::u16string_view rSvgDAttribute,
154 bool bHandleRelativeNextPointCompatible,
239 bool bUseRelativeCoordinates,
240 bool bDetectQuadraticBeziers,
241 bool bHandleRelativeNextPointCompatible,
242 bool bOOXMLMotionPath =
false);
283 const css::drawing::PointSequenceSequence& rPointSequenceSequenceSource);
286 css::drawing::PointSequenceSequence& rPointSequenceSequenceRetval);
290 const css::drawing::PolyPolygonBezierCoords& rPolyPolygonBezierCoordsSource);
293 css::drawing::PolyPolygonBezierCoords& rPolyPolygonBezierCoordsRetval);
#define BASEGFX_DLLPUBLIC
Base Point class with two double values.
A two-dimensional interval over doubles.
Helper class to transport PointIndices to a PolyPolygon, with an operator< for convenient sorting in ...
sal_uInt32 mnPolygonIndex
sal_uInt32 getPolygonIndex() const
PointIndex(sal_uInt32 nPolygonIndex, sal_uInt32 nPointIndex)
sal_uInt32 getPointIndex() const
double getArea(const B2DPolygon &rCandidate)
B2DPolyPolygon reSegmentPolyPolygon(const B2DPolyPolygon &rCandidate, sal_uInt32 nSegments)
void B2DPolyPolygonToUnoPointSequenceSequence(const B2DPolyPolygon &rPolyPolygon, css::drawing::PointSequenceSequence &rPointSequenceSequenceRetval)
o3tl::sorted_vector< PointIndex > PointIndexSet
the PointIndexSet itself; it allows to define a 'selection'of points in a tools::PolyPolygon by givin...
B3DPolyPolygon createB3DPolyPolygonFromB2DPolyPolygon(const B2DPolyPolygon &rCandidate, double fZCoordinate)
B2DPolygon interpolate(const B2DPolygon &rOld1, const B2DPolygon &rOld2, double t)
B2DPolygon expandToCurve(const B2DPolygon &rCandidate)
B2DPolygon growInNormalDirection(const B2DPolygon &rCandidate, double fValue)
B2DPolygon adaptiveSubdivideByDistance(const B2DPolygon &rCandidate, double fDistanceBound, int nRecurseLimit)
void applyLineDashing(const B2DPolygon &rCandidate, const std::vector< double > &rDotDashArray, B2DPolyPolygon *pLineTarget, B2DPolyPolygon *pGapTarget, double fDotDashLength)
B2DPolyPolygon createB2DPolyPolygonFromB3DPolyPolygon(const B3DPolyPolygon &rCandidate, const B3DHomMatrix &rMat)
double getSignedArea(const B2DPolygon &rCandidate)
bool isInside(const B2DPolygon &rCandidate, const B2DPoint &rPoint, bool bWithBorder)
B2DPolyPolygon correctOutmostPolygon(const B2DPolyPolygon &rCandidate)
B2DPoint distort(const B2DPoint &rCandidate, const B2DRange &rOriginal, const B2DPoint &rTopLeft, const B2DPoint &rTopRight, const B2DPoint &rBottomLeft, const B2DPoint &rBottomRight)
B2DPolygon adaptiveSubdivideByAngle(const B2DPolygon &rCandidate, double fAngleBound)
B2DPolyPolygon correctOrientations(const B2DPolyPolygon &rCandidate)
B2DPolygon snapPointsOfHorizontalOrVerticalEdges(const B2DPolygon &rCandidate)
snap some polygon coordinates to discrete coordinates
bool isInEpsilonRange(const B2DPoint &rEdgeStart, const B2DPoint &rEdgeEnd, const B2DPoint &rTestPosition, double fDistance)
bool isRectangle(const B2DPolygon &rPoly)
Predicate whether a given polygon is a rectangle.
OUString exportToSvgD(const B2DPolyPolygon &rPolyPolygon, bool bUseRelativeCoordinates, bool bDetectQuadraticBeziers, bool bHandleRelativeNextPointCompatible, bool bOOXMLMotionPath)
Export poly-polygon to SVG.
B2DPolyPolygon createSevenSegmentPolyPolygon(char nNumber, bool bLitSegments)
Creates polypolygon for seven-segment display number.
B2DPolyPolygon UnoPointSequenceSequenceToB2DPolyPolygon(const css::drawing::PointSequenceSequence &rPointSequenceSequenceSource)
converters for css::drawing::PointSequence
bool importFromSvgD(B2DPolyPolygon &o_rPolyPolygon, std::u16string_view rSvgDStatement, bool bHandleRelativeNextPointCompatible, PointIndexSet *pHelpPointIndexSet)
Read poly-polygon from SVG.
B2DPolygon simplifyCurveSegments(const B2DPolygon &rCandidate)
void B2DPolyPolygonToUnoPolyPolygonBezierCoords(const B2DPolyPolygon &rPolyPolygon, css::drawing::PolyPolygonBezierCoords &rPolyPolygonBezierCoordsRetval)
B2DPolyPolygon UnoPolyPolygonBezierCoordsToB2DPolyPolygon(const css::drawing::PolyPolygonBezierCoords &rPolyPolygonBezierCoordsSource)
converters for css::drawing::PolyPolygonBezierCoords (curved polygons)
B2DRange getRange(const B2DPolygon &rCandidate)
Get the range of a polygon.
double getSmallestDistancePointToPolyPolygon(const B2DPolyPolygon &rCandidate, const B2DPoint &rTestPoint, sal_uInt32 &rPolygonIndex, sal_uInt32 &rEdgeIndex, double &rCut)
bool operator<(const wwFont &r1, const wwFont &r2)