KiCad PCB EDA Suite
ERULES Struct Reference

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

Public Member Functions

 ERULES ()
 
void parse (CPTREE &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 1033 of file eagle_plugin.cpp.

Constructor & Destructor Documentation

ERULES::ERULES ( )
inline

Definition at line 1052 of file eagle_plugin.cpp.

1052  :
1053  psElongationLong ( 100 ),
1054  psElongationOffset ( 0 ),
1055  rvPadTop ( 0.25 ),
1056  // rvPadBottom ( 0.25 ),
1057  rlMinPadTop ( Mils2iu( 10 ) ),
1058  rlMaxPadTop ( Mils2iu( 20 ) ),
1059 
1060  rvViaOuter ( 0.25 ),
1061  rlMinViaOuter ( Mils2iu( 10 ) ),
1062  rlMaxViaOuter ( Mils2iu( 20 ) ),
1063  mdWireWire ( 0 )
1064  {}
double rlMaxViaOuter
maximum copper annulus on via
double rlMaxPadTop
maximum copper annulus on through hole pads
double rvViaOuter
copper annulus is this percent of via hole
int psElongationOffset
the offset of the hole within the "long" pad.
double mdWireWire
wire to wire spacing I presume.
int psElongationLong
percent over 100%.
double rvPadTop
top pad size as percent of drill size
double rlMinPadTop
minimum copper annulus on through hole pads
double rlMinViaOuter
minimum copper annulus on via

Member Function Documentation

void ERULES::parse ( CPTREE aRules)

Definition at line 1069 of file eagle_plugin.cpp.

References name, and parseEagle().

Referenced by EAGLE_PLUGIN::loadDesignRules().

1070 {
1071  for( CITER it = aRules.begin(); it != aRules.end(); ++it )
1072  {
1073  if( it->first != "param" )
1074  continue;
1075 
1076  CPTREE& attribs = it->second.get_child( "<xmlattr>" );
1077 
1078  const string& name = attribs.get<string>( "name" );
1079 
1080  if( name == "psElongationLong" )
1081  psElongationLong = attribs.get<int>( "value" );
1082  else if( name == "psElongationOffset" )
1083  psElongationOffset = attribs.get<int>( "value" );
1084  else if( name == "rvPadTop" )
1085  rvPadTop = attribs.get<double>( "value" );
1086  else if( name == "rlMinPadTop" )
1087  rlMinPadTop = parseEagle( attribs.get<string>( "value" ) );
1088  else if( name == "rlMaxPadTop" )
1089  rlMaxPadTop = parseEagle( attribs.get<string>( "value" ) );
1090  else if( name == "rvViaOuter" )
1091  rvViaOuter = attribs.get<double>( "value" );
1092  else if( name == "rlMinViaOuter" )
1093  rlMinViaOuter = parseEagle( attribs.get<string>( "value" ) );
1094  else if( name == "rlMaxViaOuter" )
1095  rlMaxViaOuter = parseEagle( attribs.get<string>( "value" ) );
1096  else if( name == "mdWireWire" )
1097  mdWireWire = parseEagle( attribs.get<string>( "value" ) );
1098  }
1099 }
double rlMaxViaOuter
maximum copper annulus on via
static double parseEagle(const string &aDistance)
Parse an eagle distance which is either mm, or mils if there is "mil" suffix.
const PTREE CPTREE
Definition: eagle_plugin.h:63
double rlMaxPadTop
maximum copper annulus on through hole pads
double rvViaOuter
copper annulus is this percent of via hole
int psElongationOffset
the offset of the hole within the "long" pad.
double mdWireWire
wire to wire spacing I presume.
int psElongationLong
percent over 100%.
PTREE::const_iterator CITER
const char * name
double rvPadTop
top pad size as percent of drill size
double rlMinPadTop
minimum copper annulus on through hole pads
double rlMinViaOuter
minimum copper annulus on via

Member Data Documentation

double ERULES::mdWireWire

wire to wire spacing I presume.

Definition at line 1049 of file eagle_plugin.cpp.

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

Referenced by EAGLE_PLUGIN::packagePad().

int ERULES::psElongationOffset

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

Definition at line 1038 of file eagle_plugin.cpp.

double ERULES::rlMaxPadTop

maximum copper annulus on through hole pads

Definition at line 1044 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rlMaxViaOuter

maximum copper annulus on via

Definition at line 1048 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::loadSignals().

double ERULES::rlMinPadTop

minimum copper annulus on through hole pads

Definition at line 1043 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rlMinViaOuter

minimum copper annulus on via

Definition at line 1047 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::loadSignals().

double ERULES::rvPadTop

top pad size as percent of drill size

Definition at line 1040 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::packagePad().

double ERULES::rvViaOuter

copper annulus is this percent of via hole

Definition at line 1046 of file eagle_plugin.cpp.

Referenced by EAGLE_PLUGIN::loadSignals().


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