Scribus
Open source desktop publishing at your fingertips
scribushelper.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef SCRIBUSHELPER_H
8 #define SCRIBUSHELPER_H
9 
10 #include "fpointarray.h"
11 #include <vector>
12 #include "sbasis.h"
13 #include "sbasis-geometric.h"
14 #include "bezier-to-sbasis.h"
15 #include "sbasis-to-bezier.h"
16 #include "d2.h"
17 #include "piecewise.h"
18 #include "utils.h"
19 #include "path.h"
20 #include "sbasis-2d.h"
21 #include <QPainterPath>
22 
23 static FPoint currentPoint;
24 // Functions to convert from lib2geom to FPointArray and vice versa
25 void scribus_curve(FPointArray *cr, Geom::Curve const& c);
26 void geomPath2FPointArray(FPointArray *p, Geom::Path &pp);
27 void Piecewise2FPointArray(FPointArray *p, Geom::Piecewise<Geom::D2<Geom::SBasis> > &pp);
28 void D2sb2d2FPointArray(FPointArray* cr, Geom::D2<Geom::SBasis2d> const &sb2, int num, double width);
29 std::vector<Geom::Path> FPointArray2geomPath(FPointArray &p, bool closed);
30 Geom::Piecewise<Geom::D2<Geom::SBasis> > FPointArray2Piecewise(FPointArray &p, bool closed);
31 
32 // Functions to convert from lib2geom to QPainterPath and vice versa
33 void arthur_curve(QPainterPath *cr, Geom::Curve const& c);
34 void geomPath2QPainterPath(QPainterPath *p, Geom::Path &pp);
35 void Piecewise2QPainterPath(QPainterPath *p, Geom::Piecewise<Geom::D2<Geom::SBasis> > &pp);
36 void D2sb2d2QPainterPath(QPainterPath* cr, Geom::D2<Geom::SBasis2d> const &sb2, int num, double width);
37 std::vector<Geom::Path> QPainterPath2geomPath(QPainterPath &p, bool closed);
38 Geom::Piecewise<Geom::D2<Geom::SBasis> > QPainterPath2Piecewise(QPainterPath &p, bool closed);
39 
40 #endif
Definition: path.h:419
Definition: path.h:52
A point with floating point precision.
Definition: fpoint.h:43
Definition: piecewise.h:45
Definition: fpointarray.h:42