12 Document(const std::string & filename = "") : m_objects(), m_count(0) {Load(filename);}
13 virtual ~Document() {}
15 void Load(const std::string & filename = "");
16 void Save(const std::string & filename);
17 void DebugDumpObjects();
19 unsigned ObjectCount() const {return m_count;}
20 inline const Objects & GetObjects() const {return m_objects;}
22 bool operator==(const Document & equ) const;
23 bool operator!=(const Document & equ) const {return !(this->operator==(equ));}
25 void Add(ObjectType type, const Rect & bounds, unsigned data_index = 0);
26 unsigned AddBezierData(const Bezier & bezier);
28 #ifndef QUADTREE_DISABLED
29 inline const QuadTree& GetQuadTree() const { return m_quadtree; }
35 #ifndef QUADTREE_DISABLED
37 void GenBaseQuadtree();