From: johanengelen Date: Sun, 22 Jun 2008 22:12:14 +0000 (+0000) Subject: remove obsolete LoadArtBPath from livarot X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=40880335f7f562773453599cdafded8df363890d;p=inkscape.git remove obsolete LoadArtBPath from livarot --- diff --git a/src/livarot/Path.h b/src/livarot/Path.h index 4155bac31..d0bd2e9dd 100644 --- a/src/livarot/Path.h +++ b/src/livarot/Path.h @@ -177,7 +177,6 @@ public: 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(); diff --git a/src/livarot/PathCutting.cpp b/src/livarot/PathCutting.cpp index 872ae83e8..c67fc9c97 100644 --- a/src/livarot/PathCutting.cpp +++ b/src/livarot/PathCutting.cpp @@ -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. */