36 bool bPolyPolyChanged =
false;
38 auto aIter( rAbsPoints.
rbegin() );
39 for( ; aIter != rAbsPoints.
rend(); ++aIter )
41 sal_uInt32 nPoly, nPnt;
50 if( aCandidate.
count() < 2 )
59 bPolyPolyChanged =
true;
63 return bPolyPolyChanged;
68 bool bPolyPolyChanged =
false;
70 auto aIter( rAbsPoints.
rbegin() );
71 for( ; aIter != rAbsPoints.
rend(); ++aIter )
73 sal_uInt32 nPolyNum, nPntNum;
83 bool bCandidateChanged(
false);
86 const sal_uInt32 nNextIndex((nPntNum + 1) %
nCount);
97 bCandidateChanged =
true;
110 bCandidateChanged =
true;
114 if(bCandidateChanged)
117 bPolyPolyChanged =
true;
123 return bPolyPolyChanged;
128 bool bPolyPolygonChanged(
false);
130 auto aIter( rAbsPoints.
rbegin() );
131 for( ; aIter != rAbsPoints.
rend(); ++aIter )
133 sal_uInt32 nPolyNum, nPntNum;
147 bPolyPolygonChanged =
true;
152 return bPolyPolygonChanged;
157 const sal_uInt32 nPolyCount(rPoly.
count());
158 sal_uInt32 nPolyNum(0);
160 while(nPolyNum < nPolyCount)
164 if(nAbsPnt < nPointCount)
174 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
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.
PolyPolygonEditor(basegfx::B2DPolyPolygon aPolyPolygon)
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)