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

Method show_cell

src/laybasic/laybasic/layLayoutViewBase.cc:5377–5394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5375}
5376
5377void
5378LayoutViewBase::show_cell (cell_index_type ci, int cellview_index)
5379{
5380 if (cellview_index < 0) {
5381 return;
5382 }
5383 if (int (m_hidden_cells.size ()) > cellview_index) {
5384 if (m_hidden_cells [cellview_index].erase (ci) > 0) {
5385 if (transacting ()) {
5386 manager ()->queue (this, new OpHideShowCell (ci, cellview_index, true /*=show*/));
5387 } else if (manager () && ! replaying ()) {
5388 manager ()->clear ();
5389 }
5390 cell_visibility_changed_event ();
5391 redraw (); // needs redraw
5392 }
5393 }
5394}
5395
5396void
5397LayoutViewBase::show_all_cells (int cv_index)

Callers 1

cv_show_cellFunction · 0.45

Calls 8

redrawFunction · 0.85
transactingFunction · 0.70
managerFunction · 0.70
replayingFunction · 0.50
sizeMethod · 0.45
eraseMethod · 0.45
queueMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected