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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
UNDEF 
SQUARE 
ROUND 
OCTAGON 
LONG 
OFFSET 

Definition at line 705 of file eagle_parser.h.

705  {
706  UNDEF = -1,
707  SQUARE,
708  ROUND,
709  OCTAGON,
710  LONG,
711  OFFSET,
712  };

Constructor & Destructor Documentation

◆ EPAD()

EPAD::EPAD ( wxXmlNode *  aPad)

Definition at line 643 of file eagle_parser.cpp.

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

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

Member Data Documentation

◆ diameter

opt_ecoord EPAD::diameter

Definition at line 702 of file eagle_parser.h.

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

◆ drill

ECOORD EPAD::drill

Definition at line 701 of file eagle_parser.h.

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

◆ first

opt_bool EPAD::first

Definition at line 714 of file eagle_parser.h.

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

◆ name

wxString EPAD_COMMON::name
inherited

Definition at line 688 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 713 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 692 of file eagle_parser.h.

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

◆ x

ECOORD EPAD_COMMON::x
inherited

Definition at line 689 of file eagle_parser.h.

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

◆ y

ECOORD EPAD_COMMON::y
inherited

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