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 670 of file eagle_parser.cpp.

671  : EPAD_COMMON( aPad )
672 {
673  /*
674  <!ELEMENT pad EMPTY>
675  <!ATTLIST pad
676  name %String; #REQUIRED
677  x %Coord; #REQUIRED
678  y %Coord; #REQUIRED
679  drill %Dimension; #REQUIRED
680  diameter %Dimension; "0"
681  shape %PadShape; "round"
682  rot %Rotation; "R0"
683  stop %Bool; "yes"
684  thermals %Bool; "yes"
685  first %Bool; "no"
686  >
687  */
688 
689  // #REQUIRED says DTD, throw exception if not found
690  drill = parseRequiredAttribute<ECOORD>( aPad, wxT( "drill" ) );
691 
692  // Optional attributes
693  diameter = parseOptionalAttribute<ECOORD>( aPad, wxT( "diameter" ) );
694 
695  opt_wxString s = parseOptionalAttribute<wxString>( aPad, wxT( "shape" ) );
696 
697  // (square | round | octagon | long | offset)
698  if( s == wxT( "square" ) )
700  else if( s == wxT( "round" ) )
701  shape = EPAD::ROUND;
702  else if( s == wxT( "octagon" ) )
704  else if( s == wxT( "long" ) )
705  shape = EPAD::LONG;
706  else if( s == wxT( "offset" ) )
708 
709  first = parseOptionalAttribute<bool>( aPad, wxT( "first" ) );
710 }
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: