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

Method quad_box

src/db/db/dbArray.h:2029–2046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2027 */
2028 template <class Iter, class BoxConv>
2029 box_type quad_box (const Iter &iter, const BoxConv &bc) const
2030 {
2031 box_type bb;
2032 if (mp_base) {
2033 bb = mp_base->bbox (box_type (0, 0, 0, 0));
2034 }
2035 bb &= iter.quad_box ();
2036
2037 if (mp_base) {
2038 if (mp_base->is_complex ()) {
2039 return bb * box_type (mp_base->complex_trans (simple_trans_type (m_trans)) * bc (m_obj));
2040 } else {
2041 return bb * (m_trans * bc (m_obj));
2042 }
2043 } else {
2044 return bb * (m_trans * bc (m_obj));
2045 }
2046 }
2047
2048 /**
2049 * @brief The number of single instances in the array

Callers 2

quad_boxMethod · 0.45
quad_boxMethod · 0.45

Calls 3

bboxMethod · 0.45
is_complexMethod · 0.45
complex_transMethod · 0.45

Tested by

no test coverage detected