Esempio n. 1
0
 def getDict(self):
     return {
         'file_name': self.file_name,
         'draw_scale': self.draw_scale,
         'draw_offset': qpoint2dict(self.draw_offset),
         'figures': [figure.getDict() for figure in self.figures]
     }
Esempio n. 2
0
 def getDict(self):
     return {'polygon': {'editor': [qpoint2dict(point) for point in self.polygon],
                         'convex': [[qpoint2dict(point) for point in convex] for convex in self.convex_polygons]}}