(
self, lane: NormalLane, flag: int, ex: float, ey: float,
widget: QWidget, ctf: CoordTF, is_selectable: bool
)
| 354 | Th.start() |
| 355 | |
| 356 | def plotLane( |
| 357 | self, lane: NormalLane, flag: int, ex: float, ey: float, |
| 358 | widget: QWidget, ctf: CoordTF, is_selectable: bool |
| 359 | ): |
| 360 | lid = lane.id |
| 361 | left_bound_tf = [ |
| 362 | ctf.qtCoord(wp[0], wp[1], ex, ey) for wp in lane.left_bound |
| 363 | ] |
| 364 | right_bound_tf = [ |
| 365 | ctf.qtCoord(wp[0], wp[1], ex, ey) for wp in lane.right_bound |
| 366 | ] |
| 367 | widget.drawPolyline(left_bound_tf, QColor(255,255,255), 1) |
| 368 | # graphics_items.append(graphicsItem('polyline',left_bound_tf, QColor(255,255,255),QColor(0,0,0), 1)) |
| 369 | if flag: |
| 370 | widget.drawPolyline(right_bound_tf, QColor(255,255,255), 1) |
| 371 | # graphics_items.append(graphicsItem('polyline',right_bound_tf, QColor(255,255,255), QColor(0,0,0), 1)) |
| 372 | |
| 373 | left_bound_tf.reverse() |
| 374 | all_bound_tf = right_bound_tf + left_bound_tf |
| 375 | all_bound_tf.append(right_bound_tf[0]) |
| 376 | widget.drawPolygon(all_bound_tf, QColor(255, 255, 255), QColor(255, 255, 255, 30), 0, is_selectable, lid) |
| 377 | # graphics_items.append(graphicsItem('polygon',all_bound_tf, QColor(255, 255, 255),QColor(255, 255, 255, 30), 0, is_selectable, lid)) |
| 378 | |
| 379 | |
| 380 | def plotEdge(self, eid: str, widget: QWidget, ex: float, ey: float, |
no test coverage detected