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

Method show_all_cells

src/laybasic/laybasic/layLayoutViewBase.cc:5396–5415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5394}
5395
5396void
5397LayoutViewBase::show_all_cells (int cv_index)
5398{
5399 if (cv_index < 0 || cv_index >= int (m_hidden_cells.size ())) {
5400 return;
5401 }
5402
5403 if (! m_hidden_cells [cv_index].empty ()) {
5404 if (transacting ()) {
5405 for (std::set<cell_index_type>::const_iterator ci = m_hidden_cells [cv_index].begin (); ci != m_hidden_cells [cv_index].end (); ++ci) {
5406 manager ()->queue (this, new OpHideShowCell (*ci, cv_index, true /*=show*/));
5407 }
5408 } else if (manager () && ! replaying ()) {
5409 manager ()->clear ();
5410 }
5411 m_hidden_cells [cv_index].clear ();
5412 cell_visibility_changed_event ();
5413 redraw (); // needs redraw
5414 }
5415}
5416
5417void
5418LayoutViewBase::show_all_cells ()

Callers 3

test_2Method · 0.80
cm_cell_show_allMethod · 0.80
cv_show_all_cellsFunction · 0.80

Calls 10

redrawFunction · 0.85
transactingFunction · 0.70
managerFunction · 0.70
replayingFunction · 0.50
sizeMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
queueMethod · 0.45
clearMethod · 0.45

Tested by 1

test_2Method · 0.64