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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SOLID 
HATCH 
CUTOUT 

Definition at line 787 of file eagle_parser.h.

787 { // for pour
788 SOLID,
789 HATCH,
790 CUTOUT,
791 };

Constructor & Destructor Documentation

◆ EPOLYGON()

EPOLYGON::EPOLYGON ( wxXmlNode *  aPolygon)

Definition at line 881 of file eagle_parser.cpp.

882{
883 /*
884 <!ATTLIST polygon
885 width %Dimension; #REQUIRED
886 layer %Layer; #REQUIRED
887 spacing %Dimension; #IMPLIED
888 pour %PolygonPour; "solid"
889 isolate %Dimension; #IMPLIED -- only in <signal> or <package> context --
890 orphans %Bool; "no" -- only in <signal> context --
891 thermals %Bool; "yes" -- only in <signal> context --
892 rank %Int; "0" -- 1..6 in <signal> context, 0 or 7 in
893 <package> context --
894 >
895 */
896
897 width = parseRequiredAttribute<ECOORD>( aPolygon, "width" );
898 layer = parseRequiredAttribute<int>( aPolygon, "layer" );
899
900 spacing = parseOptionalAttribute<ECOORD>( aPolygon, "spacing" );
901 isolate = parseOptionalAttribute<ECOORD>( aPolygon, "isolate" );
902 opt_wxString s = parseOptionalAttribute<wxString>( aPolygon, "pour" );
903
904 // default pour to solid fill
906
907 // (solid | hatch | cutout)
908 if( s == "hatch" )
910 else if( s == "cutout" )
912
913 orphans = parseOptionalAttribute<bool>( aPolygon, "orphans" );
914 thermals = parseOptionalAttribute<bool>( aPolygon, "thermals" );
915 rank = parseOptionalAttribute<int>( aPolygon, "rank" );
916}
opt_bool orphans
Definition: eagle_parser.h:794
opt_int rank
Definition: eagle_parser.h:796
opt_bool thermals
Definition: eagle_parser.h:795
opt_ecoord spacing
Definition: eagle_parser.h:778
ECOORD width
Definition: eagle_parser.h:776
opt_ecoord isolate
Definition: eagle_parser.h:793

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

Member Data Documentation

◆ isolate

opt_ecoord EPOLYGON::isolate

Definition at line 793 of file eagle_parser.h.

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

◆ layer

◆ max_priority

const int EPOLYGON::max_priority = 6
static

Definition at line 785 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadPolygon().

◆ orphans

opt_bool EPOLYGON::orphans

Definition at line 794 of file eagle_parser.h.

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

◆ pour

int EPOLYGON::pour

◆ rank

opt_int EPOLYGON::rank

Definition at line 796 of file eagle_parser.h.

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

◆ spacing

opt_ecoord EPOLYGON::spacing

Definition at line 778 of file eagle_parser.h.

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

◆ thermals

opt_bool EPOLYGON::thermals

Definition at line 795 of file eagle_parser.h.

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

◆ width


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