X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fquadtree.h;h=4fd4b2d6b8decdfd90ade563871b746d44d7db27;hb=216bf86aee4c7a1f3392051a457e7e5933f40fbd;hp=e35da2eab45182aba96509edd40f9b6cd3409b9a;hpb=ef0af5fd0129161a9e079bd3cd1298b53f1fe11a;p=ipdf%2Fcode.git diff --git a/src/quadtree.h b/src/quadtree.h index e35da2e..4fd4b2d 100644 --- a/src/quadtree.h +++ b/src/quadtree.h @@ -42,6 +42,8 @@ namespace IPDF unsigned object_end; // Linked list of "extra" nodes QuadTreeIndex next_overlay; + // First object which has not yet been propagated to extant children/parent. + unsigned object_dirty; }; struct QuadTree @@ -51,6 +53,7 @@ namespace IPDF std::vector nodes; QuadTreeIndex GetNeighbour(QuadTreeIndex start, int xdir, int ydir, Document *doc) const; + void GetCanonicalCoords(QuadTreeIndex& start, Real& x, Real& y, Document *doc); };