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

Function show_layout2

src/laybasic/laybasic/gsiDeclLayLayoutViewBase.cc:291–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291static unsigned int show_layout2 (lay::LayoutViewBase *view, db::Layout *layout, std::string &tech, bool add_cellview, bool initialize_layers)
292{
293 lay::LayoutHandle *handle = lay::LayoutHandle::find_layout (layout);
294 if (! handle) {
295 handle = new lay::LayoutHandle (layout, std::string ());
296 }
297 handle->set_tech_name (tech);
298 return view->add_layout (handle, add_cellview, initialize_layers);
299}
300
301static unsigned int show_layout_handle (lay::LayoutViewBase *view, lay::LayoutHandleRef &handle, bool add_cellview, bool initialize_layers)
302{

Callers

nothing calls this directly

Calls 4

find_layoutFunction · 0.85
set_tech_nameMethod · 0.80
stringFunction · 0.50
add_layoutMethod · 0.45

Tested by

no test coverage detected