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 706 of file eagle_parser.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
UNDEF 
SQUARE 
ROUND 
OCTAGON 
LONG 
OFFSET 

Definition at line 712 of file eagle_parser.h.

712  {
713  UNDEF = -1,
714  SQUARE,
715  ROUND,
716  OCTAGON,
717  LONG,
718  OFFSET,
719  };

Constructor & Destructor Documentation

◆ EPAD()

EPAD::EPAD ( wxXmlNode *  aPad)

Definition at line 667 of file eagle_parser.cpp.

668  : EPAD_COMMON( aPad )
669 {
670  /*
671  <!ELEMENT pad EMPTY>
672  <!ATTLIST pad
673  name %String; #REQUIRED
674  x %Coord; #REQUIRED
675  y %Coord; #REQUIRED
676  drill %Dimension; #REQUIRED
677  diameter %Dimension; "0"
678  shape %PadShape; "round"
679  rot %Rotation; "R0"
680  stop %Bool; "yes"
681  thermals %Bool; "yes"
682  first %Bool; "no"
683  >
684  */
685 
686  // #REQUIRED says DTD, throw exception if not found
687  drill = parseRequiredAttribute<ECOORD>( aPad, "drill" );
688 
689  // Optional attributes
690  diameter = parseOptionalAttribute<ECOORD>( aPad, "diameter" );
691 
692  opt_wxString s = parseOptionalAttribute<wxString>( aPad, "shape" );
693 
694  // (square | round | octagon | long | offset)
695  if( s == "square" )
697  else if( s == "round" )
698  shape = EPAD::ROUND;
699  else if( s == "octagon" )
701  else if( s == "long" )
702  shape = EPAD::LONG;
703  else if( s == "offset" )
705 
706  first = parseOptionalAttribute<bool>( aPad, "first" );
707 }
EPAD_COMMON(wxXmlNode *aPad)
opt_ecoord diameter
Definition: eagle_parser.h:709
opt_bool first
Definition: eagle_parser.h:721
opt_int shape
Definition: eagle_parser.h:720
ECOORD drill
Definition: eagle_parser.h:708

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

Member Data Documentation

◆ diameter

opt_ecoord EPAD::diameter

Definition at line 709 of file eagle_parser.h.

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

◆ drill

ECOORD EPAD::drill

Definition at line 708 of file eagle_parser.h.

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

◆ first

opt_bool EPAD::first

Definition at line 721 of file eagle_parser.h.

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

◆ name

wxString EPAD_COMMON::name
inherited

Definition at line 695 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 720 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 699 of file eagle_parser.h.

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

◆ x

ECOORD EPAD_COMMON::x
inherited

Definition at line 696 of file eagle_parser.h.

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

◆ y

ECOORD EPAD_COMMON::y
inherited

Definition at line 696 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: