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

Method hide_cell

src/laybasic/laybasic/layLayoutViewBase.cc:5357–5375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5355}
5356
5357void
5358LayoutViewBase::hide_cell (cell_index_type ci, int cellview_index)
5359{
5360 if (cellview_index < 0) {
5361 return;
5362 }
5363 while (int (m_hidden_cells.size ()) <= cellview_index) {
5364 m_hidden_cells.push_back (std::set <cell_index_type> ());
5365 }
5366 if (m_hidden_cells [cellview_index].insert (ci).second) {
5367 if (transacting ()) {
5368 manager ()->queue (this, new OpHideShowCell (ci, cellview_index, false /*=hide*/));
5369 } else if (manager () && ! replaying ()) {
5370 manager ()->clear ();
5371 }
5372 cell_visibility_changed_event ();
5373 redraw (); // needs redraw
5374 }
5375}
5376
5377void
5378LayoutViewBase::show_cell (cell_index_type ci, int cellview_index)

Callers 1

cv_hide_cellFunction · 0.45

Calls 9

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

Tested by

no test coverage detected