| |
- Feature
-
- Arc
- Barcode
- Line
- Pad
- Text
class Arc(Feature) |
|
This class defines an object which describes an Arc. It is subclassed
from Feature. It gets passed the line from the INFO command (-d FEATURES)
Variables in Arc (access by class.<var>)
xs, ys, xe, ye - start and end points
xc, yc - center of arc
symbol - Symbol used in drawing line
polarity - Polarity of line
dcode - dcode of symbol used
direction - clockwise/counterclockwise |
|
Methods defined here:
- __init__(self, line)
- parse(self)
Methods inherited from Feature:
- __repr__(self)
- getAttrs(self)
- Gets atributes of self by parsing the line passed
leaves self.line intact except that everything after ';' is gone.
|
class Barcode(Feature) |
|
This class defines an object which describes a Barcode. It is subclassed
from Feature. It gets passed the line from the INFO command (-d FEATURES)
Variables in Barcode Feature (access by class.<var>)
x, y - location
barcode - barcode type
font - font name for under code
polarity - Polarity of line
rotation - rotation in degrees
constant - Don't know
width - mils of code in x direction
heigt - mils of code in the y direction
full_ascii - don't know
cksum - checksum?
invert_bg - invert the barcode yes/no
add_text - add text to bottom of code yes/no
text_loc - top/bot of the code
text - text encoded in the barcode |
|
Methods defined here:
- __init__(self, line)
- parse(self)
Methods inherited from Feature:
- __repr__(self)
- getAttrs(self)
- Gets atributes of self by parsing the line passed
leaves self.line intact except that everything after ';' is gone.
|
class Feature |
|
This class defines an object which describes an individual feature.
Gets passed in the line from the INFO command (-d FEATURES) |
|
Methods defined here:
- __init__(self, line)
- __repr__(self)
- getAttrs(self)
- Gets atributes of self by parsing the line passed
leaves self.line intact except that everything after ';' is gone.
|
class Line(Feature) |
|
This class defines an object which describes a Line. It is subclassed
from Feature. It gets passed the line from the INFO command (-d FEATURES)
Variables in Line (access by class.<var>)
xs, ys, xe, ye - start and end points
symbol - Symbol used in drawing line
polarity - Polarity of line
dcode - dcode of symbol used
len - length of the line |
|
Methods defined here:
- __init__(self, line)
- parse(self)
Methods inherited from Feature:
- __repr__(self)
- getAttrs(self)
- Gets atributes of self by parsing the line passed
leaves self.line intact except that everything after ';' is gone.
|
class Pad(Feature) |
|
This class defines an object which describes a Pad. It is subclassed
from Feature. It gets passed the line from the INFO command (-d FEATURES)
Variables in Pad (access by class.<var>)
x, y - location
symbol - Symbol used in drawing line
polarity - Polarity of line
dcode - dcode of symbol used
rotation - rotation in degrees of Pad
mirror - yes if mirrored |
|
Methods defined here:
- __init__(self, line)
- parse(self)
Methods inherited from Feature:
- __repr__(self)
- getAttrs(self)
- Gets atributes of self by parsing the line passed
leaves self.line intact except that everything after ';' is gone.
|
class Text(Feature) |
|
This class defines an object which describes a Text feature. It is subclassed
from Feature. It gets passed the line from the INFO command (-d FEATURES)
Variables in Text Feature (access by class.<var>)
x, y - location
font - font name
polarity - Polarity of line
rotation - rotation in degrees
mirror - yes/no is it mirrored
xsize - mils of letter in x direction
ysize - mils of a letter in the y direction
wfactor - scaling factor or width factor larger = thicker lines
text - the text in the object
version - not quite sure what the version means |
|
Methods defined here:
- __init__(self, line)
- parse(self)
Methods inherited from Feature:
- __repr__(self)
- getAttrs(self)
- Gets atributes of self by parsing the line passed
leaves self.line intact except that everything after ';' is gone.
| |