X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fdocument.h;h=d67b0b20f6e1bf907fc4b011bfd789cdfaed175d;hb=25548aa3a2c3fd86202b01a88df6abd820a9eb6d;hp=0b095c36da7deb1ad6d0cab5320b9cf5405b199a;hpb=5f600e9c0d22c09bd60ef3c7245dbecc8d35d576;p=ipdf%2Fcode.git diff --git a/src/document.h b/src/document.h index 0b095c3..d67b0b2 100644 --- a/src/document.h +++ b/src/document.h @@ -83,8 +83,8 @@ namespace IPDF void AddFontGlyphAtPoint(stbtt_fontinfo *font, int character, Real scale, Real x, Real y); void TransformObjectBounds(const SVGMatrix & transform); - void TranslateObjects(const Real & x, const Real & y); - void ScaleObjectsAboutPoint(const Real & x, const Real & y, const Real & scale_amount); + void TranslateObjects(const Real & x, const Real & y, ObjectType type = NUMBER_OF_OBJECT_TYPES); + void ScaleObjectsAboutPoint(const Real & x, const Real & y, const Real & scale_amount, ObjectType type = NUMBER_OF_OBJECT_TYPES); #ifndef QUADTREE_DISABLED inline const QuadTree& GetQuadTree() { if (m_quadtree.root_id == QUADTREE_EMPTY) { GenBaseQuadtree(); } return m_quadtree; } @@ -94,6 +94,13 @@ namespace IPDF int ClipObjectToQuadChild(int object_id, QuadTreeNodeChildren type); #endif + void ClearObjects() + { + m_count = 0; + m_objects.Clear(); + } + + private: friend class View; Objects m_objects;