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) {
72 for (std::vector<RectangleInt2D>::const_iterator it=data.begin(); it!=data.end(); ++it) {
73 if (rec.intersect(*it)) {
86 #endif //DOXYGEN_NOTFOR_DEVEL