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

Method ensure_layer_selected

src/laybasic/laybasic/layLayoutViewBase.cc:5913–5926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5911}
5912
5913void
5914LayoutViewBase::ensure_layer_selected ()
5915{
5916 if (current_layer () == lay::LayerPropertiesConstIterator ()) {
5917 const lay::LayerPropertiesList &lp = get_properties ();
5918 lay::LayerPropertiesConstIterator li = lp.begin_const_recursive ();
5919 while (! li.at_end () && li->has_children ()) {
5920 ++li;
5921 }
5922 if (! li.at_end ()) {
5923 set_current_layer (li);
5924 }
5925 }
5926}
5927
5928void
5929LayoutViewBase::do_set_no_stipples (bool /*no_stipples*/)

Callers

nothing calls this directly

Calls 6

set_current_layerFunction · 0.85
begin_const_recursiveMethod · 0.80
get_propertiesFunction · 0.50
at_endMethod · 0.45
has_childrenMethod · 0.45

Tested by

no test coverage detected