summaryrefslogtreecommitdiff
path: root/basegfx/inc
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-25 01:49:02 +0800
committerMichael Meeks <michael.meeks@suse.com>2012-02-25 20:33:57 +0000
commit0333d2101acf36c9f44e5cc51ff6964d8a98920d (patch)
tree8069ae0040dd44a7a6c7d6a1356da6fd470ae1b2 /basegfx/inc
parent552a9862f8a11d8e3b86eef710d91a322a3a2946 (diff)
Remove unused code in basegfx, comphelper
Diffstat (limited to 'basegfx/inc')
-rw-r--r--basegfx/inc/basegfx/color/bcolortools.hxx2
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygoncutandtouch.hxx8
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygontools.hxx12
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolypolygoncutter.hxx5
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx3
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx3
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolygontools.hxx9
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx11
-rw-r--r--basegfx/inc/basegfx/range/b2ibox.hxx23
9 files changed, 0 insertions, 76 deletions
diff --git a/basegfx/inc/basegfx/color/bcolortools.hxx b/basegfx/inc/basegfx/color/bcolortools.hxx
index 0bb065937a7f..d5cdcf38490a 100644
--- a/basegfx/inc/basegfx/color/bcolortools.hxx
+++ b/basegfx/inc/basegfx/color/bcolortools.hxx
@@ -50,8 +50,6 @@ namespace basegfx
/// Transform from HSV to RGB
BASEGFX_DLLPUBLIC BColor hsv2rgb(const BColor& rHSVColor);
- /// Transform from CIE XYZ into Rec. 709 RGB (D65 white point)
- BASEGFX_DLLPUBLIC BColor ciexyz2rgb( const BColor& rXYZColor );
/// Transform from Rec. 709 RGB (D65 white point) into CIE XYZ
BASEGFX_DLLPUBLIC BColor rgb2ciexyz( const BColor& rRGBColor );
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygoncutandtouch.hxx b/basegfx/inc/basegfx/polygon/b2dpolygoncutandtouch.hxx
index 8997c5476431..1d5c0ffce5af 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygoncutandtouch.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygoncutandtouch.hxx
@@ -49,10 +49,6 @@ namespace basegfx
// Changed: Self intersections are searched by default, but may be switched off by 2nd parameter.
BASEGFX_DLLPUBLIC B2DPolyPolygon addPointsAtCutsAndTouches(const B2DPolyPolygon& rCandidate, bool bSelfIntersections = true);
- // look for intersections of rCandidate with all polygons from rMask and add extra points there. Do
- // not change or add points to rMask.
- BASEGFX_DLLPUBLIC B2DPolygon addPointsAtCutsAndTouches(const B2DPolyPolygon& rMask, const B2DPolygon& rCandidate);
-
// look for intersections of rCandidate with the edge from rStart to rEnd and add extra points there.
// Points are only added in the range of the edge, not on the endless vector.
BASEGFX_DLLPUBLIC B2DPolygon addPointsAtCuts(const B2DPolygon& rCandidate, const B2DPoint& rStart, const B2DPoint& rEnd);
@@ -61,10 +57,6 @@ namespace basegfx
// The mask polygon is assumed to be closed, even when it's not explicitly.
BASEGFX_DLLPUBLIC B2DPolygon addPointsAtCuts(const B2DPolygon& rCandidate, const B2DPolyPolygon& rMask);
- // look for self-intersections in given polygon and add extra points there. Result will have no
- // intersections on an edge
- BASEGFX_DLLPUBLIC B2DPolygon addPointsAtCuts(const B2DPolygon& rCandidate);
-
} // end of namespace tools
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
index 86c31f3d5f7c..3fdadbcb4aa6 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
@@ -77,18 +77,6 @@ namespace basegfx
BASEGFX_DLLPUBLIC bool isInside(const B2DPolygon& rCandidate, const B2DPoint& rPoint, bool bWithBorder = false);
BASEGFX_DLLPUBLIC bool isInside(const B2DPolygon& rCandidate, const B2DPolygon& rPolygon, bool bWithBorder = false);
- /** Get the range of a polygon including bezier control points
-
- For detailed discussion, see B2DPolygon::getB2DRange()
-
- @param rCandidate
- The B2DPolygon eventually containing bezier segments
-
- @return
- The outer range of the bezier curve containing bezier control points
- */
- BASEGFX_DLLPUBLIC B2DRange getRangeWithControlPoints(const B2DPolygon& rCandidate);
-
/** Get the range of a polygon
This method creates the outer range of the subdivided bezier curve.
diff --git a/basegfx/inc/basegfx/polygon/b2dpolypolygoncutter.hxx b/basegfx/inc/basegfx/polygon/b2dpolypolygoncutter.hxx
index 007b41623a87..7bf821cb6640 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolypolygoncutter.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolypolygoncutter.hxx
@@ -47,11 +47,6 @@ namespace basegfx
// contained sub-polygons in a preparing step and to explicitly correct their orientations.
BASEGFX_DLLPUBLIC B2DPolyPolygon solveCrossovers(const B2DPolyPolygon& rCandidate);
- // Version for single polygons. This is for solving self-intersections. Result will be free of
- // crossovers. When result contains multiple polygons, it may be necessary to rearrange their
- // orientations since holes may have been created (use correctOrientations eventually).
- BASEGFX_DLLPUBLIC B2DPolyPolygon solveCrossovers(const B2DPolygon& rCandidate);
-
// Neutral polygons will be stripped. Neutral polygons are ones who's orientation is
// neutral, so normally they have no volume -> just closed paths. A polygon with the same
// positive and negative oriented volume is also neutral, so this may not be wanted. It is
diff --git a/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx b/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
index d36f804a0efa..54437bafd0a2 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
@@ -179,9 +179,6 @@ namespace basegfx
// vectors on the 1/3 resp. 2/3 distances on each segment.
BASEGFX_DLLPUBLIC B2DPolyPolygon expandToCurve(const B2DPolyPolygon& rCandidate);
- // set continuity for the whole curve. If not a curve, nothing will change. Non-curve points are not changed, too.
- BASEGFX_DLLPUBLIC B2DPolyPolygon setContinuity(const B2DPolyPolygon& rCandidate, B2VectorContinuity eContinuity);
-
/** Predicate whether a given poly-polygon is a rectangle.
@param rPoly
diff --git a/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx b/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx
index f34effe3c3f3..03fd0799e79f 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx
@@ -62,9 +62,6 @@ namespace basegfx
// version for Polygons
BASEGFX_DLLPUBLIC B3DPolyPolygon clipPolygonOnOrthogonalPlane(const B3DPolygon& rCandidate, B3DOrientation ePlaneOrthogonal, bool bClipPositive, double fPlaneOffset, bool bStroke);
- // version for Polygons
- BASEGFX_DLLPUBLIC B3DPolyPolygon clipPolygonOnRange(const B3DPolygon& rCandidate, const B3DRange& rRange, bool bInside, bool bStroke);
-
// versions for B2DRange, clips only against X,Y
BASEGFX_DLLPUBLIC B3DPolyPolygon clipPolygonOnRange(const B3DPolygon& rCandidate, const B2DRange& rRange, bool bInside, bool bStroke);
diff --git a/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx b/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
index 95e00fb9b6c6..9d66ca5c117e 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
@@ -61,9 +61,6 @@ namespace basegfx
// is none. Same for successor.
BASEGFX_DLLPUBLIC sal_uInt32 getIndexOfSuccessor(sal_uInt32 nIndex, const B3DPolygon& rCandidate);
- // Get orientation of Polygon
- BASEGFX_DLLPUBLIC B2VectorOrientation getOrientation(const B3DPolygon& rCandidate);
-
// get size of polygon. Control vectors are included in that ranges.
BASEGFX_DLLPUBLIC B3DRange getRange(const B3DPolygon& rCandidate);
@@ -120,12 +117,6 @@ namespace basegfx
*/
BASEGFX_DLLPUBLIC B3DPolygon applyDefaultTextureCoordinatesSphere( const B3DPolygon& rCandidate, const B3DPoint& rCenter, bool bChangeX = true, bool bChangeY = true);
- // test if point is inside epsilon-range around an edge defined
- // by the two given points. Can be used for HitTesting. The epsilon-range
- // is defined to be the cylinder centered to the given edge, using radius
- // fDistance, and the sphere around both points with radius fDistance.
- BASEGFX_DLLPUBLIC bool isInEpsilonRange(const B3DPoint& rEdgeStart, const B3DPoint& rEdgeEnd, const B3DPoint& rTestPosition, double fDistance);
-
// isInside tests for B3DPoint. On border is not inside as long as not true is given in bWithBorder flag.
BASEGFX_DLLPUBLIC bool isInside(const B3DPolygon& rCandidate, const B3DPoint& rPoint, bool bWithBorder = false);
diff --git a/basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx b/basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx
index 6ccfea1ec50b..327ef19b3968 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx
@@ -51,17 +51,6 @@ namespace basegfx
// get size of PolyPolygon. Control vectors are included in that ranges.
BASEGFX_DLLPUBLIC B3DRange getRange(const B3DPolyPolygon& rCandidate);
- /** Apply given LineDashing to given polyPolygon
-
- For a description see applyLineDashing in b2dpolygontoos.hxx
- */
- BASEGFX_DLLPUBLIC void applyLineDashing(
- const B3DPolyPolygon& rCandidate,
- const ::std::vector<double>& rDotDashArray,
- B3DPolyPolygon* pLineTarget,
- B3DPolyPolygon* pGapTarget = 0,
- double fFullDashDotLen = 0.0);
-
/** Create a unit 3D line polyPolygon which defines a cube.
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon createUnitCubePolyPolygon();
diff --git a/basegfx/inc/basegfx/range/b2ibox.hxx b/basegfx/inc/basegfx/range/b2ibox.hxx
index dd23b7058e2e..7c2f9ee1fd91 100644
--- a/basegfx/inc/basegfx/range/b2ibox.hxx
+++ b/basegfx/inc/basegfx/range/b2ibox.hxx
@@ -263,29 +263,6 @@ namespace basegfx
BasicBox maRangeY;
};
- /** Compute the set difference of the two given boxes
-
- This method calculates the symmetric difference (aka XOR)
- between the two given boxes, and returning the resulting
- boxes. Thus, the result will contain all areas where one, but
- not both boxes lie.
-
- @param o_rResult
- Result vector. The up to four difference boxes are returned
- within this vector
-
- @param rFirst
- The first box
-
- @param rSecond
- The second box
-
- @return the input vector
- */
- BASEGFX_DLLPUBLIC ::std::vector< B2IBox >& computeSetDifference( ::std::vector< B2IBox >& o_rResult,
- const B2IBox& rFirst,
- const B2IBox& rSecond );
-
} // end of namespace basegfx
#endif /* _BGFX_RANGE_B2IBOX_HXX */