示例#1
0
 def build(self, structure_set):
     if self.built:
         return self.roi
     roi = modules.add_roi_to_structure_set(structure_set, self.name, self.structure_set_builder.current_study)
     modules.add_roi_to_roi_contour(structure_set, roi, self.contours, self.structure_set_builder.images.build())
     modules.add_roi_to_rt_roi_observation(structure_set, roi, self.name, self.interpreted_type)
     self.built = True
     self.roi = roi
     return self.roi
示例#2
0
 def build(self, structure_set):
     if self.built:
         return self.roi
     roi = modules.add_roi_to_structure_set(structure_set, self.name, self.structure_set_builder.current_study)
     roi_contour = modules.add_roi_to_roi_contour(structure_set, roi, self.contours, self.structure_set_builder.images.build())
     roi_observation = modules.add_roi_to_rt_roi_observation(structure_set, roi, self.name, self.interpreted_type)
     self.built = True
     self.roi = roi
     self.roi_contour = roi_contour
     self.roi_observation = roi_observation
     return self.roi