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

Method transform

src/laybasic/laybasic/layEditable.cc:192–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void
193Editables::transform (const db::DCplxTrans &t)
194{
195 std::unique_ptr<db::Transaction> trans_holder (new db::Transaction (manager (), tl::to_string (tr ("Transform"))));
196
197 if (has_selection ()) {
198
199 try {
200
201 trans_holder->open ();
202
203 // this dummy operation will update the screen:
204 if (manager ()) {
205 manager ()->queue (this, new db::Op ());
206 }
207
208 for (iterator e = begin (); e != end (); ++e) {
209 e->transform (t);
210 }
211
212 } catch (...) {
213 trans_holder->cancel ();
214 throw;
215 }
216
217 }
218}
219
220void
221Editables::paste ()

Callers 5

do_transformMethod · 0.45
transform_layoutMethod · 0.45
cm_align_cell_originMethod · 0.45
render_bgMethod · 0.45
key_eventMethod · 0.45

Calls 9

has_selectionFunction · 0.85
managerFunction · 0.70
beginFunction · 0.70
endFunction · 0.70
to_stringFunction · 0.50
trFunction · 0.50
openMethod · 0.45
queueMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected