| 474 | |
| 475 | |
| 476 | class egoCar(Vehicle): |
| 477 | def __init__( |
| 478 | self, id: str, deArea: float = 100, sceMargin: float = 20 |
| 479 | ) -> None: |
| 480 | super().__init__(id) |
| 481 | # detection area |
| 482 | self.deArea = deArea |
| 483 | self.sceMargin = sceMargin |
| 484 | self.start_lane = "" |
| 485 | self.end_lane = "" |
| 486 | |
| 487 | def plotdeArea(self, widget: QWidget, ex: float, ey: float, ctf: CoordTF): |
| 488 | shape = [ctf.qtCoord(self.x, self.y, ex, ey), QPointF(ctf.zoomScale*self.deArea * |
| 489 | 2, ctf.zoomScale*self.deArea*2)] |
| 490 | widget.drawEllipse(shape, QColor(255, 255, 255), QColor(243, 204, 153, 30)) |
| 491 | # graphics_item.append(graphicsItem('ellipse', shape, QColor( |
| 492 | # 255, 255, 255), QColor(243, 204, 153, 30))) |
| 493 | |
| 494 | |
| 495 | class DummyVehicle: |