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

Constructor & Destructor Documentation

ERULES::ERULES ( )
inline

Definition at line 61 of file eagle_plugin.h.

61  :
62  psElongationLong ( 100 ),
63  psElongationOffset ( 0 ),
64  rvPadTop ( 0.25 ),
65  // rvPadBottom ( 0.25 ),
66  rlMinPadTop ( Mils2iu( 10 ) ),
67  rlMaxPadTop ( Mils2iu( 20 ) ),
68 
69  rvViaOuter ( 0.25 ),
70  rlMinViaOuter ( Mils2iu( 10 ) ),
71  rlMaxViaOuter ( Mils2iu( 20 ) ),
72  mdWireWire ( 0 )
73  {}
double rlMaxViaOuter
maximum copper annulus on via
Definition: eagle_plugin.h:57
double rlMaxPadTop
maximum copper annulus on through hole pads
Definition: eagle_plugin.h:53
double rvViaOuter
copper annulus is this percent of via hole
Definition: eagle_plugin.h:55
int psElongationOffset
the offset of the hole within the "long" pad.
Definition: eagle_plugin.h:47
double mdWireWire
wire to wire spacing I presume.
Definition: eagle_plugin.h:58
int psElongationLong
percent over 100%.
Definition: eagle_plugin.h:44
double rvPadTop
top pad size as percent of drill size
Definition: eagle_plugin.h:49
double rlMinPadTop
minimum copper annulus on through hole pads
Definition: eagle_plugin.h:52
double rlMinViaOuter
minimum copper annulus on via
Definition: eagle_plugin.h:56

Member Function Documentation

void ERULES::parse ( wxXmlNode *  aRules)

Definition at line 106 of file eagle_plugin.cpp.

References name, and parseEagle().

Referenced by EAGLE_PLUGIN::loadDesignRules().

107 {
108  wxXmlNode* child = aRules->GetChildren();
109 
110  while( child )
111  {
112  if( child->GetName() == "param" )
113  {
114  const wxString& name = child->GetAttribute( "name" );
115  const wxString& value = child->GetAttribute( "value" );
116 
117  if( name == "psElongationLong" )
118  psElongationLong = wxAtoi( value );
119  else if( name == "psElongationOffset" )
120  psElongationOffset = wxAtoi( value );
121  else if( name == "rvPadTop" )
122  value.ToDouble( &rvPadTop );
123  else if( name == "rlMinPadTop" )
124  rlMinPadTop = parseEagle( value );
125  else if( name == "rlMaxPadTop" )
126  rlMaxPadTop = parseEagle( value );
127  else if( name == "rvViaOuter" )
128  value.ToDouble( &rvViaOuter );
129  else if( name == "rlMinViaOuter" )
130  rlMinViaOuter = parseEagle( value );
131  else if( name == "rlMaxViaOuter" )
132  rlMaxViaOuter = parseEagle( value );
133  else if( name == "mdWireWire" )
134  mdWireWire = parseEagle( value );
135  }
136 
137  child = child->GetNext();
138  }
139 }
double rlMaxViaOuter
maximum copper annulus on via
Definition: eagle_plugin.h:57
double rlMaxPadTop
maximum copper annulus on through hole pads
Definition: eagle_plugin.h:53
static int parseEagle(const wxString &aDistance)
Parse an eagle distance which is either mm, or mils if there is "mil" suffix.
double rvViaOuter
copper annulus is this percent of via hole
Definition: eagle_plugin.h:55
int psElongationOffset
the offset of the hole within the "long" pad.
Definition: eagle_plugin.h:47
double mdWireWire
wire to wire spacing I presume.
Definition: eagle_plugin.h:58
int psElongationLong
percent over 100%.
Definition: eagle_plugin.h:44
const char * name
double rvPadTop
top pad size as percent of drill size
Definition: eagle_plugin.h:49
double rlMinPadTop
minimum copper annulus on through hole pads
Definition: eagle_plugin.h:52
double rlMinViaOuter
minimum copper annulus on via
Definition: eagle_plugin.h:56

Member Data Documentation

double ERULES::mdWireWire

wire to wire spacing I presume.

Definition at line 58 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::Load().

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

double ERULES::rlMaxPadTop

maximum copper annulus on through hole pads

Definition at line 53 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rlMaxViaOuter

maximum copper annulus on via

Definition at line 57 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::loadSignals().

double ERULES::rlMinPadTop

minimum copper annulus on through hole pads

Definition at line 52 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rlMinViaOuter

minimum copper annulus on via

Definition at line 56 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::loadSignals().

double ERULES::rvPadTop

top pad size as percent of drill size

Definition at line 49 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rvViaOuter

copper annulus is this percent of via hole

Definition at line 55 of file eagle_plugin.h.

Referenced by EAGLE_PLUGIN::loadSignals().


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