summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-03-02 01:58:12 +0800
committerTor Lillqvist <tlillqvist@suse.com>2012-03-01 20:17:14 +0200
commite8dbf6840ca118222ad95856dc7ea06eaffc3b66 (patch)
tree9444cd4a544170ad205ae0cd90aa4882d2160d2e /basegfx
parentbd205223ec029a875c662474bb6d423d3cdd1994 (diff)
Remove unused code
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygontools.hxx6
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx7
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolygontools.hxx3
-rw-r--r--basegfx/source/polygon/b2dpolygontools.cxx27
-rw-r--r--basegfx/source/polygon/b3dpolygonclipper.cxx12
-rw-r--r--basegfx/source/polygon/b3dpolygontools.cxx21
6 files changed, 0 insertions, 76 deletions
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
index 3fdadbcb4aa6..d26475e23694 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
@@ -316,9 +316,6 @@ namespace basegfx
// distort polygon. rOriginal describes the original range, where the given points describe the distorted corresponding points.
BASEGFX_DLLPUBLIC B2DPolygon distort(const B2DPolygon& rCandidate, const B2DRange& rOriginal, const B2DPoint& rTopLeft, const B2DPoint& rTopRight, const B2DPoint& rBottomLeft, const B2DPoint& rBottomRight);
- // rotate polygon around given point with given angle.
- BASEGFX_DLLPUBLIC B2DPolygon rotateAroundPoint(const B2DPolygon& rCandidate, const B2DPoint& rCenter, double fAngle);
-
// expand all segments (which are not yet) to curve segments. This is done with setting the control
// vectors on the 1/3 resp. 2/3 distances on each segment.
BASEGFX_DLLPUBLIC B2DPolygon expandToCurve(const B2DPolygon& rCandidate);
@@ -327,9 +324,6 @@ namespace basegfx
// vectors on the 1/3 resp. 2/3 distances. The return value describes if a change took place.
BASEGFX_DLLPUBLIC bool expandToCurveInPoint(B2DPolygon& rCandidate, sal_uInt32 nIndex);
- // set continuity for the whole curve. If not a curve, nothing will change. Non-curve points are not changed, too.
- B2DPolygon setContinuity(const B2DPolygon& rCandidate, B2VectorContinuity eContinuity);
-
// set continuity for given index. If not a curve, nothing will change. Non-curve points are not changed, too.
// The return value describes if a change took place.
BASEGFX_DLLPUBLIC bool setContinuityInPoint(B2DPolygon& rCandidate, sal_uInt32 nIndex, B2VectorContinuity eContinuity);
diff --git a/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx b/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx
index d125d478ab8a..a6ca7146b31e 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx
@@ -52,13 +52,6 @@ namespace basegfx
B3DORIENTATION_Z // Z-Axis
};
- // Clip given 3D polygon against a plane orthogonal to X,Y or Z axis. The plane is defined using the
- // enum ePlaneOrthogonal which names the vector orthogonal to the plane, the fPlaneOffset gives the distance
- // of the plane from the center (0.0).
- // The value bClipPositive defines on which side the return value will be (true -> on positive side of plane).
- // The switch bStroke decides if the polygon is interpreted as area (false) or strokes (true).
- BASEGFX_DLLPUBLIC B3DPolyPolygon clipPolyPolygonOnOrthogonalPlane(const B3DPolyPolygon& rCandidate, B3DOrientation ePlaneOrthogonal, bool bClipPositive, double fPlaneOffset, bool bStroke);
-
// version for Polygons
BASEGFX_DLLPUBLIC B3DPolyPolygon clipPolygonOnOrthogonalPlane(const B3DPolygon& rCandidate, B3DOrientation ePlaneOrthogonal, bool bClipPositive, double fPlaneOffset, bool bStroke);
diff --git a/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx b/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
index 9d66ca5c117e..c94495ed7504 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
@@ -76,9 +76,6 @@ namespace basegfx
// get area of polygon
BASEGFX_DLLPUBLIC double getArea(const ::basegfx::B3DPolygon& rCandidate);
- // get length of polygon edge from point nIndex to nIndex + 1
- BASEGFX_DLLPUBLIC double getEdgeLength(const B3DPolygon& rCandidate, sal_uInt32 nIndex);
-
// get length of polygon
BASEGFX_DLLPUBLIC double getLength(const B3DPolygon& rCandidate);
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx
index f86f0c655e9b..cfe9f3a71bc5 100644
--- a/basegfx/source/polygon/b2dpolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolygontools.cxx
@@ -2549,21 +2549,6 @@ namespace basegfx
}
}
- B2DPolygon rotateAroundPoint(const B2DPolygon& rCandidate, const B2DPoint& rCenter, double fAngle)
- {
- const sal_uInt32 nPointCount(rCandidate.count());
- B2DPolygon aRetval(rCandidate);
-
- if(nPointCount)
- {
- const B2DHomMatrix aMatrix(basegfx::tools::createRotateAroundPoint(rCenter, fAngle));
-
- aRetval.transform(aMatrix);
- }
-
- return aRetval;
- }
-
B2DPolygon expandToCurve(const B2DPolygon& rCandidate)
{
B2DPolygon aRetval(rCandidate);
@@ -2618,18 +2603,6 @@ namespace basegfx
return bRetval;
}
- B2DPolygon setContinuity(const B2DPolygon& rCandidate, B2VectorContinuity eContinuity)
- {
- B2DPolygon aRetval(rCandidate);
-
- for(sal_uInt32 a(0L); a < rCandidate.count(); a++)
- {
- setContinuityInPoint(aRetval, a, eContinuity);
- }
-
- return aRetval;
- }
-
bool setContinuityInPoint(B2DPolygon& rCandidate, sal_uInt32 nIndex, B2VectorContinuity eContinuity)
{
OSL_ENSURE(nIndex < rCandidate.count(), "setContinuityInPoint: Access to polygon out of range (!)");
diff --git a/basegfx/source/polygon/b3dpolygonclipper.cxx b/basegfx/source/polygon/b3dpolygonclipper.cxx
index 6db49e23beb6..8130d00eced2 100644
--- a/basegfx/source/polygon/b3dpolygonclipper.cxx
+++ b/basegfx/source/polygon/b3dpolygonclipper.cxx
@@ -294,18 +294,6 @@ namespace basegfx
return aRetval;
}
- B3DPolyPolygon clipPolyPolygonOnOrthogonalPlane(const B3DPolyPolygon& rCandidate, B3DOrientation ePlaneOrthogonal, bool bClipPositive, double fPlaneOffset, bool bStroke)
- {
- B3DPolyPolygon aRetval;
-
- for(sal_uInt32 a(0L); a < rCandidate.count(); a++)
- {
- aRetval.append(clipPolygonOnOrthogonalPlane(rCandidate.getB3DPolygon(a), ePlaneOrthogonal, bClipPositive, fPlaneOffset, bStroke));
- }
-
- return aRetval;
- }
-
} // end of namespace tools
} // end of namespace basegfx
diff --git a/basegfx/source/polygon/b3dpolygontools.cxx b/basegfx/source/polygon/b3dpolygontools.cxx
index 306f97b5c621..8bdfd132faa3 100644
--- a/basegfx/source/polygon/b3dpolygontools.cxx
+++ b/basegfx/source/polygon/b3dpolygontools.cxx
@@ -153,27 +153,6 @@ namespace basegfx
return fRetval;
}
- double getEdgeLength(const B3DPolygon& rCandidate, sal_uInt32 nIndex)
- {
- OSL_ENSURE(nIndex < rCandidate.count(), "getEdgeLength: Access to polygon out of range (!)");
- double fRetval(0.0);
- const sal_uInt32 nPointCount(rCandidate.count());
-
- if(nIndex < nPointCount)
- {
- if(rCandidate.isClosed() || ((nIndex + 1L) != nPointCount))
- {
- const sal_uInt32 nNextIndex(getIndexOfSuccessor(nIndex, rCandidate));
- const B3DPoint aCurrentPoint(rCandidate.getB3DPoint(nIndex));
- const B3DPoint aNextPoint(rCandidate.getB3DPoint(nNextIndex));
- const B3DVector aVector(aNextPoint - aCurrentPoint);
- fRetval = aVector.getLength();
- }
- }
-
- return fRetval;
- }
-
double getLength(const B3DPolygon& rCandidate)
{
double fRetval(0.0);