kicad2ems.gui.volumetab¶
The 3D field panel: a volume dump as a translucent voxel cloud over the board
(copper, vias, the board's box, the drawn solids as the solvers mesh them:
volume3d.solid_pieces), in an OpenGL view you orbit (drag), zoom
(wheel) and pan (middle drag, or Ctrl + drag). A frequency-domain dump plays one
period of Re(F e^jphi), a time-domain one its frames; *Save GIF / MP4* writes
the animation as seen from the current camera. Needs PyOpenGL (pip install
PyOpenGL; the gui extra has it).
- class kicad2ems.gui.volumetab.FrameSlider[source]¶
The frame (a time step or a frequency) as a slider with the frame's label beside it; the methods of the QComboBox it replaced (currentIndex, setCurrentIndex, addItems, clear, count, currentIndexChanged).
- class kicad2ems.gui.volumetab.VolumeTab(win=None)[source]¶
- animated()[source]¶
What a saved animation steps through: 'phase' (a frequency-domain dump's period), 'time' (a time-domain dump's steps) or None (one frame: the envelope, a single time step).
- property geometry[source]¶
The board drawn: the dump's geometry, else the folder's <name>_board.json.
- load(out_dir)[source]¶
A results folder: its volume dumps, its board and the solvers' meshes (a preview writes those). False: nothing to show, or no OpenGL.
- render_frames(orbit=0.0)[source]¶
The animation as RGB images from the current camera, at the view's size (orbit: degrees of azimuth turned over the animation): a frequency-domain dump's phases, or a time-domain dump's time steps (every n-th, as Every n-th frame says). A time-domain dump had given one frame: a still 'animation'.
- kicad2ems.gui.volumetab.copper_shader()[source]¶
A shader for the copper slabs: pyqtgraph's 'shaded' inputs, brighter: ambient 0.5, a key light from the upper front of the view (two-sided: a wall seen from inside the slab is lit too) and a small highlight, so the top faces stay copper-coloured and the walls and edges shade as the view turns.
- kicad2ems.gui.volumetab.gl_problem()[source]¶
'' when the 3D view can draw here, else why not (cached): pyqtgraph.opengl needs OpenGL 2.1, and it draws through PyOpenGL, which must reach the context Qt made. A Windows VM without the GPU passed through has only OpenGL 1.1 (GDI Generic); Qt then falls back to its own software renderer (opengl32sw.dll), whose context PyOpenGL (the system's opengl32.dll) cannot reach, and every GL call fails. KICAD2EMS_GL=off turns the view off, =on skips this check.