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

double width
 
int layer
 
opt_double spacing
 
int pour
 
opt_double 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 603 of file eagle_parser.h.

Member Enumeration Documentation

anonymous enum
Enumerator
SOLID 
HATCH 
CUTOUT 

Definition at line 616 of file eagle_parser.h.

616  { // for pour
617  SOLID,
618  HATCH,
619  CUTOUT,
620  };

Constructor & Destructor Documentation

EPOLYGON::EPOLYGON ( wxXmlNode *  aPolygon)

Definition at line 486 of file eagle_parser.cpp.

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

487 {
488  /*
489  <!ATTLIST polygon
490  width %Dimension; #REQUIRED
491  layer %Layer; #REQUIRED
492  spacing %Dimension; #IMPLIED
493  pour %PolygonPour; "solid"
494  isolate %Dimension; #IMPLIED -- only in <signal> or <package> context --
495  orphans %Bool; "no" -- only in <signal> context --
496  thermals %Bool; "yes" -- only in <signal> context --
497  rank %Int; "0" -- 1..6 in <signal> context, 0 or 7 in <package> context --
498  >
499  */
500 
501  width = parseRequiredAttribute<double>( aPolygon, "width" );
502  layer = parseRequiredAttribute<int>( aPolygon, "layer" );
503 
504  spacing = parseOptionalAttribute<double>( aPolygon, "spacing" );
505  isolate = parseOptionalAttribute<double>( aPolygon, "isolate" );
506  opt_string s = parseOptionalAttribute<string>( aPolygon, "pour" );
507 
508  // default pour to solid fill
510 
511  // (solid | hatch | cutout)
512  if( s == "hatch" )
513  pour = EPOLYGON::HATCH;
514  else if( s == "cutout" )
515  pour = EPOLYGON::CUTOUT;
516 
517  orphans = parseOptionalAttribute<bool>( aPolygon, "orphans" );
518  thermals = parseOptionalAttribute<bool>( aPolygon, "thermals" );
519  rank = parseOptionalAttribute<int>( aPolygon, "rank" );
520 }
opt_double isolate
Definition: eagle_parser.h:622
opt_int rank
Definition: eagle_parser.h:625
opt_bool thermals
Definition: eagle_parser.h:624
opt_double spacing
Definition: eagle_parser.h:607
double width
Definition: eagle_parser.h:605
opt_bool orphans
Definition: eagle_parser.h:623

Member Data Documentation

opt_double EPOLYGON::isolate

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

Referenced by EAGLE_PLUGIN::loadSignals().

opt_bool EPOLYGON::orphans

Definition at line 623 of file eagle_parser.h.

Referenced by EPOLYGON().

int EPOLYGON::pour

Definition at line 621 of file eagle_parser.h.

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

opt_int EPOLYGON::rank

Definition at line 625 of file eagle_parser.h.

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

opt_double EPOLYGON::spacing

Definition at line 607 of file eagle_parser.h.

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

opt_bool EPOLYGON::thermals

Definition at line 624 of file eagle_parser.h.

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

double EPOLYGON::width

Definition at line 605 of file eagle_parser.h.

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


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