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