Lines Matching refs:mpPolygon
1202 : mpPolygon(DefaultPolygon::get()) in B2DPolygon()
1206 : mpPolygon(rPolygon.mpPolygon) in B2DPolygon()
1210 : mpPolygon(ImplB2DPolygon(*rPolygon.mpPolygon, nIndex, nCount)) in B2DPolygon()
1214 …OSL_ENSURE(nIndex + nCount <= rPolygon.mpPolygon->count(), "B2DPolygon constructor outside range (… in B2DPolygon()
1223 mpPolygon = rPolygon.mpPolygon; in operator =()
1229 mpPolygon.make_unique(); in makeUnique()
1234 if(mpPolygon.same_object(rPolygon.mpPolygon)) in operator ==()
1237 return ((*mpPolygon) == (*rPolygon.mpPolygon)); in operator ==()
1247 return mpPolygon->count(); in count()
1252 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in getB2DPoint()
1254 return mpPolygon->getPoint(nIndex); in getB2DPoint()
1259 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in setB2DPoint()
1261 if(mpPolygon->getPoint(nIndex) != rValue) in setB2DPoint()
1263 mpPolygon->setPoint(nIndex, rValue); in setB2DPoint()
1269 mpPolygon->reserve(nCount); in reserve()
1274 OSL_ENSURE(nIndex <= mpPolygon->count(), "B2DPolygon Insert outside range (!)"); in insert()
1278 mpPolygon->insert(nIndex, rPoint, nCount); in insert()
1286 mpPolygon->insert(mpPolygon->count(), rPoint, nCount); in append()
1292 mpPolygon->append(rPoint); in append()
1297 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in getPrevControlPoint()
1299 if(mpPolygon->areControlPointsUsed()) in getPrevControlPoint()
1301 return mpPolygon->getPoint(nIndex) + mpPolygon->getPrevControlVector(nIndex); in getPrevControlPoint()
1305 return mpPolygon->getPoint(nIndex); in getPrevControlPoint()
1311 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in getNextControlPoint()
1313 if(mpPolygon->areControlPointsUsed()) in getNextControlPoint()
1315 return mpPolygon->getPoint(nIndex) + mpPolygon->getNextControlVector(nIndex); in getNextControlPoint()
1319 return mpPolygon->getPoint(nIndex); in getNextControlPoint()
1325 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in setPrevControlPoint()
1326 const basegfx::B2DVector aNewVector(rValue - mpPolygon->getPoint(nIndex)); in setPrevControlPoint()
1328 if(mpPolygon->getPrevControlVector(nIndex) != aNewVector) in setPrevControlPoint()
1330 mpPolygon->setPrevControlVector(nIndex, aNewVector); in setPrevControlPoint()
1336 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in setNextControlPoint()
1337 const basegfx::B2DVector aNewVector(rValue - mpPolygon->getPoint(nIndex)); in setNextControlPoint()
1339 if(mpPolygon->getNextControlVector(nIndex) != aNewVector) in setNextControlPoint()
1341 mpPolygon->setNextControlVector(nIndex, aNewVector); in setNextControlPoint()
1347 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in setControlPoints()
1348 const B2DPoint aPoint(mpPolygon->getPoint(nIndex)); in setControlPoints()
1352 …if(mpPolygon->getPrevControlVector(nIndex) != aNewPrev || mpPolygon->getNextControlVector(nIndex) … in setControlPoints()
1354 mpPolygon->setControlVectors(nIndex, aNewPrev, aNewNext); in setControlPoints()
1360 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in resetPrevControlPoint()
1362 if(mpPolygon->areControlPointsUsed() && !mpPolygon->getPrevControlVector(nIndex).equalZero()) in resetPrevControlPoint()
1364 mpPolygon->setPrevControlVector(nIndex, B2DVector::getEmptyVector()); in resetPrevControlPoint()
1370 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in resetNextControlPoint()
1372 if(mpPolygon->areControlPointsUsed() && !mpPolygon->getNextControlVector(nIndex).equalZero()) in resetNextControlPoint()
1374 mpPolygon->setNextControlVector(nIndex, B2DVector::getEmptyVector()); in resetNextControlPoint()
1380 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in resetControlPoints()
1382 if(mpPolygon->areControlPointsUsed() && in resetControlPoints()
1383 …(!mpPolygon->getPrevControlVector(nIndex).equalZero() || !mpPolygon->getNextControlVector(nIndex).… in resetControlPoints()
1385 mpPolygon->resetControlVectors(nIndex); in resetControlPoints()
1391 if(mpPolygon->areControlPointsUsed()) in resetControlPoints()
1393 mpPolygon->resetControlVectors(); in resetControlPoints()
1402 …const B2DVector aNewNextVector(mpPolygon->count() ? B2DVector(rNextControlPoint - mpPolygon->getPo… in appendBezierSegment()
1407 mpPolygon->insert(mpPolygon->count(), rPoint, 1); in appendBezierSegment()
1411 mpPolygon->appendBezierSegment(aNewNextVector, aNewPrevVector, rPoint); in appendBezierSegment()
1417 return mpPolygon->areControlPointsUsed(); in areControlPointsUsed()
1422 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in isPrevControlPointUsed()
1424 …return (mpPolygon->areControlPointsUsed() && !mpPolygon->getPrevControlVector(nIndex).equalZero()); in isPrevControlPointUsed()
1429 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in isNextControlPointUsed()
1431 …return (mpPolygon->areControlPointsUsed() && !mpPolygon->getNextControlVector(nIndex).equalZero()); in isNextControlPointUsed()
1436 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in getContinuityInPoint()
1438 if(mpPolygon->areControlPointsUsed()) in getContinuityInPoint()
1440 const B2DVector& rPrev(mpPolygon->getPrevControlVector(nIndex)); in getContinuityInPoint()
1441 const B2DVector& rNext(mpPolygon->getNextControlVector(nIndex)); in getContinuityInPoint()
1453 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in isBezierSegment()
1455 if(mpPolygon->areControlPointsUsed()) in isBezierSegment()
1458 const bool bNextIndexValidWithoutClose(nIndex + 1 < mpPolygon->count()); in isBezierSegment()
1460 if(bNextIndexValidWithoutClose || mpPolygon->isClosed()) in isBezierSegment()
1463 return (!mpPolygon->getPrevControlVector(nNextIndex).equalZero() in isBezierSegment()
1464 || !mpPolygon->getNextControlVector(nIndex).equalZero()); in isBezierSegment()
1482 OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)"); in getBezierSegment()
1483 const bool bNextIndexValidWithoutClose(nIndex + 1 < mpPolygon->count()); in getBezierSegment()
1485 if(bNextIndexValidWithoutClose || mpPolygon->isClosed()) in getBezierSegment()
1488 rTarget.setStartPoint(mpPolygon->getPoint(nIndex)); in getBezierSegment()
1489 rTarget.setEndPoint(mpPolygon->getPoint(nNextIndex)); in getBezierSegment()
1491 if(mpPolygon->areControlPointsUsed()) in getBezierSegment()
1493 … rTarget.setControlPointA(rTarget.getStartPoint() + mpPolygon->getNextControlVector(nIndex)); in getBezierSegment()
1494 … rTarget.setControlPointB(rTarget.getEndPoint() + mpPolygon->getPrevControlVector(nNextIndex)); in getBezierSegment()
1506 const B2DPoint aPoint(mpPolygon->getPoint(nIndex)); in getBezierSegment()
1516 return mpPolygon->getDefaultAdaptiveSubdivision(*this); in getDefaultAdaptiveSubdivision()
1521 return mpPolygon->getB2DRange(*this); in getB2DRange()
1526 OSL_ENSURE(nIndex <= mpPolygon->count(), "B2DPolygon Insert outside range (!)"); in insert()
1537 mpPolygon->insert(nIndex, *rPoly.mpPolygon); in insert()
1541 OSL_ENSURE(nIndex2 + nCount <= rPoly.mpPolygon->count(), "B2DPolygon Insert outside range (!)"); in insert()
1542 ImplB2DPolygon aTempPoly(*rPoly.mpPolygon, nIndex2, nCount); in insert()
1543 mpPolygon->insert(nIndex, aTempPoly); in insert()
1559 mpPolygon->insert(mpPolygon->count(), *rPoly.mpPolygon); in append()
1563 OSL_ENSURE(nIndex + nCount <= rPoly.mpPolygon->count(), "B2DPolygon Append outside range (!)"); in append()
1564 ImplB2DPolygon aTempPoly(*rPoly.mpPolygon, nIndex, nCount); in append()
1565 mpPolygon->insert(mpPolygon->count(), aTempPoly); in append()
1572 OSL_ENSURE(nIndex + nCount <= mpPolygon->count(), "B2DPolygon Remove outside range (!)"); in remove()
1576 mpPolygon->remove(nIndex, nCount); in remove()
1582 mpPolygon = DefaultPolygon::get(); in clear()
1587 return mpPolygon->isClosed(); in isClosed()
1594 mpPolygon->setClosed(bNew); in setClosed()
1602 mpPolygon->flip(); in flip()
1608 return (mpPolygon->count() > 1 && mpPolygon->hasDoublePoints()); in hasDoublePoints()
1615 mpPolygon->removeDoublePointsAtBeginEnd(); in removeDoublePoints()
1616 mpPolygon->removeDoublePointsWholeTrack(); in removeDoublePoints()
1622 if(mpPolygon->count() && !rMatrix.isIdentity()) in transform()
1624 mpPolygon->transform(rMatrix); in transform()
1630 return mpPolygon->begin(); in begin()
1635 return mpPolygon->end(); in end()
1640 return mpPolygon->begin(); in begin()
1645 return mpPolygon->end(); in end()