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

Method set_dither_pattern

src/laybasic/laybasic/layLayoutViewBase.cc:1508–1527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1506}
1507
1508void
1509LayoutViewBase::set_dither_pattern (const lay::DitherPattern &pattern)
1510{
1511 if (mp_canvas->dither_pattern () != pattern) {
1512
1513 if (transacting ()) {
1514 manager ()->queue (this, new OpSetDitherPattern (mp_canvas->dither_pattern (), pattern));
1515 } else if (manager () && ! replaying ()) {
1516 manager ()->clear ();
1517 }
1518 mp_canvas->set_dither_pattern (pattern);
1519
1520 for (unsigned int i = 0; i < layer_lists (); ++i) {
1521 m_layer_properties_lists [i]->set_dither_pattern (pattern);
1522 }
1523
1524 layer_list_changed_event (1);
1525
1526 }
1527}
1528
1529const LayerPropertiesList &
1530LayoutViewBase::get_properties (unsigned int index) const

Callers 3

copy_fromMethod · 0.45
merge_dither_patternMethod · 0.45
init_layer_propertiesMethod · 0.45

Calls 7

layer_listsFunction · 0.85
dither_patternMethod · 0.80
transactingFunction · 0.70
managerFunction · 0.70
replayingFunction · 0.50
queueMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected