35 bool bPolyPolyChanged =
false;
37 auto aIter( rAbsPoints.
rbegin() );
38 for( ; aIter != rAbsPoints.
rend(); ++aIter )
40 sal_uInt32 nPoly, nPnt;
49 if( aCandidate.
count() < 2 )
58 bPolyPolyChanged =
true;
62 return bPolyPolyChanged;
67 bool bPolyPolyChanged =
false;
69 auto aIter( rAbsPoints.
rbegin() );
70 for( ; aIter != rAbsPoints.
rend(); ++aIter )
72 sal_uInt32 nPolyNum, nPntNum;
82 bool bCandidateChanged(
false);
85 const sal_uInt32 nNextIndex((nPntNum + 1) %
nCount);
96 bCandidateChanged =
true;
109 bCandidateChanged =
true;
113 if(bCandidateChanged)
116 bPolyPolyChanged =
true;
122 return bPolyPolyChanged;
127 bool bPolyPolygonChanged(
false);
129 auto aIter( rAbsPoints.
rbegin() );
130 for( ; aIter != rAbsPoints.
rend(); ++aIter )
132 sal_uInt32 nPolyNum, nPntNum;
146 bPolyPolygonChanged =
true;
151 return bPolyPolygonChanged;
156 const sal_uInt32 nPolyCount(rPoly.
count());
157 sal_uInt32 nPolyNum(0);
159 while(nPolyNum < nPolyCount)
163 if(nAbsPnt < nPointCount)
173 nAbsPnt -= nPointCount;
B2DPolygon const & getB2DPolygon(sal_uInt32 nIndex) const
void setB2DPolygon(sal_uInt32 nIndex, const B2DPolygon &rPolygon)
void remove(sal_uInt32 nIndex, sal_uInt32 nCount=1)
bool isPrevControlPointUsed(sal_uInt32 nIndex) const
bool isNextControlPointUsed(sal_uInt32 nIndex) const
void resetNextControlPoint(sal_uInt32 nIndex)
void setPrevControlPoint(sal_uInt32 nIndex, const basegfx::B2DPoint &rValue)
basegfx::B2DPoint const & getB2DPoint(sal_uInt32 nIndex) const
void setNextControlPoint(sal_uInt32 nIndex, const basegfx::B2DPoint &rValue)
bool areControlPointsUsed() const
void resetPrevControlPoint(sal_uInt32 nIndex)
void remove(sal_uInt32 nIndex, sal_uInt32 nCount=1)
const_reverse_iterator rend() const
const_reverse_iterator rbegin() const
bool SetPointsSmooth(basegfx::B2VectorContinuity eFlags, const o3tl::sorted_vector< sal_uInt16 > &rAbsPoints)
returns true if the B2DPolyPolygon was changed.
static bool GetRelativePolyPoint(const basegfx::B2DPolyPolygon &rPoly, sal_uInt32 nAbsPnt, sal_uInt32 &rPolyNum, sal_uInt32 &rPointNum)
Outputs the relative position ( polygon number and point number in that polygon ) from the absolute p...
basegfx::B2DPolyPolygon maPolyPolygon
PolyPolygonEditor(const basegfx::B2DPolyPolygon &rPolyPolygon)
bool DeletePoints(const o3tl::sorted_vector< sal_uInt16 > &rAbsPoints)
returns true if the B2DPolyPolygon was changed.
bool SetSegmentsKind(SdrPathSegmentKind eKind, const o3tl::sorted_vector< sal_uInt16 > &rAbsPoints)
returns true if the B2DPolyPolygon was changed.
bool expandToCurveInPoint(B2DPolygon &rCandidate, sal_uInt32 nIndex)
bool setContinuityInPoint(B2DPolygon &rCandidate, sal_uInt32 nIndex, B2VectorContinuity eContinuity)
HSLColor interpolate(const HSLColor &rFrom, const HSLColor &rTo, double t, bool bCCW)