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

Method render

src/laybasic/laybasic/layRubberBox.cc:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void
59RubberBox::render (const Viewport &vp, ViewObjectCanvas &canvas)
60{
61 lay::Renderer &r = canvas.renderer ();
62 int lw = int (0.5 + 1.0 / r.resolution ());
63 lay::CanvasPlane *plane = canvas.plane (lay::ViewOp (m_color, lay::ViewOp::Copy, 0, m_stipple, 0, lay::ViewOp::Rect, lw));
64 if (plane) {
65 r.draw (vp.trans () * db::DBox (m_p1, m_p2), 0, plane, 0, 0);
66 }
67}
68
69void
70RubberBox::set_points (const db::DPoint &p1, const db::DPoint &p2)

Callers

nothing calls this directly

Calls 4

planeMethod · 0.80
resolutionMethod · 0.45
drawMethod · 0.45
transMethod · 0.45

Tested by

no test coverage detected