(self, name, bbox, matrix)
| 640 | class LTFigure(LTLayoutContainer): |
| 641 | |
| 642 | def __init__(self, name, bbox, matrix): |
| 643 | self.name = name |
| 644 | self.matrix = matrix |
| 645 | (x,y,w,h) = bbox |
| 646 | bbox = get_bound( apply_matrix_pt(matrix, (p,q)) |
| 647 | for (p,q) in ((x,y), (x+w,y), (x,y+h), (x+w,y+h)) ) |
| 648 | LTLayoutContainer.__init__(self, bbox) |
| 649 | return |
| 650 | |
| 651 | def __repr__(self): |
| 652 | return ('<%s(%s) %s matrix=%s>' % |
nothing calls this directly
no test coverage detected