summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon/b2dpolygonclipper.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/b2dpolygonclipper.cxx
parent1f064291129d6fb08a1ca5bf639f8f199f2d4e44 (diff)
Removing unused code (basegfx).
Diffstat (limited to 'basegfx/source/polygon/b2dpolygonclipper.cxx')
-rw-r--r--basegfx/source/polygon/b2dpolygonclipper.cxx66
1 files changed, 0 insertions, 66 deletions
diff --git a/basegfx/source/polygon/b2dpolygonclipper.cxx b/basegfx/source/polygon/b2dpolygonclipper.cxx
index 8514fd02efd7..9343c2e51f6e 100644
--- a/basegfx/source/polygon/b2dpolygonclipper.cxx
+++ b/basegfx/source/polygon/b2dpolygonclipper.cxx
@@ -346,72 +346,6 @@ namespace basegfx
return aRetval;
}
- B2DPolyPolygon clipPolygonOnEdge(const B2DPolygon& rCandidate, const B2DPoint& rPointA, const B2DPoint& rPointB, bool bAbove, bool bStroke)
- {
- B2DPolyPolygon aRetval;
-
- if(rPointA.equal(rPointB))
- {
- // edge has no length, return polygon
- aRetval.append(rCandidate);
- }
- else if(rCandidate.count())
- {
- const B2DVector aEdge(rPointB - rPointA);
- B2DPolygon aCandidate(rCandidate);
-
- // translate and rotate polygon so that given edge is on x axis
- B2DHomMatrix aMatrixTransform(basegfx::tools::createTranslateB2DHomMatrix(-rPointA.getX(), -rPointA.getY()));
- aMatrixTransform.rotate(-atan2(aEdge.getY(), aEdge.getX()));
- aCandidate.transform(aMatrixTransform);
-
- // call clip method on X-Axis
- aRetval = clipPolygonOnParallelAxis(aCandidate, true, bAbove, 0.0, bStroke);
-
- if(aRetval.count())
- {
- // if there is a result, it needs to be transformed back
- aMatrixTransform.invert();
- aRetval.transform(aMatrixTransform);
- }
- }
-
- return aRetval;
- }
-
- B2DPolyPolygon clipPolyPolygonOnEdge(const B2DPolyPolygon& rCandidate, const B2DPoint& rPointA, const B2DPoint& rPointB, bool bAbove, bool bStroke)
- {
- B2DPolyPolygon aRetval;
-
- if(rPointA.equal(rPointB))
- {
- // edge has no length, return polygon
- aRetval = rCandidate;
- }
- else if(rCandidate.count())
- {
- const B2DVector aEdge(rPointB - rPointA);
- B2DPolyPolygon aCandidate(rCandidate);
-
- // translate and rotate polygon so that given edge is on x axis
- B2DHomMatrix aMatrixTransform(basegfx::tools::createTranslateB2DHomMatrix(-rPointA.getX(), -rPointA.getY()));
- aMatrixTransform.rotate(-atan2(aEdge.getY(), aEdge.getX()));
- aCandidate.transform(aMatrixTransform);
-
- // call clip method on X-Axis
- aRetval = clipPolyPolygonOnParallelAxis(aCandidate, true, bAbove, 0.0, bStroke);
-
- if(aRetval.count())
- {
- // if there is a result, it needs to be transformed back
- aMatrixTransform.invert();
- aRetval.transform(aMatrixTransform);
- }
- }
-
- return aRetval;
- }
-
//////////////////////////////////////////////////////////////////////////////
B2DPolyPolygon clipPolyPolygonOnPolyPolygon(const B2DPolyPolygon& rCandidate, const B2DPolyPolygon& rClip, bool bInside, bool bStroke)