X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdocument.h;h=c0adc527fda8c0883504f3a175b8a3eddefcbae6;hp=07dc33becbdc0c19533461bd70841621ac2152fc;hb=11724d8d8161e2c02e9278aed0e765de3ca436b4;hpb=666fa863baba6345fa5cf66711e9149b5d06b825 diff --git a/src/document.h b/src/document.h index 07dc33b..c0adc52 100644 --- a/src/document.h +++ b/src/document.h @@ -12,7 +12,7 @@ namespace IPDF Document(const std::string & filename = "") : m_objects(), m_count(0) {Load(filename);} virtual ~Document() {} - void LoadSVG(const std::string & filename, const Rect & bounds = {0,0,1,1}); + void LoadSVG(const std::string & filename, const Rect & bounds = Rect(0,0,1,1)); void Load(const std::string & filename = ""); void Save(const std::string & filename); @@ -31,7 +31,8 @@ namespace IPDF #ifndef QUADTREE_DISABLED inline const QuadTree& GetQuadTree() { if (m_quadtree.root_id == QUADTREE_EMPTY) { GenBaseQuadtree(); } return m_quadtree; } - QuadTreeIndex GenQuadNode(QuadTreeIndex parent, QuadTreeNodeChildren type); + QuadTreeIndex GenQuadChild(QuadTreeIndex parent, QuadTreeNodeChildren type); + QuadTreeIndex GenQuadParent(QuadTreeIndex child, QuadTreeNodeChildren mytype); #endif private: