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

Method select_cell

src/laybasic/laybasic/layLayoutViewBase.cc:5295–5314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5293}
5294
5295void
5296LayoutViewBase::select_cell (const cell_path_type &path, int index)
5297{
5298 if (index >= 0 && int (m_cellviews.size ()) > index && (cellview_iter (index)->specific_path ().size () > 0 || cellview_iter (index)->unspecific_path () != path)) {
5299
5300 cellview_about_to_change_event (index);
5301
5302 set_min_hier_levels (0);
5303 cancel ();
5304 cellview_iter (index)->set_specific_path (lay::CellView::specific_cell_path_type ());
5305 cellview_iter (index)->set_unspecific_path (path);
5306 set_active_cellview_index (index);
5307 redraw ();
5308
5309 cellview_changed (index);
5310
5311 update_content ();
5312
5313 }
5314}
5315
5316void
5317LayoutViewBase::select_cell (cell_index_type cell_index, int index)

Callers 15

test_1Method · 0.80
do_update_markersMethod · 0.80
highlight_currentMethod · 0.80
cutMethod · 0.80
highlight_currentMethod · 0.80
export_netsMethod · 0.80
menu_activatedMethod · 0.80
cm_cell_replaceMethod · 0.80
cm_cell_deleteMethod · 0.80
cm_new_cellMethod · 0.80
export_clickedMethod · 0.80

Calls 9

redrawFunction · 0.85
set_specific_pathMethod · 0.80
set_unspecific_pathMethod · 0.80
set_min_hier_levelsFunction · 0.70
cancelFunction · 0.70
sizeMethod · 0.45
is_validMethod · 0.45
cell_indexMethod · 0.45
set_cellMethod · 0.45

Tested by 1

test_1Method · 0.64