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

Member Enumeration Documentation

anonymous enum
Enumerator
SOLID 
HATCH 
CUTOUT 

Definition at line 758 of file eagle_parser.h.

758  { // for pour
759  SOLID,
760  HATCH,
761  CUTOUT,
762  };

Constructor & Destructor Documentation

EPOLYGON::EPOLYGON ( wxXmlNode *  aPolygon)

Definition at line 725 of file eagle_parser.cpp.

References CUTOUT, HATCH, isolate, layer, orphans, pour, rank, SOLID, spacing, thermals, and width.

726 {
727  /*
728  <!ATTLIST polygon
729  width %Dimension; #REQUIRED
730  layer %Layer; #REQUIRED
731  spacing %Dimension; #IMPLIED
732  pour %PolygonPour; "solid"
733  isolate %Dimension; #IMPLIED -- only in <signal> or <package> context --
734  orphans %Bool; "no" -- only in <signal> context --
735  thermals %Bool; "yes" -- only in <signal> context --
736  rank %Int; "0" -- 1..6 in <signal> context, 0 or 7 in <package> context --
737  >
738  */
739 
740  width = parseRequiredAttribute<ECOORD>( aPolygon, "width" );
741  layer = parseRequiredAttribute<int>( aPolygon, "layer" );
742 
743  spacing = parseOptionalAttribute<ECOORD>( aPolygon, "spacing" );
744  isolate = parseOptionalAttribute<ECOORD>( aPolygon, "isolate" );
745  opt_string s = parseOptionalAttribute<string>( aPolygon, "pour" );
746 
747  // default pour to solid fill
749 
750  // (solid | hatch | cutout)
751  if( s == "hatch" )
752  pour = EPOLYGON::HATCH;
753  else if( s == "cutout" )
754  pour = EPOLYGON::CUTOUT;
755 
756  orphans = parseOptionalAttribute<bool>( aPolygon, "orphans" );
757  thermals = parseOptionalAttribute<bool>( aPolygon, "thermals" );
758  rank = parseOptionalAttribute<int>( aPolygon, "rank" );
759 }
opt_int rank
Definition: eagle_parser.h:767
opt_bool thermals
Definition: eagle_parser.h:766
ECOORD width
Definition: eagle_parser.h:747
opt_ecoord isolate
Definition: eagle_parser.h:764
opt_ecoord spacing
Definition: eagle_parser.h:749
opt_bool orphans
Definition: eagle_parser.h:765

Member Data Documentation

opt_ecoord EPOLYGON::isolate

Definition at line 764 of file eagle_parser.h.

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

int EPOLYGON::layer
const int EPOLYGON::max_priority = 6
static

Definition at line 756 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadSignals().

opt_bool EPOLYGON::orphans

Definition at line 765 of file eagle_parser.h.

Referenced by EPOLYGON().

int EPOLYGON::pour

Definition at line 763 of file eagle_parser.h.

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

opt_int EPOLYGON::rank

Definition at line 767 of file eagle_parser.h.

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

opt_ecoord EPOLYGON::spacing

Definition at line 749 of file eagle_parser.h.

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

opt_bool EPOLYGON::thermals

Definition at line 766 of file eagle_parser.h.

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

ECOORD EPOLYGON::width

Definition at line 747 of file eagle_parser.h.

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


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