X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fquadtree.h;h=9a7b8f97673dd7b3c4a45b09fd59981727236d08;hp=e35da2eab45182aba96509edd40f9b6cd3409b9a;hb=b716ae547424e4e4bbda86781a151c31e3a64e67;hpb=fe80b0a479a44182b6e7e982fb6ff33b6e17303d diff --git a/src/quadtree.h b/src/quadtree.h index e35da2e..9a7b8f9 100644 --- a/src/quadtree.h +++ b/src/quadtree.h @@ -42,6 +42,9 @@ 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; + bool render_dirty; }; struct QuadTree @@ -51,6 +54,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); };