21 #ifndef Tulip_OCCLUSIONTEST_H 22 #define Tulip_OCCLUSIONTEST_H 23 #ifndef DOXYGEN_NOTFOR_DEVEL 27 #include <tulip/Rectangle.h> 31 typedef Rectangle<int> RectangleInt2D;
40 struct TLP_GL_SCOPE OcclusionTest {
41 std::vector<RectangleInt2D> data;
56 bool addRectangle(
const RectangleInt2D &rec) {
57 if (!testRectangle(rec)) {
69 bool testRectangle(
const RectangleInt2D &rec) {
70 for (std::vector<RectangleInt2D>::const_iterator it=data.begin(); it!=data.end(); ++it) {
71 if (rec.intersect(*it))
81 #endif //DOXYGEN_NOTFOR_DEVEL