def processSectionsData(self, svgDrawer): dataProcessor = SectionsDataProcesssor(svgDrawer) linacSectionsData = self.secondStep.getLinacData() ringSectionsData = self.secondStep.getRingData() dataProcessor.processLinacSections(linacSectionsData) dataProcessor.processRingSections(ringSectionsData) dataProcessor.drawLastSectionIfNecessary()
def setSectionsData(self, linacData, ringData): self.svgDrawer = SvgDrawer() sectionsProcessor = SectionsDataProcesssor(self.svgDrawer) sectionsProcessor.processLinacSections(linacData) sectionsProcessor.processRingSections(ringData) self.sections = self.svgDrawer.getAllSections()