summaryrefslogtreecommitdiff
path: root/basegfx/inc
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-08-19 22:50:25 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-08-19 22:50:25 +0000
commit2b094f02dfdef657319b03eac66146ccd366d139 (patch)
treed876a09edc431913d95d225f3dc35e4c9747483d /basegfx/inc
parent9dd47e5734568dcad0a9ee58bb18a6430aaeef92 (diff)
INTEGRATION: CWS aw033 (1.9.12); FILE MERGED
2008/05/27 14:08:42 aw 1.9.12.3: #i39532# changes DEV300 m12 resync corrections 2008/05/14 14:43:01 aw 1.9.12.2: RESYNC: (1.9-1.10); FILE MERGED 2007/11/07 14:24:28 aw 1.9.12.1: #i39532# committing to have a base for HDU
Diffstat (limited to 'basegfx/inc')
-rw-r--r--basegfx/inc/basegfx/curve/b2dbeziertools.hxx33
1 files changed, 31 insertions, 2 deletions
diff --git a/basegfx/inc/basegfx/curve/b2dbeziertools.hxx b/basegfx/inc/basegfx/curve/b2dbeziertools.hxx
index 4515766a1039..125599d2f62b 100644
--- a/basegfx/inc/basegfx/curve/b2dbeziertools.hxx
+++ b/basegfx/inc/basegfx/curve/b2dbeziertools.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: b2dbeziertools.hxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
* This file is part of OpenOffice.org.
*
@@ -31,7 +31,36 @@
#ifndef _BGFX_CURVE_B2DBEZIERTOOLS_HXX
#define _BGFX_CURVE_B2DBEZIERTOOLS_HXX
+#include <sal/types.h>
+#include <vector>
+
+//////////////////////////////////////////////////////////////////////////////
+// predefines
+
+namespace basegfx
+{
+ class B2DCubicBezier;
+}
+
+//////////////////////////////////////////////////////////////////////////////
+
+namespace basegfx
+{
+ class B2DCubicBezierHelper
+ {
+ private:
+ ::std::vector< double > maLengthArray;
+ sal_uInt32 mnEdgeCount;
+
+ public:
+ B2DCubicBezierHelper(const B2DCubicBezier& rBase, sal_uInt32 nDivisions = 9);
+
+ double getLength() const { if(maLengthArray.size()) return maLengthArray[maLengthArray.size() - 1]; else return 0.0; }
+ double distanceToRelative(double fDistance) const;
+ double relativeToDistance(double fRelative) const;
+ };
+} // end of namespace basegfx
+
//////////////////////////////////////////////////////////////////////////////
-// necessary stuff moved to B2DCubicBezier
#endif /* _BGFX_CURVE_B2DBEZIERTOOLS_HXX */