MCPcopy Create free account
hub / github.com/NetHack/NetHack / Clusterizer

Class Clusterizer

outdated/win/Qt3/qt3_clust.h:10–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <qrect.h>
9
10class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected