Clipping for RECT types. Breaks a little.
[ipdf/code.git] / src / document.h
index 52e9295..76e3b7f 100644 (file)
@@ -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:

UCC git Repository :: git.ucc.asn.au