| 553 | static size_t s_instance_count = 0; |
| 554 | |
| 555 | static unsigned int init_layer (db::Layout &layout, const db::RecursiveShapeIterator &si) |
| 556 | { |
| 557 | unsigned int layer_index = layout.insert_layer (); |
| 558 | |
| 559 | if (si.layout ()) { |
| 560 | // try to preserve the layer properties |
| 561 | if (! si.multiple_layers ()) { |
| 562 | if (si.layer () < si.layout ()->layers ()) { |
| 563 | layout.set_properties (layer_index, si.layout ()->get_properties (si.layer ())); |
| 564 | } |
| 565 | } else if (! si.layers ().empty ()) { |
| 566 | layout.set_properties (layer_index, si.layout ()->get_properties (si.layers ().front ())); |
| 567 | } |
| 568 | } |
| 569 | |
| 570 | return layer_index; |
| 571 | } |
| 572 | |
| 573 | DeepShapeStore::DeepShapeStore () |
| 574 | : m_keep_layouts (true), m_wants_all_cells (false), m_sparse_array_limit (-1.0) |
no test coverage detected