bool ossimAnnotationMultiPolyObject::intersects(const ossimDrect& rect)const { // do the quick checks first // if(rect.hasNans()) return false; if(!rect.intersects(theBoundingRect)) return false; if(theMultiPolygon.size()<1) return false; for(ossim_uint32 i =0; i < theMultiPolygon.size(); ++i) { vector<ossimPolygon> result; if(theMultiPolygon[i].clipToRect(result, rect)) { return true; } } return false; }
bool ossimAnnotationFontObject::intersects(const ossimDrect& rect)const { return rect.intersects(theBoundingRect); }