| 1381 | } |
| 1382 | |
| 1383 | void |
| 1384 | BitmapViewObjectCanvas::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 | |
| 1400 | void |
| 1401 | BitmapViewObjectCanvas::set_size (unsigned int width, unsigned int height, double resolution, double font_resolution) |