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

Function remove_stipple

src/laybasic/laybasic/gsiDeclLayLayoutViewBase.cc:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38{
39
40static void remove_stipple (lay::LayoutViewBase *view, unsigned int index)
41{
42 lay::DitherPattern pattern (view->dither_pattern ());
43
44 if (index >= (unsigned int) std::distance (pattern.begin (), pattern.begin_custom ()) &&
45 index < (unsigned int) std::distance (pattern.begin (), pattern.end ())) {
46 lay::DitherPatternInfo p;
47 pattern.replace_pattern (index, p);
48 pattern.renumber ();
49 view->set_dither_pattern (pattern);
50 }
51}
52
53static void clear_stipples (lay::LayoutViewBase *view)
54{

Callers

nothing calls this directly

Calls 8

dither_patternMethod · 0.80
replace_patternMethod · 0.80
distanceFunction · 0.50
beginMethod · 0.45
begin_customMethod · 0.45
endMethod · 0.45
renumberMethod · 0.45
set_dither_patternMethod · 0.45

Tested by

no test coverage detected