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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
UNDEF 
SQUARE 
ROUND 
OCTAGON 
LONG 
OFFSET 

Definition at line 716 of file eagle_parser.h.

716 {
717 UNDEF = -1,
718 SQUARE,
719 ROUND,
720 OCTAGON,
721 LONG,
722 OFFSET,
723 };
@ OCTAGON
Definition: eagle_parser.h:720
@ SQUARE
Definition: eagle_parser.h:718
@ OFFSET
Definition: eagle_parser.h:722

Constructor & Destructor Documentation

◆ EPAD()

EPAD::EPAD ( wxXmlNode *  aPad)

Definition at line 761 of file eagle_parser.cpp.

762 : EPAD_COMMON( aPad )
763{
764 /*
765 <!ELEMENT pad EMPTY>
766 <!ATTLIST pad
767 name %String; #REQUIRED
768 x %Coord; #REQUIRED
769 y %Coord; #REQUIRED
770 drill %Dimension; #REQUIRED
771 diameter %Dimension; "0"
772 shape %PadShape; "round"
773 rot %Rotation; "R0"
774 stop %Bool; "yes"
775 thermals %Bool; "yes"
776 first %Bool; "no"
777 >
778 */
779
780 // #REQUIRED says DTD, throw exception if not found
781 drill = parseRequiredAttribute<ECOORD>( aPad, "drill" );
782
783 // Optional attributes
784 diameter = parseOptionalAttribute<ECOORD>( aPad, "diameter" );
785
786 opt_wxString s = parseOptionalAttribute<wxString>( aPad, "shape" );
787
788 // (square | round | octagon | long | offset)
789 if( s == "square" )
791 else if( s == "round" )
793 else if( s == "octagon" )
795 else if( s == "long" )
797 else if( s == "offset" )
799
800 first = parseOptionalAttribute<bool>( aPad, "first" );
801}
EPAD_COMMON(wxXmlNode *aPad)
ECOORD drill
Definition: eagle_parser.h:712
opt_ecoord diameter
Definition: eagle_parser.h:713
opt_bool first
Definition: eagle_parser.h:725
opt_int shape
Definition: eagle_parser.h:724

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

Member Data Documentation

◆ diameter

opt_ecoord EPAD::diameter

Definition at line 713 of file eagle_parser.h.

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

◆ drill

ECOORD EPAD::drill

Definition at line 712 of file eagle_parser.h.

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

◆ first

opt_bool EPAD::first

Definition at line 725 of file eagle_parser.h.

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

◆ name

wxString EPAD_COMMON::name
inherited

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

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

◆ x

ECOORD EPAD_COMMON::x
inherited

Definition at line 700 of file eagle_parser.h.

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

◆ y

ECOORD EPAD_COMMON::y
inherited

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