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

Method sort_planes

src/laybasic/laybasic/layViewObject.cc:1383–1398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383void
1384BitmapViewObjectCanvas::sort_planes ()
1385{
1386 // sort the planes by view operator - this ensures a certain plane order as implied by
1387 // the plane index of the plane operators.
1388 std::vector <std::pair <lay::ViewOp, lay::Bitmap *> > bitmaps;
1389 bitmaps.reserve (mp_fg_bitmaps.size ());
1390 for (unsigned int i = 0; i < mp_fg_bitmaps.size (); ++i) {
1391 bitmaps.push_back (std::make_pair (m_fg_view_ops [i], mp_fg_bitmaps [i]));
1392 }
1393 tl::sort (bitmaps.begin (), bitmaps.end ());
1394 for (unsigned int i = 0; i < mp_fg_bitmaps.size (); ++i) {
1395 m_fg_view_ops [i] = bitmaps [i].first;
1396 mp_fg_bitmaps [i] = bitmaps [i].second;
1397 }
1398}
1399
1400void
1401BitmapViewObjectCanvas::set_size (unsigned int width, unsigned int height, double resolution, double font_resolution)

Callers 1

do_renderMethod · 0.80

Calls 6

sortFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected