summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
diff options
context:
space:
mode:
authorAlexander Bergmann <myaddons@gmx.de>2012-01-25 12:01:28 +0530
committerMuthu Subramanian <sumuthu@suse.com>2012-01-25 12:02:25 +0530
commit92a87649a79de6013703d2344365ef86fc9788bd (patch)
tree291ec5c216cbe87c9686bddc7fdc7450962a250d /basegfx/source/polygon/b2dpolygoncutandtouch.cxx
parent1f064291129d6fb08a1ca5bf639f8f199f2d4e44 (diff)
Removing unused code (basegfx).
Diffstat (limited to 'basegfx/source/polygon/b2dpolygoncutandtouch.cxx')
-rw-r--r--basegfx/source/polygon/b2dpolygoncutandtouch.cxx112
1 files changed, 0 insertions, 112 deletions
diff --git a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
index d4d075bfc9bf..385a5ac7e518 100644
--- a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
+++ b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
@@ -1033,20 +1033,6 @@ namespace basegfx
////////////////////////////////////////////////////////////////////////////////
- B2DPolyPolygon addPointsAtCutsAndTouches(const B2DPolyPolygon& rMask, const B2DPolyPolygon& rCandidate)
- {
- B2DPolyPolygon aRetval;
-
- for(sal_uInt32 a(0L); a < rCandidate.count(); a++)
- {
- aRetval.append(addPointsAtCutsAndTouches(rMask, rCandidate.getB2DPolygon(a)));
- }
-
- return aRetval;
- }
-
- ////////////////////////////////////////////////////////////////////////////////
-
B2DPolygon addPointsAtCuts(const B2DPolygon& rCandidate, const B2DPoint& rStart, const B2DPoint& rEnd)
{
const sal_uInt32 nCount(rCandidate.count());
@@ -1094,18 +1080,6 @@ namespace basegfx
return rCandidate;
}
- B2DPolyPolygon addPointsAtCuts(const B2DPolyPolygon& rCandidate, const B2DPoint& rStart, const B2DPoint& rEnd)
- {
- B2DPolyPolygon aRetval;
-
- for(sal_uInt32 a(0); a < rCandidate.count(); a++)
- {
- aRetval.append(addPointsAtCuts(rCandidate.getB2DPolygon(a), rStart, rEnd));
- }
-
- return aRetval;
- }
-
////////////////////////////////////////////////////////////////////////////////
B2DPolygon addPointsAtCuts(const B2DPolygon& rCandidate, const B2DPolyPolygon& rPolyMask)
@@ -1189,18 +1163,6 @@ namespace basegfx
return rCandidate;
}
- B2DPolyPolygon addPointsAtCuts(const B2DPolyPolygon& rCandidate, const B2DPolyPolygon& rMask)
- {
- B2DPolyPolygon aRetval;
-
- for(sal_uInt32 a(0); a < rCandidate.count(); a++)
- {
- aRetval.append(addPointsAtCuts(rCandidate.getB2DPolygon(a), rMask));
- }
-
- return aRetval;
- }
-
B2DPolygon addPointsAtCuts(const B2DPolygon& rCandidate)
{
if(rCandidate.count())
@@ -1217,80 +1179,6 @@ namespace basegfx
}
}
- B2DPolyPolygon addPointsAtCuts(const B2DPolyPolygon& rCandidate, bool bSelfIntersections)
- {
- const sal_uInt32 nCount(rCandidate.count());
-
- if(nCount)
- {
- B2DPolyPolygon aRetval;
-
- if(1 == nCount)
- {
- if(bSelfIntersections)
- {
- // remove self intersections
- aRetval.append(addPointsAtCuts(rCandidate.getB2DPolygon(0)));
- }
- else
- {
- // copy source
- aRetval = rCandidate;
- }
- }
- else
- {
- // first solve self cuts for all contained single polygons
- temporaryPolygonData *pTempData = new temporaryPolygonData[nCount];
- sal_uInt32 a, b;
-
- for(a = 0; a < nCount; a++)
- {
- if(bSelfIntersections)
- {
- // use polygons with solved self intersections
- pTempData[a].setPolygon(addPointsAtCuts(rCandidate.getB2DPolygon(a)));
- }
- else
- {
- // copy given polygons
- pTempData[a].setPolygon(rCandidate.getB2DPolygon(a));
- }
- }
-
- // now cuts and touches between the polygons
- for(a = 0; a < nCount; a++)
- {
- for(b = 0; b < nCount; b++)
- {
- if(a < b)
- {
- // look for cuts, compare each edge polygon to following ones
- if(pTempData[a].getRange().overlaps(pTempData[b].getRange()))
- {
- findCuts(pTempData[a].getPolygon(), pTempData[b].getPolygon(), pTempData[a].getTemporaryPointVector(), pTempData[b].getTemporaryPointVector());
- }
- }
- }
- }
-
- // consolidate the result
- for(a = 0L; a < nCount; a++)
- {
- aRetval.append(mergeTemporaryPointsAndPolygon(pTempData[a].getPolygon(), pTempData[a].getTemporaryPointVector()));
- }
-
- delete[] pTempData;
- }
-
- return aRetval;
- }
- else
- {
- return rCandidate;
- }
- }
-
////////////////////////////////////////////////////////////////////////////////
} // end of namespace tools