kicad2ems.gui.planview

The viewer's plan: the board seen from above (model mm, y up as in the 3D view):
its outline, the copper of one layer (the others faint), the drawn solids as
the solvers mesh them (dashed), a solver's mesh on that layer, the ports, and
the line model's sections drawn at their width and coloured by Z0 against the
ports' impedance. Hover a section to read it; click to select it (the viewer's
section list and the 3D view follow).

The KiCad plugin's map subclasses PlanView. A subclass may use, beside its
public methods (load, set_board, set_lines_visible, current_layer, z_of, redraw,
fit, select) and its `selected` signal: `plot` (the pyqtgraph PlotWidget it
draws in), `mesh` (the mesh selector), and override redraw() and the mouse hooks
_moved(scene_pos) and _clicked(event), calling the base's for what it does not
handle itself.
class kicad2ems.gui.planview.PlanView[source]
load(out_dir, lines=None)[source]
A results folder's board (<name>_board.json), meshes and line model;
False when there is no board.
select(i, emit=False)[source]
Select a section (None: none); on its layer (switched to if need
be).
set_board(board, lines=None, found_meshes=None, fit=True)[source]
A board (Board.to_dict(), model mm) and its line model's drawing,
without a results folder (the KiCad plugin's live board); False when
there is no board.
start_pick(kind, callback, picked=(), layout=None)[source]
Clicks name a net ('net', 'nets') or a part ('part', 'parts') to
callback(name) until end_pick(); picked: the names already chosen, drawn
marked. layout: the board as drawn (kicad2ems.core.layout), shown for
the pick in place of a run's board (which has only the nets it
simulated, and no parts) and put back after.
under(scene_pos)[source]
(the net, the part) under a point of the scene on the layer shown,
each None where there is none.
kicad2ems.gui.planview.section_path(e)[source]
A section's outline as a QPainterPath (overlay.section_polygon).