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

Method selection_catch_bbox

src/laybasic/laybasic/layEditable.cc:178–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178db::DBox
179Editables::selection_catch_bbox ()
180{
181 db::DBox sel_bbox;
182 for (iterator e = begin (); e != end (); ++e) {
183 // we use a larger distance for the bbox because once there is a box it's
184 // more likely we want to capture it and it's tedious to capture a single
185 // text otherwise (issue-994).
186 double l = e->catch_distance () * 3.0;
187 sel_bbox += e->selection_bbox ().enlarged (db::DVector (l, l));
188 }
189 return sel_bbox;
190}
191
192void
193Editables::transform (const db::DCplxTrans &t)

Callers

nothing calls this directly

Calls 5

beginFunction · 0.70
endFunction · 0.70
catch_distanceMethod · 0.45
enlargedMethod · 0.45
selection_bboxMethod · 0.45

Tested by

no test coverage detected