Lines Matching refs:nPos
212 void ImpXPolygon::InsertSpace( sal_uInt16 nPos, sal_uInt16 nCount ) in InsertSpace() argument
216 if ( nPos > nPoints ) in InsertSpace()
217 nPos = nPoints; in InsertSpace()
225 if( nPos < nPoints ) in InsertSpace()
227 sal_uInt16 nMove = nPoints - nPos; in InsertSpace()
228 memmove( &pPointAry[nPos+nCount], &pPointAry[nPos], in InsertSpace()
230 memmove( &pFlagAry[nPos+nCount], &pFlagAry[nPos], nMove ); in InsertSpace()
232 memset( &pPointAry[nPos], 0, nCount * sizeof( Point ) ); in InsertSpace()
233 memset( &pFlagAry [nPos], 0, nCount ); in InsertSpace()
249 void ImpXPolygon::Remove( sal_uInt16 nPos, sal_uInt16 nCount ) in Remove() argument
253 if( (nPos + nCount) <= nPoints ) in Remove()
255 sal_uInt16 nMove = nPoints - nPos - nCount; in Remove()
259 memmove( &pPointAry[nPos], &pPointAry[nPos+nCount], in Remove()
261 memmove( &pFlagAry[nPos], &pFlagAry[nPos+nCount], nMove ); in Remove()
354 sal_uInt16 nPos = 0; in XPolygon() local
381 GenBezArc(aCenter, nRx, nRy, nXHdl, nYHdl, 0, 900, nQuad, nPos); in XPolygon()
382 pImpXPolygon->pFlagAry[nPos ] = (sal_uInt8) XPOLY_SMOOTH; in XPolygon()
383 pImpXPolygon->pFlagAry[nPos+3] = (sal_uInt8) XPOLY_SMOOTH; in XPolygon()
384 nPos += 4; in XPolygon()
389 pImpXPolygon->pPointAry[nPos++] = rRect.TopLeft(); in XPolygon()
390 pImpXPolygon->pPointAry[nPos++] = rRect.TopRight(); in XPolygon()
391 pImpXPolygon->pPointAry[nPos++] = rRect.BottomRight(); in XPolygon()
392 pImpXPolygon->pPointAry[nPos++] = rRect.BottomLeft(); in XPolygon()
394 pImpXPolygon->pPointAry[nPos] = pImpXPolygon->pPointAry[0]; in XPolygon()
395 pImpXPolygon->nPoints = nPos + 1; in XPolygon()
421 sal_uInt16 nPos = 0; in XPolygon() local
430 GenBezArc(rCenter, nRx, nRy, nXHdl, nYHdl, nA1, nA2, nQuad, nPos); in XPolygon()
431 nPos += 3; in XPolygon()
433 pImpXPolygon->pFlagAry[nPos] = (sal_uInt8) XPOLY_SMOOTH; in XPolygon()
439 pImpXPolygon->pPointAry[++nPos] = rCenter; in XPolygon()
444 pImpXPolygon->pFlagAry[nPos] = (sal_uInt8) XPOLY_SMOOTH; in XPolygon()
446 pImpXPolygon->nPoints = nPos + 1; in XPolygon()
572 void XPolygon::Insert( sal_uInt16 nPos, const Point& rPt, XPolyFlags eFlags ) in Insert() argument
575 if (nPos>pImpXPolygon->nPoints) nPos=pImpXPolygon->nPoints; in Insert()
576 pImpXPolygon->InsertSpace( nPos, 1 ); in Insert()
577 pImpXPolygon->pPointAry[nPos] = rPt; in Insert()
578 pImpXPolygon->pFlagAry[nPos] = (sal_uInt8)eFlags; in Insert()
591 void XPolygon::Insert( sal_uInt16 nPos, const XPolygon& rXPoly ) in Insert() argument
594 if (nPos>pImpXPolygon->nPoints) nPos=pImpXPolygon->nPoints; in Insert()
598 pImpXPolygon->InsertSpace( nPos, nPoints ); in Insert()
600 memcpy( &(pImpXPolygon->pPointAry[nPos]), in Insert()
603 memcpy( &(pImpXPolygon->pFlagAry[nPos]), in Insert()
618 void XPolygon::Insert( sal_uInt16 nPos, const Polygon& rPoly ) in Insert() argument
621 if (nPos>pImpXPolygon->nPoints) nPos=pImpXPolygon->nPoints; in Insert()
625 pImpXPolygon->InsertSpace( nPos, nPoints ); in Insert()
644 void XPolygon::Remove( sal_uInt16 nPos, sal_uInt16 nCount ) in Remove() argument
647 pImpXPolygon->Remove( nPos, nCount ); in Remove()
719 const Point& XPolygon::operator[]( sal_uInt16 nPos ) const in operator []()
721 DBG_ASSERT(nPos < pImpXPolygon->nPoints, "Ungueltiger Index bei const-Arrayzugriff auf XPolygon"); in operator []()
724 return pImpXPolygon->pPointAry[nPos]; in operator []()
737 Point& XPolygon::operator[]( sal_uInt16 nPos ) in operator []() argument
742 if( nPos >= pImpXPolygon->nSize ) in operator []()
745 pImpXPolygon->Resize(nPos + 1, sal_False); in operator []()
747 if( nPos >= pImpXPolygon->nPoints ) in operator []()
748 pImpXPolygon->nPoints = nPos + 1; in operator []()
750 return pImpXPolygon->pPointAry[nPos]; in operator []()
822 XPolyFlags XPolygon::GetFlags( sal_uInt16 nPos ) const in GetFlags()
825 return (XPolyFlags) pImpXPolygon->pFlagAry[nPos]; in GetFlags()
838 void XPolygon::SetFlags( sal_uInt16 nPos, XPolyFlags eFlags ) in SetFlags() argument
842 pImpXPolygon->pFlagAry[nPos] = (sal_uInt8) eFlags; in SetFlags()
855 sal_Bool XPolygon::IsControl(sal_uInt16 nPos) const in IsControl()
857 return ( (XPolyFlags) pImpXPolygon->pFlagAry[nPos] == XPOLY_CONTROL ); in IsControl()
870 sal_Bool XPolygon::IsSmooth(sal_uInt16 nPos) const in IsSmooth()
872 XPolyFlags eFlag = (XPolyFlags) pImpXPolygon->pFlagAry[nPos]; in IsSmooth()
905 void XPolygon::SubdivideBezier(sal_uInt16 nPos, sal_Bool bCalcFirst, double fT) in SubdivideBezier() argument
913 sal_uInt16 nIdx = nPos; in SubdivideBezier()
918 nPos += 3; in SubdivideBezier()
927 pPoints[nPos].X() = (long) (fU3 * pPoints[nIdx ].X() + in SubdivideBezier()
931 pPoints[nPos].Y() = (long) (fU3 * pPoints[nIdx ].Y() + in SubdivideBezier()
935 nPos = nPos + nPosInc; in SubdivideBezier()
937 pPoints[nPos].X() = (long) (fU2 * pPoints[nIdx ].X() + in SubdivideBezier()
940 pPoints[nPos].Y() = (long) (fU2 * pPoints[nIdx ].Y() + in SubdivideBezier()
943 nPos = nPos + nPosInc; in SubdivideBezier()
945 pPoints[nPos].X() = (long) (fU * pPoints[nIdx ].X() + in SubdivideBezier()
947 pPoints[nPos].Y() = (long) (fU * pPoints[nIdx ].Y() + in SubdivideBezier()
1688 void XPolyPolygon::Insert( const XPolygon& rXPoly, sal_uInt16 nPos ) in Insert() argument
1692 pImpXPolyPolygon->aXPolyList.Insert( pXPoly, nPos ); in Insert()
1705 void XPolyPolygon::Insert( const XPolyPolygon& rXPolyPoly, sal_uInt16 nPos ) in Insert() argument
1712 pImpXPolyPolygon->aXPolyList.Insert(pXPoly, nPos); in Insert()
1713 if ( nPos != XPOLYPOLY_APPEND ) in Insert()
1714 nPos++; in Insert()
1728 XPolygon XPolyPolygon::Remove( sal_uInt16 nPos ) in Remove() argument
1731 XPolygon* pTmpXPoly = pImpXPolyPolygon->aXPolyList.Remove( nPos ); in Remove()
1748 XPolygon XPolyPolygon::Replace( const XPolygon& rXPoly, sal_uInt16 nPos ) in Replace() argument
1752 XPolygon* pTmpXPoly = pImpXPolyPolygon->aXPolyList.Replace( pXPoly, nPos ); in Replace()
1769 const XPolygon& XPolyPolygon::GetObject( sal_uInt16 nPos ) const in GetObject()
1771 return *(pImpXPolyPolygon->aXPolyList.GetObject( nPos )); in GetObject()
1884 XPolygon& XPolyPolygon::operator[]( sal_uInt16 nPos ) in operator []() argument
1887 return *(pImpXPolyPolygon->aXPolyList.GetObject( nPos )); in operator []()