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

Class Clusterizer

win/Qt/qt_clust.h:10–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <QtCore/QRect>
9
10class Clusterizer {
11public:
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
23private:
24 QRect* cluster;
25 int count;
26 const int max;
27};
28
29#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected