summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5e272cd)
raw | patch | inline | side by side (parent: 5e272cd)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 22 Jun 2008 22:12:14 +0000 (22:12 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 22 Jun 2008 22:12:14 +0000 (22:12 +0000) |
src/livarot/Path.h | patch | blob | history | |
src/livarot/PathCutting.cpp | patch | blob | history |
diff --git a/src/livarot/Path.h b/src/livarot/Path.h
index 4155bac3182ad7d77ed59aeb37944e265bd5768d..d0bd2e9dd06852437c72d82193bc8755d313fa1a 100644 (file)
--- a/src/livarot/Path.h
+++ b/src/livarot/Path.h
void DashPolylineFromStyle(SPStyle *style, float scale, float min_len);
//utilitaire pour inkscape
- void LoadArtBPath(void const *iP,NR::Matrix const &tr,bool doTransformation);
void LoadPath(Geom::Path const &path, Geom::Matrix const &tr, bool doTransformation, bool append = false);
void LoadPathVector(Geom::PathVector const &pv, Geom::Matrix const &tr, bool doTransformation);
void* MakeArtBPath();
index 872ae83e858bdf10a3ac2c69fbe30ab74f2105e5..c67fc9c97436752d98e72f51801ad239da272382 100644 (file)
@@ -474,76 +474,6 @@ void Path::LoadPathVector(Geom::PathVector const &pv, Geom::Matrix const &tr, b
}
}
-void Path::LoadArtBPath(void const *iV,NR::Matrix const &trans,bool doTransformation)
-{
- if ( iV == NULL ) return;
- NArtBpath const *bpath = (NArtBpath const*)iV;
-
- SetBackData (false);
- Reset();
- {
- int i;
- bool closed = false;
- NR::Point lastX(0,0);
-
- for (i = 0; bpath[i].code != NR_END; i++)
- {
- switch (bpath[i].code)
- {
- case NR_LINETO:
- lastX[0] = bpath[i].x3;
- lastX[1] = bpath[i].y3;
- if ( doTransformation ) {
- lastX*=trans;
- }
- LineTo (lastX);
- break;
-
- case NR_CURVETO:
- {
- NR::Point tmp,tms(0,0),tme(0,0),tm1,tm2;
- tmp[0]=bpath[i].x3;
- tmp[1]=bpath[i].y3;
- tm1[0]=bpath[i].x1;
- tm1[1]=bpath[i].y1;
- tm2[0]=bpath[i].x2;
- tm2[1]=bpath[i].y2;
- if ( doTransformation ) {
- tmp*=trans;
- tm1*=trans;
- tm2*=trans;
- }
- tms=3 * (tm1 - lastX);
- tme=3 * (tmp - tm2);
- CubicTo (tmp,tms,tme);
- }
- lastX[0] = bpath[i].x3;
- lastX[1] = bpath[i].y3;
- if ( doTransformation ) {
- lastX*=trans;
- }
- break;
-
- case NR_MOVETO_OPEN:
- case NR_MOVETO:
- if (closed) Close ();
- closed = (bpath[i].code == NR_MOVETO);
- lastX[0] = bpath[i].x3;
- lastX[1] = bpath[i].y3;
- if ( doTransformation ) {
- lastX*=trans;
- }
- MoveTo (lastX);
- break;
- default:
- break;
- }
- }
- if (closed) Close ();
- }
-}
-
-
/**
* \return Length of the lines in the pts vector.
*/