Lines Matching refs:nPnt
79 inline sal_uInt16 GetPrevPnt(sal_uInt16 nPnt, sal_uInt16 nPntMax, FASTBOOL bClosed) in GetPrevPnt() argument
81 if (nPnt>0) { in GetPrevPnt()
82 nPnt--; in GetPrevPnt()
84 nPnt=nPntMax; in GetPrevPnt()
85 if (bClosed) nPnt--; in GetPrevPnt()
87 return nPnt; in GetPrevPnt()
90 inline sal_uInt16 GetNextPnt(sal_uInt16 nPnt, sal_uInt16 nPntMax, FASTBOOL bClosed) in GetNextPnt() argument
92 nPnt++; in GetNextPnt()
93 if (nPnt>nPntMax || (bClosed && nPnt>=nPntMax)) nPnt=0; in GetNextPnt()
94 return nPnt; in GetNextPnt()
103 sal_uInt16 nPnt; // Punktnummer innerhalb des obigen Polygons member
169 nPnt=(sal_uInt16)rHdl.GetPointNum(); // Punktnummer innerhalb des obigen Polygons in ImpSdrPathDragData()
174 bBegPnt=!bClosed && nPnt==0; // Gedraggter Punkt ist der Anfangspunkt einer Polyline in ImpSdrPathDragData()
175 bEndPnt=!bClosed && nPnt==nPntMax; // Gedraggter Punkt ist der Endpunkt einer Polyline in ImpSdrPathDragData()
177 bBegPnt=(nPntAnz<3) || nPnt==0; in ImpSdrPathDragData()
178 bEndPnt=(nPntAnz<3) || nPnt==nPntMax-1; in ImpSdrPathDragData()
180 nPrevPnt=nPnt; // Index des vorherigen Punkts in ImpSdrPathDragData()
181 nNextPnt=nPnt; // Index des naechsten Punkts in ImpSdrPathDragData()
182 if (!bBegPnt) nPrevPnt=GetPrevPnt(nPnt,nPntMax,bClosed); in ImpSdrPathDragData()
183 if (!bEndPnt) nNextPnt=GetNextPnt(nPnt,nPntMax,bClosed); in ImpSdrPathDragData()
186 nPrevPrevPnt=nPnt; // Index des vorvorherigen Punkts in ImpSdrPathDragData()
187 nNextNextPnt=nPnt; // Index des uebernaechsten Punkts in ImpSdrPathDragData()
204 nPnt0 =nPnt; in ImpSdrPathDragData()
209 nPnt=2; in ImpSdrPathDragData()
669 …sal_uInt16 nPnt =mpSdrPathDragData->nPnt ; // Punktnummer innerhalb des obigen… in movePathDrag() local
688 Point aPnt(mpSdrPathDragData->aXP[nPnt]); // der gedraggte Punkt in movePathDrag()
780 Point aDiff(rDrag.GetNow()); aDiff-=mpSdrPathDragData->aXP[nPnt]; in movePathDrag()
795 mpSdrPathDragData->aXP[nPnt]+=aDiff; in movePathDrag()
799 sal_uInt16 nSt=nPnt; // der zugehoerige Stuetzpunkt in movePathDrag()
800 sal_uInt16 nFix=nPnt; // der gegenueberliegende Kontrollpunkt in movePathDrag()
809 mpSdrPathDragData->aXP.CalcSmoothJoin(nSt,nPnt,nFix); in movePathDrag()
818 if (mpSdrPathDragData->aXP.IsSmooth(nPnt)) { in movePathDrag()
820 mpSdrPathDragData->aXP.CalcSmoothJoin(nPnt,nNextPnt,nPrevPnt); in movePathDrag()
823 mpSdrPathDragData->aXP.CalcSmoothJoin(nPnt,nPrevPnt,nNextPnt); in movePathDrag()
831 mpSdrPathDragData->aXP.CalcSmoothJoin(nPrevPnt,nPnt,nPrevPrevPnt); in movePathDrag()
836 mpSdrPathDragData->aXP.CalcSmoothJoin(nNextPnt,nPnt,nNextNextPnt); in movePathDrag()
878 rXP[mpSdrPathDragData->nPnt0] =mpSdrPathDragData->aXP[mpSdrPathDragData->nPnt]; in endPathDrag()
886 sal_uInt32 nPoly,nPnt; in endPathDrag() local
888 …gonEditor::GetRelativePolyPoint(aTempPolyPolygon, rDrag.GetHdl()->GetSourceHdlNum(), nPoly, nPnt)) in endPathDrag()
891 aCandidate.remove(nPnt); in endPathDrag()
1189 …sal_uInt16 nPnt =mpSdrPathDragData->nPnt ; // Punktnummer innerhalb des Polygo… in getSpecialDragPoly() local
1209 aLine1[1]=mpSdrPathDragData->aXP[nPnt]; in getSpecialDragPoly()
2092 sal_uInt16 nPnt = (sal_uInt16)rHdl.GetPointNum(); in GetPlusHdlCount() local
2102 if (nPnt<=nPntMax) in GetPlusHdlCount()
2104 if (rXPoly.GetFlags(nPnt)!=XPOLY_CONTROL) in GetPlusHdlCount()
2106 if (nPnt==0 && IsClosed()) nPnt=nPntMax; in GetPlusHdlCount()
2107 if (nPnt>0 && rXPoly.GetFlags(nPnt-1)==XPOLY_CONTROL) nCnt++; in GetPlusHdlCount()
2108 if (nPnt==nPntMax && IsClosed()) nPnt=0; in GetPlusHdlCount()
2109 if (nPnt<nPntMax && rXPoly.GetFlags(nPnt+1)==XPOLY_CONTROL) nCnt++; in GetPlusHdlCount()
2123 sal_uInt16 nPnt = (sal_uInt16)rHdl.GetPointNum(); in GetPlusHdl() local
2134 if (nPnt<=nPntMax) in GetPlusHdl()
2139 if (nPnt==0 && IsClosed()) nPnt=nPntMax; in GetPlusHdl()
2140 if (nPnt>0 && rXPoly.GetFlags(nPnt-1)==XPOLY_CONTROL && nPlusNum==0) in GetPlusHdl()
2142 pHdl->SetPos(rXPoly[nPnt-1]); in GetPlusHdl()
2143 pHdl->SetPointNum(nPnt-1); in GetPlusHdl()
2147 if (nPnt==nPntMax && IsClosed()) nPnt=0; in GetPlusHdl()
2148 if (nPnt<rXPoly.GetPointCount()-1 && rXPoly.GetFlags(nPnt+1)==XPOLY_CONTROL) in GetPlusHdl()
2150 pHdl->SetPos(rXPoly[nPnt+1]); in GetPlusHdl()
2151 pHdl->SetPointNum(nPnt+1); in GetPlusHdl()
2479 sal_uInt32 nPoly,nPnt; in GetSnapPoint() local
2480 if(!PolyPolygonEditor::GetRelativePolyPoint(GetPathPoly(), nSnapPnt, nPoly, nPnt)) in GetSnapPoint()
2485 const basegfx::B2DPoint aB2DPoint(GetPathPoly().getB2DPolygon(nPoly).getB2DPoint(nPnt)); in GetSnapPoint()
2510 sal_uInt32 nPoly,nPnt; in GetPoint() local
2512 if(PolyPolygonEditor::GetRelativePolyPoint(GetPathPoly(), nHdlNum, nPoly, nPnt)) in GetPoint()
2515 const basegfx::B2DPoint aPoint(aPoly.getB2DPoint(nPnt)); in GetPoint()
2524 sal_uInt32 nPoly,nPnt; in NbcSetPoint() local
2526 if(PolyPolygonEditor::GetRelativePolyPoint(GetPathPoly(), nHdlNum, nPoly, nPnt)) in NbcSetPoint()
2529 aNewPolygon.setB2DPoint(nPnt, basegfx::B2DPoint(rPnt.X(), rPnt.Y())); in NbcSetPoint()
2700 sal_uInt32 nPoly, nPnt; in RipPoint() local
2702 if(PolyPolygonEditor::GetRelativePolyPoint(aLocalPolyPolygon, nHdlNum, nPoly, nPnt)) in RipPoint()
2715 basegfx::B2DPolygon aNewPolygon(basegfx::tools::makeStartPoint(aCandidate, nPnt)); in RipPoint()
2720 rNewPt0Index = (nPointCount - nPnt) % nPointCount; in RipPoint()
2724 if(nPointCount >= 3L && nPnt != 0L && nPnt + 1L < nPointCount) in RipPoint()
2727 basegfx::B2DPolygon aSplitPolyA(aCandidate, 0L, nPnt + 1L); in RipPoint()
2731 basegfx::B2DPolygon aSplitPolyB(aCandidate, nPnt, nPointCount - nPnt); in RipPoint()