1 #ifndef PDFTRON_H_CPPPDFRectCollection
2 #define PDFTRON_H_CPPPDFRectCollection
7 namespace pdftron{
namespace PDF{
20 void AddRect(
double x1,
double y1,
double x2,
double y2)
22 InnerRect temp = {x1, y1, x2, y2};
23 m_rects.push_back(temp);
28 const InnerRect& found = m_rects[index];
29 return Rect(found.x1, found.y1, found.x2, found.y2);
34 return m_rects.size();
49 std::vector<InnerRect> m_rects;
55 #endif // PDFTRON_H_CPPPDFRectCollection
void AddRect(const Rect &to_add)
void AddRect(double x1, double y1, double x2, double y2)
Rect GetRectAt(size_t index) const
size_t GetNumRects() const