MCPcopy Create free account
hub / github.com/KLayout/klayout / change_visibility

Method change_visibility

src/laybasic/laybasic/layLayoutCanvas.cc:1116–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114}
1115
1116void
1117LayoutCanvas::change_visibility (const std::vector <bool> &visible)
1118{
1119 stop_redraw ();
1120 mp_redraw_thread->change_visibility (visible);
1121 for (unsigned int i = 0; i < visible.size () && i < m_layers.size (); ++i) {
1122 m_layers [i].visible = visible [i];
1123 }
1124
1125 if (! m_need_redraw) {
1126 m_redraw_clearing = false;
1127 }
1128
1129 m_need_redraw = true;
1130 m_need_redraw_layer.clear ();
1131
1132 update (); // produces a paintEvent()
1133}
1134
1135void
1136LayoutCanvas::stop_redraw ()

Callers 1

do_prop_changedMethod · 0.45

Calls 4

stop_redrawFunction · 0.85
updateFunction · 0.70
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected