diff options
Diffstat (limited to 'gerbonara/cad/kicad/footprints.py')
-rw-r--r-- | gerbonara/cad/kicad/footprints.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gerbonara/cad/kicad/footprints.py b/gerbonara/cad/kicad/footprints.py index 5c27855..90050ef 100644 --- a/gerbonara/cad/kicad/footprints.py +++ b/gerbonara/cad/kicad/footprints.py @@ -95,6 +95,10 @@ class Line: locked: Flag() = False tstamp: Timestamp = None + def to_graphical_primitive(self, flip=False): + # FIXME flip + return gr.Line(self.start, self.end, self.layer, self.width, self.stroke, self.tstamp) + def render(self, variables=None, cache=None): dasher = Dasher(self) dasher.move(self.start.x, self.start.y) @@ -183,6 +187,9 @@ class Arc: locked: Flag() = False tstamp: Timestamp = None + def to_graphical_primitive(self, flip=False): + # FIXME flip + return gr.Arc(self.start, self.mid, self.end, self.layer, self.width, self.stroke, self.tstamp) def render(self, variables=None, cache=None): mx, my = self.mid.x, self.mid.y |