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

Method goto_view

src/laybasic/laybasic/layLayoutViewBase.cc:4248–4265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4246}
4247
4248void
4249LayoutViewBase::goto_view (const DisplayState &state)
4250{
4251 mp_canvas->zoom_box (state.box ());
4252
4253 std::list <lay::CellView> cellviews;
4254 for (unsigned int i = 0; i < m_cellviews.size (); ++i) {
4255 cellviews.push_back (state.cellview (i, cellview_iter (i)->operator-> ()));
4256 }
4257
4258 select_cellviews (cellviews);
4259
4260 if (state.min_hier () <= state.max_hier ()) {
4261 set_hier_levels_basic (std::make_pair (state.min_hier (), state.max_hier ()));
4262 }
4263
4264 update_content ();
4265}
4266
4267void
4268LayoutViewBase::save_view (DisplayState &state) const

Callers 6

deactivatedMethod · 0.80
deactivatedMethod · 0.80
bookmark_triggeredMethod · 0.80
triggeredMethod · 0.80
clone_current_viewMethod · 0.80
restoreMethod · 0.80

Calls 7

cellviewMethod · 0.80
max_hierMethod · 0.80
zoom_boxMethod · 0.45
boxMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
operator->Method · 0.45

Tested by

no test coverage detected