(self, (x0,y0,x1,y1))
| 83 | (self.__class__.__name__, bbox2str(self.bbox))) |
| 84 | |
| 85 | def set_bbox(self, (x0,y0,x1,y1)): |
| 86 | self.x0 = x0 |
| 87 | self.y0 = y0 |
| 88 | self.x1 = x1 |
| 89 | self.y1 = y1 |
| 90 | self.width = x1-x0 |
| 91 | self.height = y1-y0 |
| 92 | self.bbox = (x0, y0, x1, y1) |
| 93 | return |
| 94 | |
| 95 | def is_empty(self): |
| 96 | return self.width <= 0 or self.height <= 0 |