def build(self, rtplan, planbuilder, finalize_mlc=True): if self.built: return self.rtbeam self.built = True self.rtbeam = modules.add_static_rt_beam( ds=rtplan, nleaves=planbuilder.num_leaves, mlcdir=planbuilder.mlc_direction, leafwidths=planbuilder.leaf_widths, gantry_angle=self.gantry_angle, collimator_angle=self.collimator_angle, patient_support_angle=self.patient_support_angle, table_top=self.table_top, table_top_eccentric=self.table_top_eccentric, isocenter=planbuilder.isocenter, nominal_beam_energy=self.nominal_beam_energy, current_study=self.current_study, sad=self.sad) for call in self.conform_calls: call(self.rtbeam) if self.jaws is None: modules.conform_jaws_to_mlc(self.rtbeam) if finalize_mlc: self.finalize_mlc() return self.rtbeam
def build(self, rtplan, planbuilder): if self.built: return self.rtbeam self.built = True self.rtbeam = modules.add_static_rt_beam(ds = rtplan, nleaves = planbuilder.num_leaves, leafwidths = planbuilder.leaf_widths, gantry_angle = self.gantry_angle, collimator_angle = self.collimator_angle, patient_support_angle = self.patient_support_angle, table_top = self.table_top, table_top_eccentric = self.table_top_eccentric, isocenter = planbuilder.isocenter, nominal_beam_energy = self.nominal_beam_energy, current_study = self.current_study) for call in self.conform_calls: call(self.rtbeam) if self.jaws == None: modules.conform_jaws_to_mlc(self.rtbeam) return self.rtbeam