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 98 of file eagle_plugin.cpp.

References name, and parseEagle().

Referenced by EAGLE_PLUGIN::loadDesignRules().

99 {
100  wxXmlNode* child = aRules->GetChildren();
101 
102  while( child )
103  {
104  if( child->GetName() == "param" )
105  {
106  const wxString& name = child->GetAttribute( "name" );
107  const wxString& value = child->GetAttribute( "value" );
108 
109  if( name == "psElongationLong" )
110  psElongationLong = wxAtoi( value );
111  else if( name == "psElongationOffset" )
112  psElongationOffset = wxAtoi( value );
113  else if( name == "rvPadTop" )
114  value.ToDouble( &rvPadTop );
115  else if( name == "rlMinPadTop" )
116  rlMinPadTop = parseEagle( value );
117  else if( name == "rlMaxPadTop" )
118  rlMaxPadTop = parseEagle( value );
119  else if( name == "rvViaOuter" )
120  value.ToDouble( &rvViaOuter );
121  else if( name == "rlMinViaOuter" )
122  rlMinViaOuter = parseEagle( value );
123  else if( name == "rlMaxViaOuter" )
124  rlMaxViaOuter = parseEagle( value );
125  else if( name == "mdWireWire" )
126  mdWireWire = parseEagle( value );
127  }
128 
129  child = child->GetNext();
130  }
131 }
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
static double parseEagle(const wxString &aDistance)
Parse an eagle distance which is either mm, or mils if there is "mil" suffix.
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: