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

Method replace_pattern

src/laybasic/laybasic/layDitherPattern.cc:1030–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1028}
1029
1030void
1031DitherPattern::replace_pattern (unsigned int i, const DitherPatternInfo &p)
1032{
1033 while (i >= count ()) {
1034 m_pattern.push_back (DitherPatternInfo ());
1035 }
1036
1037 if (m_pattern [i] != p) {
1038 if (manager () && manager ()->transacting ()) {
1039 manager ()->queue (this, new ReplaceDitherPatternOp (i, m_pattern [i], p));
1040 }
1041 m_pattern [i] = p;
1042 }
1043}
1044
1045unsigned int
1046DitherPattern::add_pattern (const DitherPatternInfo &p)

Callers 8

double_clickedMethod · 0.80
clone_button_clickedMethod · 0.80
delete_button_clickedMethod · 0.80
up_button_clickedMethod · 0.80
down_button_clickedMethod · 0.80
editedMethod · 0.80
remove_stippleFunction · 0.80

Calls 4

countFunction · 0.70
managerFunction · 0.70
push_backMethod · 0.45
queueMethod · 0.45

Tested by

no test coverage detected