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

Method do_render

src/laybasic/laybasic/layViewObject.cc:1154–1170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1152}
1153
1154void
1155ViewObjectUI::do_render (const lay::Viewport &vp, lay::ViewObjectCanvas &canvas, bool st)
1156{
1157 if (st) {
1158 m_needs_update_static = false;
1159 }
1160
1161 for (object_iterator obj = begin_objects (); obj != end_objects (); ++obj) {
1162 if (obj->m_static == st && obj->is_visible () && (! m_view_objects_dismissed || ! obj->get_dismissable ())) {
1163 BEGIN_PROTECTED_SILENT
1164 obj->render (vp, canvas);
1165 END_PROTECTED_SILENT
1166 }
1167 }
1168
1169 canvas.sort_planes ();
1170}
1171
1172void
1173ViewObjectUI::grab_mouse (ViewService *obj, bool a)

Callers

nothing calls this directly

Calls 4

begin_objectsFunction · 0.85
end_objectsFunction · 0.85
sort_planesMethod · 0.80
is_visibleMethod · 0.45

Tested by

no test coverage detected