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

Method redraw

src/laybasic/laybasic/layLayoutViewBase.cc:4163–4183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4161}
4162
4163void
4164LayoutViewBase::redraw ()
4165{
4166 std::vector <lay::RedrawLayerInfo> layers;
4167
4168 size_t nlayers = 0;
4169 for (lay::LayerPropertiesConstIterator l = begin_layers (); !l.at_end (); ++l) {
4170 if (! l->has_children ()) {
4171 ++nlayers;
4172 }
4173 }
4174 layers.reserve (nlayers);
4175
4176 for (lay::LayerPropertiesConstIterator l = begin_layers (); !l.at_end (); ++l) {
4177 if (! l->has_children ()) {
4178 layers.push_back (RedrawLayerInfo (*l));
4179 }
4180 }
4181
4182 mp_canvas->redraw_new (layers);
4183}
4184
4185void
4186LayoutViewBase::transform (const db::DCplxTrans &tr)

Callers

nothing calls this directly

Calls 7

RedrawLayerInfoClass · 0.85
redraw_newMethod · 0.80
begin_layersFunction · 0.70
at_endMethod · 0.45
has_childrenMethod · 0.45
reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected