diff options
author | Armin Weiss <aw@openoffice.org> | 2003-11-11 08:48:14 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2003-11-11 08:48:14 +0000 |
commit | d2e3aaa262de3815c4ba165590ee5e98e5db2ac5 (patch) | |
tree | e185b552683e4ebb859f7b52aea58f5ecf1bb760 /basegfx/inc | |
parent | 5d6413171a0f9d92a3cf331ab05b18e06c98fde2 (diff) |
Added functionality at the Poly and PolyPolygon tools for subdivides, corrected polygon clipper further
Diffstat (limited to 'basegfx/inc')
-rw-r--r-- | basegfx/inc/basegfx/polygon/b2dpolygontools.hxx | 9 | ||||
-rw-r--r-- | basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx | 7 |
2 files changed, 11 insertions, 5 deletions
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx index ae69b4078280..efc77e678d21 100644 --- a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx +++ b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx @@ -2,9 +2,9 @@ * * $RCSfile: b2dpolygontools.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: aw $ $Date: 2003-11-10 11:45:47 $ + * last change: $Author: aw $ $Date: 2003-11-11 09:48:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -102,7 +102,7 @@ namespace basegfx method corrects this (removes double start/end points) and sets the Closed()-state of the polygon correctly. */ - void checkClosed(polygon::B2DPolygon& rCandidate); + void checkClosed(::basegfx::polygon::B2DPolygon& rCandidate); // Get index of outmost point (e.g. biggest X and biggest Y) sal_uInt32 getIndexOfOutmostPoint(const ::basegfx::polygon::B2DPolygon& rCandidate); @@ -153,6 +153,9 @@ namespace basegfx // Continuity check for point with given index ::basegfx::vector::B2DVectorContinuity getContinuityInPoint(const ::basegfx::polygon::B2DPolygon& rCandidate, sal_uInt32 nIndex); + // Subdivide all contained curves. Use distanceBound value if given. + ::basegfx::polygon::B2DPolygon adaptiveSubdivide(const ::basegfx::polygon::B2DPolygon& rCandidate, double fDistanceBound = 0.0); + // Definitions for the cut flags used from the findCut methods typedef sal_uInt16 CutFlagValue; diff --git a/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx b/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx index e640dbb9f295..926fa918035a 100644 --- a/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx +++ b/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx @@ -2,9 +2,9 @@ * * $RCSfile: b2dpolypolygontools.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: aw $ $Date: 2003-11-06 16:30:25 $ + * last change: $Author: aw $ $Date: 2003-11-11 09:48:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -107,6 +107,9 @@ namespace basegfx void removeIntersections(::basegfx::polygon::B2DPolyPolygon& rCandidate, sal_Bool bForceOrientation = sal_True, sal_Bool bInvertRemove = sal_False); + // Subdivide all contained curves. Use distanceBound value if given. + ::basegfx::polygon::B2DPolyPolygon adaptiveSubdivide(const ::basegfx::polygon::B2DPolyPolygon& rCandidate, double fDistanceBound = 0.0); + } // end of namespace tools } // end of namespace polygon } // end of namespace basegfx |