def loadDevices(self): svgDrawer = SvgDrawer() svgDrawer.loadSvg(self.getBaseSvgPath()) self.processSectionsData(svgDrawer) svgDrawer.drawAll() destinationFile = self.thirdStep.getFilePath() svgDrawer.saveSvg(destinationFile)
def setSectionsData(self, linacData, ringData): self.svgDrawer = SvgDrawer() sectionsProcessor = SectionsDataProcesssor(self.svgDrawer) sectionsProcessor.processLinacSections(linacData) sectionsProcessor.processRingSections(ringData) self.sections = self.svgDrawer.getAllSections()