X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fpath.h;h=b08c146e4daaed160524ddc65b6310993149cb51;hp=ac6956c45806ae866d35787b53c2ea0f0590f3aa;hb=35f1190c8c8036ed11180656769cf0c1cbf7c2b3;hpb=a69d8466e4ad4dd92488798582e680ae31029038;ds=sidebyside diff --git a/src/path.h b/src/path.h index ac6956c..b08c146 100644 --- a/src/path.h +++ b/src/path.h @@ -29,16 +29,19 @@ namespace IPDF Rect SolveBounds(const Objects & objects) const; - + // Is point inside shape? + bool PointInside(const Objects & objects, const Vec2 & pt, bool debug=false) const; unsigned m_start; // First bounding Bezier index unsigned m_end; // Last (inclusive) '' '' unsigned m_index; // index into Objects array - std::pair m_top; - std::pair m_bottom; - std::pair m_left; - std::pair m_right; + Vec2 m_top; + Vec2 m_bottom; + Vec2 m_left; + Vec2 m_right; + + std::vector m_fill_points; Colour m_fill; // colour to fill with };