MCPcopy Create free account
hub / github.com/PJLab-ADG/OASim / plotJunction

Method plotJunction

limsim/simModel/common/networkBuild.py:447–455  ·  view source on GitHub ↗
(
            self, jid: str, widget: QWidget, ex: float, ey: float, ctf: CoordTF)

Source from the content-addressed store, hash-verified

445
446
447 def plotJunction(
448 self, jid: str, widget: QWidget, ex: float, ey: float, ctf: CoordTF):
449 junction = self.getJunction(jid)
450 polyShape = [ctf.qtCoord(p[0], p[1], ex, ey) for p in junction.shape]
451 widget.drawPolyline(polyShape, QColor(255, 255, 255, 70), 2)
452 # graphics_items.append(graphicsItem('polyline', polyShape, QColor(255, 255, 255, 70), QColor(0, 0, 0), 2))
453
454 for jl in junction.JunctionLanes:
455 self.plotJunctionLane(jl, widget, ex, ey, ctf)
456
457 def plotScene(self, widget: QWidget, ex:float, ey:float, ctf: CoordTF, is_selectable: bool = False):
458 if self.edges:

Callers 5

plotSceneMethod · 0.95
plotSceneMethod · 0.80
plotSceneMethod · 0.80
plotSceneMethod · 0.80
plotSceneMethod · 0.80

Calls 4

getJunctionMethod · 0.95
plotJunctionLaneMethod · 0.95
qtCoordMethod · 0.80
drawPolylineMethod · 0.80

Tested by

no test coverage detected