diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-22 22:12:14 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-22 22:12:14 +0000 |
| commit | eb7f0accba73508215d98a97e0b17fd7f2faf263 (patch) | |
| tree | 75ad1512a0bf078d7d75e97d8892294356228d08 /src/livarot/PathCutting.cpp | |
| parent | use LoadPathVector instead of LoadArtBPath everywhere (diff) | |
| download | inkscape-eb7f0accba73508215d98a97e0b17fd7f2faf263.tar.gz inkscape-eb7f0accba73508215d98a97e0b17fd7f2faf263.zip | |
remove obsolete LoadArtBPath from livarot
(bzr r6018)
Diffstat (limited to 'src/livarot/PathCutting.cpp')
| -rw-r--r-- | src/livarot/PathCutting.cpp | 70 |
1 files changed, 0 insertions, 70 deletions
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. */ |
