kqcircuits.util.gui_epr_preview
Utility functions for EPR preview markers in the KLayout GUI.
- kqcircuits.util.gui_epr_preview.draw_epr_markers(element, layout_view)[source]
Draw EPR markers (cross-section cuts and partition regions) into the active LayoutView.
- kqcircuits.util.gui_epr_preview.draw_epr_cross_section_cuts(element, layout_view, trans, epr_module)[source]
Draw EPR correction cuts as persistent KLayout Markers.
A line marker is drawn for each cut, plus text markers at both endpoints.
- Parameters:
element – the Element instance
layout_view – the active pya.LayoutView
trans – DCplxTrans of the selected element instance
epr_module – the loaded EPR module for this element
- kqcircuits.util.gui_epr_preview.draw_epr_partition_regions(element, layout_view, trans, epr_module)[source]
Draw EPR partition regions as persistent KLayout Markers.
A filled polygon marker and a centred text marker are drawn for each enabled partition region.
- Parameters:
element – the Element instance
layout_view – the active pya.LayoutView
trans – DCplxTrans of the selected element instance
epr_module – the loaded EPR module for this element