X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fpath.h;h=fa63cb4651e5a5be6e07d25e8637ab60f9361864;hp=1a0ed536d0642daf45c9074728db46101c5d778b;hb=138ee74c900c6f485cdd959d55c01099d6043661;hpb=e7066887c0d142ddef87ec9ae07ef08ff31573dc diff --git a/src/path.h b/src/path.h index 1a0ed53..fa63cb4 100644 --- a/src/path.h +++ b/src/path.h @@ -22,12 +22,14 @@ namespace IPDF }; class Objects; + class View; 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)); Rect SolveBounds(const Objects & objects) const; + std::vector & FillPoints(const Objects & objects, const View & view); // Is point inside shape? bool PointInside(const Objects & objects, const Vec2 & pt, bool debug=false) const;