diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-09-28 21:17:13 -0400 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2014-09-28 21:17:13 -0400 |
commit | 3a5dbcf1e13704b7352d5fb3c4777d7df3fed081 (patch) | |
tree | f138c8e1503dfff6d1eae69f1ddb6b802420478f /gerber/render/apertures.py | |
parent | 695e3d9220be8773f6630bb5c512d122b8576742 (diff) | |
download | gerbonara-3a5dbcf1e13704b7352d5fb3c4777d7df3fed081.tar.gz gerbonara-3a5dbcf1e13704b7352d5fb3c4777d7df3fed081.tar.bz2 gerbonara-3a5dbcf1e13704b7352d5fb3c4777d7df3fed081.zip |
added ExcellonFile class
Diffstat (limited to 'gerber/render/apertures.py')
-rw-r--r-- | gerber/render/apertures.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gerber/render/apertures.py b/gerber/render/apertures.py index 55e6a30..f163b1f 100644 --- a/gerber/render/apertures.py +++ b/gerber/render/apertures.py @@ -29,7 +29,7 @@ class Aperture(object): """ def draw(self, ctx, x, y): raise NotImplementedError('The draw method must be implemented in an Aperture subclass.') - + def flash(self, ctx, x, y): raise NotImplementedError('The flash method must be implemented in an Aperture subclass.') @@ -40,19 +40,22 @@ class Circle(Aperture): def __init__(self, diameter=0.0): self.diameter = diameter + class Rect(Aperture): """ Rectangular Aperture base class """ def __init__(self, size=(0, 0)): self.size = size + class Obround(Aperture): """ Obround Aperture base class """ def __init__(self, size=(0, 0)): self.size = size - + + class Polygon(Aperture): """ Polygon Aperture base class """ - pass
\ No newline at end of file + pass |