KiCad PCB EDA Suite
EPAD Struct Reference

Eagle thru hole pad. More...

#include <eagle_parser.h>

Inheritance diagram for EPAD:
EPAD_COMMON

Public Types

enum  {
  SQUARE, ROUND, OCTAGON, LONG,
  OFFSET
}
 

Public Member Functions

 EPAD (wxXmlNode *aPad)
 

Public Attributes

ECOORD drill
 
opt_ecoord diameter
 
opt_int shape
 
opt_bool first
 
wxString name
 
ECOORD x
 
ECOORD y
 
opt_erot rot
 
opt_bool stop
 
opt_bool thermals
 

Detailed Description

Eagle thru hole pad.

Definition at line 693 of file eagle_parser.h.

Member Enumeration Documentation

anonymous enum
Enumerator
SQUARE 
ROUND 
OCTAGON 
LONG 
OFFSET 

Definition at line 699 of file eagle_parser.h.

699  {
700  SQUARE,
701  ROUND,
702  OCTAGON,
703  LONG,
704  OFFSET,
705  };

Constructor & Destructor Documentation

EPAD::EPAD ( wxXmlNode *  aPad)

Definition at line 636 of file eagle_parser.cpp.

References diameter, drill, first, LONG, OCTAGON, OFFSET, ROUND, shape, and SQUARE.

637  : EPAD_COMMON( aPad )
638 {
639  /*
640  <!ELEMENT pad EMPTY>
641  <!ATTLIST pad
642  name %String; #REQUIRED
643  x %Coord; #REQUIRED
644  y %Coord; #REQUIRED
645  drill %Dimension; #REQUIRED
646  diameter %Dimension; "0"
647  shape %PadShape; "round"
648  rot %Rotation; "R0"
649  stop %Bool; "yes"
650  thermals %Bool; "yes"
651  first %Bool; "no"
652  >
653  */
654 
655  // #REQUIRED says DTD, throw exception if not found
656  drill = parseRequiredAttribute<ECOORD>( aPad, "drill" );
657 
658  // Optional attributes
659  diameter = parseOptionalAttribute<ECOORD>( aPad, "diameter" );
660 
661  opt_wxString s = parseOptionalAttribute<wxString>( aPad, "shape" );
662 
663  // (square | round | octagon | long | offset)
664  if( s == "square" )
666  else if( s == "round" )
667  shape = EPAD::ROUND;
668  else if( s == "octagon" )
670  else if( s == "long" )
671  shape = EPAD::LONG;
672  else if( s == "offset" )
674 
675  first = parseOptionalAttribute<bool>( aPad, "first" );
676 }
EPAD_COMMON(wxXmlNode *aPad)
opt_ecoord diameter
Definition: eagle_parser.h:696
opt_bool first
Definition: eagle_parser.h:707
opt_int shape
Definition: eagle_parser.h:706
ECOORD drill
Definition: eagle_parser.h:695

Member Data Documentation

opt_ecoord EPAD::diameter

Definition at line 696 of file eagle_parser.h.

Referenced by EPAD(), and EAGLE_PLUGIN::packagePad().

ECOORD EPAD::drill

Definition at line 695 of file eagle_parser.h.

Referenced by EPAD(), and EAGLE_PLUGIN::packagePad().

opt_bool EPAD::first

Definition at line 707 of file eagle_parser.h.

Referenced by EPAD().

opt_int EPAD::shape

Definition at line 706 of file eagle_parser.h.

Referenced by EPAD(), and EAGLE_PLUGIN::packagePad().

opt_bool EPAD_COMMON::stop
inherited

Definition at line 685 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::transferPad().

opt_bool EPAD_COMMON::thermals
inherited

Definition at line 686 of file eagle_parser.h.

Referenced by EPOLYGON::EPOLYGON(), and EAGLE_PLUGIN::transferPad().


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