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  {
  UNDEF = -1, 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

anonymous enum
Enumerator
UNDEF 
SQUARE 
ROUND 
OCTAGON 
LONG 
OFFSET 

Definition at line 699 of file eagle_parser.h.

699  {
700  UNDEF = -1,
701  SQUARE,
702  ROUND,
703  OCTAGON,
704  LONG,
705  OFFSET,
706  };

Constructor & Destructor Documentation

◆ EPAD()

EPAD::EPAD ( wxXmlNode *  aPad)

Definition at line 625 of file eagle_parser.cpp.

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

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

Member Data Documentation

◆ diameter

opt_ecoord EPAD::diameter

Definition at line 696 of file eagle_parser.h.

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

◆ drill

ECOORD EPAD::drill

Definition at line 695 of file eagle_parser.h.

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

◆ first

opt_bool EPAD::first

Definition at line 708 of file eagle_parser.h.

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

◆ name

wxString EPAD_COMMON::name
inherited

Definition at line 682 of file eagle_parser.h.

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

◆ rot

opt_erot EPAD_COMMON::rot
inherited

◆ shape

opt_int EPAD::shape

Definition at line 707 of file eagle_parser.h.

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

◆ stop

opt_bool EPAD_COMMON::stop
inherited

◆ thermals

opt_bool EPAD_COMMON::thermals
inherited

Definition at line 686 of file eagle_parser.h.

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

◆ x

ECOORD EPAD_COMMON::x
inherited

Definition at line 683 of file eagle_parser.h.

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

◆ y

ECOORD EPAD_COMMON::y
inherited

Definition at line 683 of file eagle_parser.h.

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


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