KiCad PCB EDA Suite
EPOLYGON Struct Reference

Eagle polygon, without vertices which are parsed as needed. More...

#include <eagle_parser.h>

Public Types

enum  { SOLID, HATCH, CUTOUT }
 

Public Member Functions

 EPOLYGON (wxXmlNode *aPolygon)
 

Public Attributes

ECOORD width
 
int layer
 
opt_ecoord spacing
 
int pour
 
opt_ecoord isolate
 
opt_bool orphans
 
opt_bool thermals
 
opt_int rank
 

Static Public Attributes

static const int max_priority = 6
 

Detailed Description

Eagle polygon, without vertices which are parsed as needed.

Definition at line 756 of file eagle_parser.h.

Member Enumeration Documentation

anonymous enum
Enumerator
SOLID 
HATCH 
CUTOUT 

Definition at line 769 of file eagle_parser.h.

769  { // for pour
770  SOLID,
771  HATCH,
772  CUTOUT,
773  };

Constructor & Destructor Documentation

EPOLYGON::EPOLYGON ( wxXmlNode *  aPolygon)

Definition at line 756 of file eagle_parser.cpp.

References CUTOUT, HATCH, ESMD::layer, SOLID, and EPAD_COMMON::thermals.

757 {
758  /*
759  <!ATTLIST polygon
760  width %Dimension; #REQUIRED
761  layer %Layer; #REQUIRED
762  spacing %Dimension; #IMPLIED
763  pour %PolygonPour; "solid"
764  isolate %Dimension; #IMPLIED -- only in <signal> or <package> context --
765  orphans %Bool; "no" -- only in <signal> context --
766  thermals %Bool; "yes" -- only in <signal> context --
767  rank %Int; "0" -- 1..6 in <signal> context, 0 or 7 in <package> context --
768  >
769  */
770 
771  width = parseRequiredAttribute<ECOORD>( aPolygon, "width" );
772  layer = parseRequiredAttribute<int>( aPolygon, "layer" );
773 
774  spacing = parseOptionalAttribute<ECOORD>( aPolygon, "spacing" );
775  isolate = parseOptionalAttribute<ECOORD>( aPolygon, "isolate" );
776  opt_wxString s = parseOptionalAttribute<wxString>( aPolygon, "pour" );
777 
778  // default pour to solid fill
780 
781  // (solid | hatch | cutout)
782  if( s == "hatch" )
783  pour = EPOLYGON::HATCH;
784  else if( s == "cutout" )
785  pour = EPOLYGON::CUTOUT;
786 
787  orphans = parseOptionalAttribute<bool>( aPolygon, "orphans" );
788  thermals = parseOptionalAttribute<bool>( aPolygon, "thermals" );
789  rank = parseOptionalAttribute<int>( aPolygon, "rank" );
790 }
opt_int rank
Definition: eagle_parser.h:778
opt_bool thermals
Definition: eagle_parser.h:777
ECOORD width
Definition: eagle_parser.h:758
opt_ecoord isolate
Definition: eagle_parser.h:775
opt_ecoord spacing
Definition: eagle_parser.h:760
opt_bool orphans
Definition: eagle_parser.h:776

Member Data Documentation

opt_ecoord EPOLYGON::isolate

Definition at line 775 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadSignals().

int EPOLYGON::layer

Definition at line 759 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadSignals(), and EAGLE_PLUGIN::packagePolygon().

const int EPOLYGON::max_priority = 6
static

Definition at line 767 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadSignals().

opt_bool EPOLYGON::orphans

Definition at line 776 of file eagle_parser.h.

int EPOLYGON::pour

Definition at line 774 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadSignals().

opt_int EPOLYGON::rank

Definition at line 778 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadSignals().

opt_ecoord EPOLYGON::spacing

Definition at line 760 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadSignals().

opt_bool EPOLYGON::thermals

Definition at line 777 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadSignals().

ECOORD EPOLYGON::width

Definition at line 758 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadSignals().


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