diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-22 21:56:33 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-22 21:56:33 +0000 |
| commit | 4b2ef16a541f6084d949b0f67463b415b84569b7 (patch) | |
| tree | b44be41018f0482b8f39511244622df77a7a9d45 /src/livarot/Path.h | |
| parent | use pathvector directly from SPCurve in LPE path parameter. (diff) | |
| download | inkscape-4b2ef16a541f6084d949b0f67463b415b84569b7.tar.gz inkscape-4b2ef16a541f6084d949b0f67463b415b84569b7.zip | |
create method for Livarot paths to load PathVectors instead of NArtBpaths
(bzr r6016)
Diffstat (limited to 'src/livarot/Path.h')
| -rw-r--r-- | src/livarot/Path.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/livarot/Path.h b/src/livarot/Path.h index 2568f9ccc..4155bac31 100644 --- a/src/livarot/Path.h +++ b/src/livarot/Path.h @@ -14,6 +14,7 @@ #include "livarot/livarot-forward.h" #include "libnr/nr-point.h" #include <libnr/nr-rect-l.h> +#include <2geom/forward.h> struct SPStyle; @@ -177,6 +178,8 @@ public: //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(); void Transform(const NR::Matrix &trans); @@ -381,6 +384,10 @@ public: bool ExtendFit(int off, int N, fitting_tables &data,double treshhold, PathDescrCubicTo & res,int &worstP); double RaffineTk (NR::Point pt, NR::Point p0, NR::Point p1, NR::Point p2, NR::Point p3, double it); void FlushPendingAddition(Path* dest,PathDescr *lastAddition,PathDescrCubicTo &lastCubic,int lastAD); + +private: + void AddCurve(Geom::Curve const *c); + }; #endif |
