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 43 of file eagle_plugin.h.

Constructor & Destructor Documentation

ERULES::ERULES ( )
inline

Definition at line 73 of file eagle_plugin.h.

References parse().

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

Member Function Documentation

void ERULES::parse ( wxXmlNode *  aRules)

Definition at line 107 of file eagle_plugin.cpp.

References name, and parseEagle().

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

108 {
109  wxXmlNode* child = aRules->GetChildren();
110 
111  while( child )
112  {
113  if( child->GetName() == "param" )
114  {
115  const wxString& name = child->GetAttribute( "name" );
116  const wxString& value = child->GetAttribute( "value" );
117 
118  if( name == "psElongationLong" )
119  psElongationLong = wxAtoi( value );
120  else if( name == "psElongationOffset" )
121  psElongationOffset = wxAtoi( value );
122 
123  else if( name == "mvStopFrame" )
124  value.ToDouble( &mvStopFrame );
125  else if( name == "mvCreamFrame" )
126  value.ToDouble( &mvCreamFrame );
127  else if( name == "mlMinStopFrame" )
128  mlMinStopFrame = parseEagle( value );
129  else if( name == "mlMaxStopFrame" )
130  mlMaxStopFrame = parseEagle( value );
131  else if( name == "mlMinCreamFrame" )
132  mlMinCreamFrame = parseEagle( value );
133  else if( name == "mlMaxCreamFrame" )
134  mlMaxCreamFrame = parseEagle( value );
135 
136  else if( name == "srRoundness" )
137  value.ToDouble( &srRoundness );
138  else if( name == "srMinRoundness" )
139  srMinRoundness = parseEagle( value );
140  else if( name == "srMaxRoundness" )
141  srMaxRoundness = parseEagle( value );
142 
143  else if( name == "rvPadTop" )
144  value.ToDouble( &rvPadTop );
145  else if( name == "rlMinPadTop" )
146  rlMinPadTop = parseEagle( value );
147  else if( name == "rlMaxPadTop" )
148  rlMaxPadTop = parseEagle( value );
149 
150  else if( name == "rvViaOuter" )
151  value.ToDouble( &rvViaOuter );
152  else if( name == "rlMinViaOuter" )
153  rlMinViaOuter = parseEagle( value );
154  else if( name == "rlMaxViaOuter" )
155  rlMaxViaOuter = parseEagle( value );
156  else if( name == "mdWireWire" )
157  mdWireWire = parseEagle( value );
158  }
159 
160  child = child->GetNext();
161  }
162 }
double rlMaxViaOuter
maximum copper annulus on via
Definition: eagle_plugin.h:69
double rlMaxPadTop
maximum copper annulus on through hole pads
Definition: eagle_plugin.h:65
int mlMinStopFrame
solder mask, minimum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:52
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:58
double rvViaOuter
copper annulus is this percent of via hole
Definition: eagle_plugin.h:67
int psElongationOffset
the offset of the hole within the "long" pad.
Definition: eagle_plugin.h:48
double mdWireWire
wire to wire spacing I presume.
Definition: eagle_plugin.h:70
double srRoundness
corner rounding ratio for SMD pads (percentage)
Definition: eagle_plugin.h:57
int psElongationLong
percent over 100%.
Definition: eagle_plugin.h:45
int mlMinCreamFrame
solder paste mask, minimum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:54
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:50
double rvPadTop
top pad size as percent of drill size
Definition: eagle_plugin.h:61
double rlMinPadTop
minimum copper annulus on through hole pads
Definition: eagle_plugin.h:64
double rlMinViaOuter
minimum copper annulus on via
Definition: eagle_plugin.h:68
int mlMaxCreamFrame
solder paste mask, maximum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:55
int srMaxRoundness
corner rounding radius, maximum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:59
int mlMaxStopFrame
solder mask, maximum size (Eagle mils, here nanometers)
Definition: eagle_plugin.h:53
double mvCreamFrame
solderpaste mask, expressed as percentage of the smaller pad/via dimension
Definition: eagle_plugin.h:51

Member Data Documentation

double ERULES::mdWireWire

wire to wire spacing I presume.

Definition at line 70 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 55 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packageSMD().

int ERULES::mlMaxStopFrame

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

Definition at line 53 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 54 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packageSMD().

int ERULES::mlMinStopFrame

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

Definition at line 52 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 51 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 50 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 45 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 48 of file eagle_plugin.h.

double ERULES::rlMaxPadTop

maximum copper annulus on through hole pads

Definition at line 65 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rlMaxViaOuter

maximum copper annulus on via

Definition at line 69 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::loadSignals().

double ERULES::rlMinPadTop

minimum copper annulus on through hole pads

Definition at line 64 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rlMinViaOuter

minimum copper annulus on via

Definition at line 68 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::loadSignals().

double ERULES::rvPadTop

top pad size as percent of drill size

Definition at line 61 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rvViaOuter

copper annulus is this percent of via hole

Definition at line 67 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 59 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 58 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packageSMD().

double ERULES::srRoundness

corner rounding ratio for SMD pads (percentage)

Definition at line 57 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packageSMD().


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