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

Function add_stipple1

src/laybasic/laybasic/gsiDeclLayLayoutViewBase.cc:59–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static unsigned int add_stipple1 (lay::LayoutViewBase *view, const std::string &name, const std::vector<unsigned int> &data, unsigned int bits)
60{
61 lay::DitherPattern pattern (view->dither_pattern ());
62
63 lay::DitherPatternInfo p;
64 p.set_name (name);
65 if (bits > 0 && ! data.empty ()) {
66 p.set_pattern (&(*data.begin ()), std::min (32u, bits), std::min (32u, (unsigned int) data.size ()));
67 }
68 unsigned int index = pattern.add_pattern (p);
69
70 view->set_dither_pattern (pattern);
71
72 return index;
73}
74
75static unsigned int add_stipple2 (lay::LayoutViewBase *view, const std::string &name, const std::string &s)
76{

Callers

nothing calls this directly

Calls 9

minFunction · 0.85
dither_patternMethod · 0.80
add_patternMethod · 0.80
set_nameMethod · 0.45
emptyMethod · 0.45
set_patternMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45
set_dither_patternMethod · 0.45

Tested by

no test coverage detected