Parameters ---------- bbox : `Bbox` The child bounding box to wrap. x0 : float or None The locked value for x0, or None to leave unlocked. y0 : float or None The locked value for y0, or None to leave unlocked. x1
(self, bbox, x0=None, y0=None, x1=None, y1=None, **kwargs)
| 1212 | accordingly with the exception of the locked elements. |
| 1213 | """ |
| 1214 | def __init__(self, bbox, x0=None, y0=None, x1=None, y1=None, **kwargs): |
| 1215 | """ |
| 1216 | Parameters |
| 1217 | ---------- |
| 1218 | bbox : `Bbox` |
| 1219 | The child bounding box to wrap. |
| 1220 | |
| 1221 | x0 : float or None |
| 1222 | The locked value for x0, or None to leave unlocked. |
| 1223 | |
| 1224 | y0 : float or None |
| 1225 | The locked value for y0, or None to leave unlocked. |
| 1226 | |
| 1227 | x1 : float or None |
| 1228 | The locked value for x1, or None to leave unlocked. |
| 1229 | |
| 1230 | y1 : float or None |
| 1231 | The locked value for y1, or None to leave unlocked. |
| 1232 | |
| 1233 | """ |
| 1234 | _api.check_isinstance(BboxBase, bbox=bbox) |
| 1235 | super().__init__(**kwargs) |
| 1236 | self._bbox = bbox |
| 1237 | self.set_children(bbox) |
| 1238 | self._points = None |
| 1239 | fp = [x0, y0, x1, y1] |
| 1240 | mask = [val is None for val in fp] |
| 1241 | self._locked_points = np.ma.array(fp, float, mask=mask).reshape((2, 2)) |
| 1242 | |
| 1243 | __str__ = _make_str_method("_bbox", "_locked_points") |
| 1244 |
nothing calls this directly
no test coverage detected