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

Member Enumeration Documentation

anonymous enum
Enumerator
SOLID 
HATCH 
CUTOUT 

Definition at line 761 of file eagle_parser.h.

761  { // for pour
762  SOLID,
763  HATCH,
764  CUTOUT,
765  };

Constructor & Destructor Documentation

EPOLYGON::EPOLYGON ( wxXmlNode *  aPolygon)

Definition at line 743 of file eagle_parser.cpp.

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

744 {
745  /*
746  <!ATTLIST polygon
747  width %Dimension; #REQUIRED
748  layer %Layer; #REQUIRED
749  spacing %Dimension; #IMPLIED
750  pour %PolygonPour; "solid"
751  isolate %Dimension; #IMPLIED -- only in <signal> or <package> context --
752  orphans %Bool; "no" -- only in <signal> context --
753  thermals %Bool; "yes" -- only in <signal> context --
754  rank %Int; "0" -- 1..6 in <signal> context, 0 or 7 in <package> context --
755  >
756  */
757 
758  width = parseRequiredAttribute<ECOORD>( aPolygon, "width" );
759  layer = parseRequiredAttribute<int>( aPolygon, "layer" );
760 
761  spacing = parseOptionalAttribute<ECOORD>( aPolygon, "spacing" );
762  isolate = parseOptionalAttribute<ECOORD>( aPolygon, "isolate" );
763  opt_wxString s = parseOptionalAttribute<wxString>( aPolygon, "pour" );
764 
765  // default pour to solid fill
767 
768  // (solid | hatch | cutout)
769  if( s == "hatch" )
770  pour = EPOLYGON::HATCH;
771  else if( s == "cutout" )
772  pour = EPOLYGON::CUTOUT;
773 
774  orphans = parseOptionalAttribute<bool>( aPolygon, "orphans" );
775  thermals = parseOptionalAttribute<bool>( aPolygon, "thermals" );
776  rank = parseOptionalAttribute<int>( aPolygon, "rank" );
777 }
opt_int rank
Definition: eagle_parser.h:770
opt_bool thermals
Definition: eagle_parser.h:769
ECOORD width
Definition: eagle_parser.h:750
opt_ecoord isolate
Definition: eagle_parser.h:767
opt_ecoord spacing
Definition: eagle_parser.h:752
opt_bool orphans
Definition: eagle_parser.h:768

Member Data Documentation

opt_ecoord EPOLYGON::isolate

Definition at line 767 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 759 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadSignals().

opt_bool EPOLYGON::orphans

Definition at line 768 of file eagle_parser.h.

Referenced by EPOLYGON().

int EPOLYGON::pour

Definition at line 766 of file eagle_parser.h.

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

opt_int EPOLYGON::rank

Definition at line 770 of file eagle_parser.h.

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

opt_ecoord EPOLYGON::spacing

Definition at line 752 of file eagle_parser.h.

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

opt_bool EPOLYGON::thermals

Definition at line 769 of file eagle_parser.h.

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

ECOORD EPOLYGON::width

Definition at line 750 of file eagle_parser.h.

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


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