| 8 | #include <QtCore/QRect> |
| 9 | |
| 10 | class Clusterizer { |
| 11 | public: |
| 12 | Clusterizer(int maxclusters); |
| 13 | ~Clusterizer(); |
| 14 | |
| 15 | void add(int x, int y); // 1x1 rectangle (point) |
| 16 | void add(int x, int y, int w, int h); |
| 17 | void add(const QRect& rect); |
| 18 | |
| 19 | void clear(); |
| 20 | int clusters() { return count; } |
| 21 | const QRect& operator[](int i); |
| 22 | |
| 23 | private: |
| 24 | QRect* cluster; |
| 25 | int count; |
| 26 | const int max; |
| 27 | }; |
| 28 | |
| 29 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected