예제 #1
0
 def _load_holder_canvas(self, holes):
     if holes:
         canvas = IrradiationCanvas()
         load_holder_canvas(canvas, holes)
         self.canvas = canvas
예제 #2
0
 def _load_holder_canvas(self, holder):
     geom = holder.geometry
     if geom:
         canvas = IrradiationCanvas()
         load_holder_canvas(canvas, geom)
         self.canvas = canvas
예제 #3
0
 def _make_canvas(self, level):
     if level.holder:
         holes = irradiation_geometry_holes(level.holder)
         canvas = IrradiationCanvas()
         load_holder_canvas(canvas, holes)
         return canvas
예제 #4
0
 def _make_canvas(self, level):
     if level.holder:
         geom = level.holder.geometry
         canvas = IrradiationCanvas()
         load_holder_canvas(canvas, geom)
         return canvas