X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fpath.h;h=7eb8dee629f1aacf44cfa7479e340e9ab5c8fa55;hp=fa63cb4651e5a5be6e07d25e8637ab60f9361864;hb=2d12d37f1657d6aef9bb80d735b6c7022aecba6e;hpb=b29310a04a51cd7d39d0858e2dec8a75c15cf097 diff --git a/src/path.h b/src/path.h index fa63cb4..7eb8dee 100644 --- a/src/path.h +++ b/src/path.h @@ -6,6 +6,13 @@ #include "rect.h" #include "real.h" +#ifdef QUADTREE_DISABLED + +#define TRANSFORM_BEZIERS_TO_PATH + + +#endif + namespace IPDF { @@ -26,9 +33,10 @@ namespace IPDF struct Path { - Path(const Objects & objects, unsigned _start, unsigned _end, const Colour & _fill = Colour(128,128,128,255), const Colour & _stroke = Colour(0,0,0,0)); + Path(Objects & objects, unsigned _start, unsigned _end, const Colour & _fill = Colour(128,128,128,255), const Colour & _stroke = Colour(0,0,0,0)); Rect SolveBounds(const Objects & objects) const; + Rect & GetBounds(Objects & objects); std::vector & FillPoints(const Objects & objects, const View & view); // Is point inside shape?