KiCad PCB EDA Suite
ERULES Struct Reference

subset of eagle.drawing.board.designrules in the XML document More...

#include <eagle_plugin.h>

Public Member Functions

 ERULES ()
 
void parse (wxXmlNode *aRules)
 

Public Attributes

int psElongationLong
 percent over 100%. More...
 
int psElongationOffset
 the offset of the hole within the "long" pad. More...
 
double mvStopFrame
 solder mask, expressed as percentage of the smaller pad/via dimension More...
 
double mvCreamFrame
 solderpaste mask, expressed as percentage of the smaller pad/via dimension More...
 
int mlMinStopFrame
 solder mask, minimum size (Eagle mils, here nanometers) More...
 
int mlMaxStopFrame
 solder mask, maximum size (Eagle mils, here nanometers) More...
 
int mlMinCreamFrame
 solder paste mask, minimum size (Eagle mils, here nanometers) More...
 
int mlMaxCreamFrame
 solder paste mask, maximum size (Eagle mils, here nanometers) More...
 
double srRoundness
 corner rounding ratio for SMD pads (percentage) More...
 
int srMinRoundness
 corner rounding radius, minimum size (Eagle mils, here nanometers) More...
 
int srMaxRoundness
 corner rounding radius, maximum size (Eagle mils, here nanometers) More...
 
double rvPadTop
 top pad size as percent of drill size More...
 
double rlMinPadTop
 minimum copper annulus on through hole pads More...
 
double rlMaxPadTop
 maximum copper annulus on through hole pads More...
 
double rvViaOuter
 copper annulus is this percent of via hole More...
 
double rlMinViaOuter
 minimum copper annulus on via More...
 
double rlMaxViaOuter
 maximum copper annulus on via More...
 
double mdWireWire
 wire to wire spacing I presume. More...
 

Detailed Description

subset of eagle.drawing.board.designrules in the XML document

Definition at line 45 of file eagle_plugin.h.

Constructor & Destructor Documentation

ERULES::ERULES ( )
inline

Definition at line 75 of file eagle_plugin.h.

References parse().

75  :
76  psElongationLong ( 100 ),
77  psElongationOffset ( 0 ),
78 
79  mvStopFrame ( 1.0 ),
80  mvCreamFrame ( 0.0 ),
81  mlMinStopFrame ( Mils2iu( 4.0 ) ),
82  mlMaxStopFrame ( Mils2iu( 4.0 ) ),
83  mlMinCreamFrame ( Mils2iu( 0.0 ) ),
84  mlMaxCreamFrame ( Mils2iu( 0.0 ) ),
85 
86  srRoundness ( 0.0 ),
87  srMinRoundness ( Mils2iu( 0.0 ) ),
88  srMaxRoundness ( Mils2iu( 0.0 ) ),
89 
90  rvPadTop ( 0.25 ),
91  // rvPadBottom ( 0.25 ),
92  rlMinPadTop ( Mils2iu( 10 ) ),
93  rlMaxPadTop ( Mils2iu( 20 ) ),
94 
95  rvViaOuter ( 0.25 ),
96  rlMinViaOuter ( Mils2iu( 10 ) ),
97  rlMaxViaOuter ( Mils2iu( 20 ) ),
98  mdWireWire ( 0 )
99  {}
double rlMaxViaOuter
maximum copper annulus on via
Definition: eagle_plugin.h:71
double rlMaxPadTop
maximum copper annulus on through hole pads
Definition: eagle_plugin.h:67
int mlMinStopFrame
solder mask, minimum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:54
int srMinRoundness
corner rounding radius, minimum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:60
double rvViaOuter
copper annulus is this percent of via hole
Definition: eagle_plugin.h:69
int psElongationOffset
the offset of the hole within the "long" pad.
Definition: eagle_plugin.h:50
double mdWireWire
wire to wire spacing I presume.
Definition: eagle_plugin.h:72
double srRoundness
corner rounding ratio for SMD pads (percentage)
Definition: eagle_plugin.h:59
int psElongationLong
percent over 100%.
Definition: eagle_plugin.h:47
int mlMinCreamFrame
solder paste mask, minimum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:56
double mvStopFrame
solder mask, expressed as percentage of the smaller pad/via dimension
Definition: eagle_plugin.h:52
double rvPadTop
top pad size as percent of drill size
Definition: eagle_plugin.h:63
double rlMinPadTop
minimum copper annulus on through hole pads
Definition: eagle_plugin.h:66
double rlMinViaOuter
minimum copper annulus on via
Definition: eagle_plugin.h:70
int mlMaxCreamFrame
solder paste mask, maximum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:57
int srMaxRoundness
corner rounding radius, maximum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:61
int mlMaxStopFrame
solder mask, maximum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:55
double mvCreamFrame
solderpaste mask, expressed as percentage of the smaller pad/via dimension
Definition: eagle_plugin.h:53

Member Function Documentation

void ERULES::parse ( wxXmlNode *  aRules)

Definition at line 117 of file eagle_plugin.cpp.

References name, and parseEagle().

Referenced by ERULES(), and EAGLE_PLUGIN::loadDesignRules().

118 {
119  wxXmlNode* child = aRules->GetChildren();
120 
121  while( child )
122  {
123  if( child->GetName() == "param" )
124  {
125  const wxString& name = child->GetAttribute( "name" );
126  const wxString& value = child->GetAttribute( "value" );
127 
128  if( name == "psElongationLong" )
129  psElongationLong = wxAtoi( value );
130  else if( name == "psElongationOffset" )
131  psElongationOffset = wxAtoi( value );
132 
133  else if( name == "mvStopFrame" )
134  value.ToDouble( &mvStopFrame );
135  else if( name == "mvCreamFrame" )
136  value.ToDouble( &mvCreamFrame );
137  else if( name == "mlMinStopFrame" )
138  mlMinStopFrame = parseEagle( value );
139  else if( name == "mlMaxStopFrame" )
140  mlMaxStopFrame = parseEagle( value );
141  else if( name == "mlMinCreamFrame" )
142  mlMinCreamFrame = parseEagle( value );
143  else if( name == "mlMaxCreamFrame" )
144  mlMaxCreamFrame = parseEagle( value );
145 
146  else if( name == "srRoundness" )
147  value.ToDouble( &srRoundness );
148  else if( name == "srMinRoundness" )
149  srMinRoundness = parseEagle( value );
150  else if( name == "srMaxRoundness" )
151  srMaxRoundness = parseEagle( value );
152 
153  else if( name == "rvPadTop" )
154  value.ToDouble( &rvPadTop );
155  else if( name == "rlMinPadTop" )
156  rlMinPadTop = parseEagle( value );
157  else if( name == "rlMaxPadTop" )
158  rlMaxPadTop = parseEagle( value );
159 
160  else if( name == "rvViaOuter" )
161  value.ToDouble( &rvViaOuter );
162  else if( name == "rlMinViaOuter" )
163  rlMinViaOuter = parseEagle( value );
164  else if( name == "rlMaxViaOuter" )
165  rlMaxViaOuter = parseEagle( value );
166  else if( name == "mdWireWire" )
167  mdWireWire = parseEagle( value );
168  }
169 
170  child = child->GetNext();
171  }
172 }
double rlMaxViaOuter
maximum copper annulus on via
Definition: eagle_plugin.h:71
double rlMaxPadTop
maximum copper annulus on through hole pads
Definition: eagle_plugin.h:67
int mlMinStopFrame
solder mask, minimum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:54
static int parseEagle(const wxString &aDistance)
Parse an eagle distance which is either mm, or mils if there is "mil" suffix.
int srMinRoundness
corner rounding radius, minimum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:60
double rvViaOuter
copper annulus is this percent of via hole
Definition: eagle_plugin.h:69
int psElongationOffset
the offset of the hole within the "long" pad.
Definition: eagle_plugin.h:50
double mdWireWire
wire to wire spacing I presume.
Definition: eagle_plugin.h:72
double srRoundness
corner rounding ratio for SMD pads (percentage)
Definition: eagle_plugin.h:59
int psElongationLong
percent over 100%.
Definition: eagle_plugin.h:47
int mlMinCreamFrame
solder paste mask, minimum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:56
const char * name
Definition: DXF_plotter.cpp:61
double mvStopFrame
solder mask, expressed as percentage of the smaller pad/via dimension
Definition: eagle_plugin.h:52
double rvPadTop
top pad size as percent of drill size
Definition: eagle_plugin.h:63
double rlMinPadTop
minimum copper annulus on through hole pads
Definition: eagle_plugin.h:66
double rlMinViaOuter
minimum copper annulus on via
Definition: eagle_plugin.h:70
int mlMaxCreamFrame
solder paste mask, maximum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:57
int srMaxRoundness
corner rounding radius, maximum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:61
int mlMaxStopFrame
solder mask, maximum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:55
double mvCreamFrame
solderpaste mask, expressed as percentage of the smaller pad/via dimension
Definition: eagle_plugin.h:53

Member Data Documentation

double ERULES::mdWireWire

wire to wire spacing I presume.

Definition at line 72 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::Load().

int ERULES::mlMaxCreamFrame

solder paste mask, maximum size (Eagle mils, here nanometers)

Definition at line 57 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packageSMD().

int ERULES::mlMaxStopFrame

solder mask, maximum size (Eagle mils, here nanometers)

Definition at line 55 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::transferPad().

int ERULES::mlMinCreamFrame

solder paste mask, minimum size (Eagle mils, here nanometers)

Definition at line 56 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packageSMD().

int ERULES::mlMinStopFrame

solder mask, minimum size (Eagle mils, here nanometers)

Definition at line 54 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::transferPad().

double ERULES::mvCreamFrame

solderpaste mask, expressed as percentage of the smaller pad/via dimension

Definition at line 53 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packageSMD().

double ERULES::mvStopFrame

solder mask, expressed as percentage of the smaller pad/via dimension

Definition at line 52 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::transferPad().

int ERULES::psElongationLong

percent over 100%.

0-> not elongated, 100->twice as wide as is tall Goes into making a scaling factor for "long" pads.

Definition at line 47 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packagePad().

int ERULES::psElongationOffset

the offset of the hole within the "long" pad.

Definition at line 50 of file eagle_plugin.h.

double ERULES::rlMaxPadTop

maximum copper annulus on through hole pads

Definition at line 67 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rlMaxViaOuter

maximum copper annulus on via

Definition at line 71 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::loadSignals().

double ERULES::rlMinPadTop

minimum copper annulus on through hole pads

Definition at line 66 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rlMinViaOuter

minimum copper annulus on via

Definition at line 70 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::loadSignals().

double ERULES::rvPadTop

top pad size as percent of drill size

Definition at line 63 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rvViaOuter

copper annulus is this percent of via hole

Definition at line 69 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::loadSignals().

int ERULES::srMaxRoundness

corner rounding radius, maximum size (Eagle mils, here nanometers)

Definition at line 61 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packageSMD().

int ERULES::srMinRoundness

corner rounding radius, minimum size (Eagle mils, here nanometers)

Definition at line 60 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packageSMD().

double ERULES::srRoundness

corner rounding ratio for SMD pads (percentage)

Definition at line 59 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packageSMD().


The documentation for this struct was generated from the following files: