X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdocument.h;h=76e3b7f68be899a222eac4ffd9bce9ff8a77f171;hp=52e9295ed55fe47cc3c3903d3f53c4aeb811a283;hb=f8aaf1972bd67344c23d5bbd2552daf6065f448d;hpb=255065a607d82846c4a8b730000d547b3f080d0c diff --git a/src/document.h b/src/document.h index 52e9295..76e3b7f 100644 --- a/src/document.h +++ b/src/document.h @@ -14,10 +14,11 @@ namespace IPDF struct SVGMatrix { Real a; // width - Real b; // skew y by x Real c; // skew x by y - Real d; // height Real e; // translate x + + Real b; // skew y by x + Real d; // height Real f; // translate y }; // SVG matrix transforms (x,y) <- (a x' + c y' + e, b x' + d y' + f) @@ -81,6 +82,8 @@ namespace IPDF inline const QuadTree& GetQuadTree() { if (m_quadtree.root_id == QUADTREE_EMPTY) { GenBaseQuadtree(); } return m_quadtree; } QuadTreeIndex GenQuadChild(QuadTreeIndex parent, QuadTreeNodeChildren type); QuadTreeIndex GenQuadParent(QuadTreeIndex child, QuadTreeNodeChildren mytype); + // Returns the number of objects the current object formed when clipped, the objects in question are added to the end of the document. + int ClipObjectToQuadChild(int object_id, QuadTreeNodeChildren type); #endif private: