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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SOLID 
HATCH 
CUTOUT 

Definition at line 783 of file eagle_parser.h.

783  { // for pour
784  SOLID,
785  HATCH,
786  CUTOUT,
787  };

Constructor & Destructor Documentation

◆ EPOLYGON()

EPOLYGON::EPOLYGON ( wxXmlNode *  aPolygon)

Definition at line 787 of file eagle_parser.cpp.

788 {
789  /*
790  <!ATTLIST polygon
791  width %Dimension; #REQUIRED
792  layer %Layer; #REQUIRED
793  spacing %Dimension; #IMPLIED
794  pour %PolygonPour; "solid"
795  isolate %Dimension; #IMPLIED -- only in <signal> or <package> context --
796  orphans %Bool; "no" -- only in <signal> context --
797  thermals %Bool; "yes" -- only in <signal> context --
798  rank %Int; "0" -- 1..6 in <signal> context, 0 or 7 in
799  <package> context --
800  >
801  */
802 
803  width = parseRequiredAttribute<ECOORD>( aPolygon, "width" );
804  layer = parseRequiredAttribute<int>( aPolygon, "layer" );
805 
806  spacing = parseOptionalAttribute<ECOORD>( aPolygon, "spacing" );
807  isolate = parseOptionalAttribute<ECOORD>( aPolygon, "isolate" );
808  opt_wxString s = parseOptionalAttribute<wxString>( aPolygon, "pour" );
809 
810  // default pour to solid fill
812 
813  // (solid | hatch | cutout)
814  if( s == "hatch" )
816  else if( s == "cutout" )
818 
819  orphans = parseOptionalAttribute<bool>( aPolygon, "orphans" );
820  thermals = parseOptionalAttribute<bool>( aPolygon, "thermals" );
821  rank = parseOptionalAttribute<int>( aPolygon, "rank" );
822 }
opt_int rank
Definition: eagle_parser.h:792
opt_bool thermals
Definition: eagle_parser.h:791
ECOORD width
Definition: eagle_parser.h:772
opt_ecoord isolate
Definition: eagle_parser.h:789
opt_ecoord spacing
Definition: eagle_parser.h:774
opt_bool orphans
Definition: eagle_parser.h:790

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

Member Data Documentation

◆ isolate

opt_ecoord EPOLYGON::isolate

Definition at line 789 of file eagle_parser.h.

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

◆ layer

int EPOLYGON::layer

◆ max_priority

const int EPOLYGON::max_priority = 6
static

Definition at line 781 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadPolygon().

◆ orphans

opt_bool EPOLYGON::orphans

Definition at line 790 of file eagle_parser.h.

Referenced by EPOLYGON().

◆ pour

int EPOLYGON::pour

Definition at line 788 of file eagle_parser.h.

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

◆ rank

opt_int EPOLYGON::rank

Definition at line 792 of file eagle_parser.h.

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

◆ spacing

opt_ecoord EPOLYGON::spacing

Definition at line 774 of file eagle_parser.h.

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

◆ thermals

opt_bool EPOLYGON::thermals

Definition at line 791 of file eagle_parser.h.

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

◆ width

ECOORD EPOLYGON::width

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