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 790 of file eagle_parser.cpp.

791 {
792  /*
793  <!ATTLIST polygon
794  width %Dimension; #REQUIRED
795  layer %Layer; #REQUIRED
796  spacing %Dimension; #IMPLIED
797  pour %PolygonPour; "solid"
798  isolate %Dimension; #IMPLIED -- only in <signal> or <package> context --
799  orphans %Bool; "no" -- only in <signal> context --
800  thermals %Bool; "yes" -- only in <signal> context --
801  rank %Int; "0" -- 1..6 in <signal> context, 0 or 7 in
802  <package> context --
803  >
804  */
805 
806  width = parseRequiredAttribute<ECOORD>( aPolygon, wxT( "width" ) );
807  layer = parseRequiredAttribute<int>( aPolygon, wxT( "layer" ) );
808 
809  spacing = parseOptionalAttribute<ECOORD>( aPolygon, wxT( "spacing" ) );
810  isolate = parseOptionalAttribute<ECOORD>( aPolygon, wxT( "isolate" ) );
811  opt_wxString s = parseOptionalAttribute<wxString>( aPolygon, wxT( "pour" ) );
812 
813  // default pour to solid fill
815 
816  // (solid | hatch | cutout)
817  if( s == wxT( "hatch" ) )
819  else if( s == wxT( "cutout" ) )
821 
822  orphans = parseOptionalAttribute<bool>( aPolygon, wxT( "orphans" ) );
823  thermals = parseOptionalAttribute<bool>( aPolygon, wxT( "thermals" ) );
824  rank = parseOptionalAttribute<int>( aPolygon, wxT( "rank" ) );
825 }
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: