KiCad PCB EDA Suite
EDIMENSION Struct Reference

Eagle dimension element. More...

#include <eagle_parser.h>

Public Member Functions

 EDIMENSION (wxXmlNode *aDimension)
 

Public Attributes

ECOORD x1
 
ECOORD y1
 
ECOORD x2
 
ECOORD y2
 
ECOORD x3
 
ECOORD y3
 
int layer
 
opt_wxString dimensionType
 

Detailed Description

Eagle dimension element.

Definition at line 626 of file eagle_parser.h.

Constructor & Destructor Documentation

EDIMENSION::EDIMENSION ( wxXmlNode *  aDimension)

Definition at line 534 of file eagle_parser.cpp.

535 {
536  /*
537  <!ELEMENT dimension EMPTY>
538  <!ATTLIST dimension
539  x1 %Coord; #REQUIRED
540  y1 %Coord; #REQUIRED
541  x2 %Coord; #REQUIRED
542  y2 %Coord; #REQUIRED
543  x3 %Coord; #REQUIRED
544  y3 %Coord; #REQUIRED
545  layer %Layer; #REQUIRED
546  dtype %DimensionType; "parallel"
547  >
548  */
549 
550  x1 = parseRequiredAttribute<ECOORD>( aDimension, "x1" );
551  y1 = parseRequiredAttribute<ECOORD>( aDimension, "y1" );
552  x2 = parseRequiredAttribute<ECOORD>( aDimension, "x2" );
553  y2 = parseRequiredAttribute<ECOORD>( aDimension, "y2" );
554  x3 = parseRequiredAttribute<ECOORD>( aDimension, "x3" );
555  y3 = parseRequiredAttribute<ECOORD>( aDimension, "y3" );
556  layer = parseRequiredAttribute<int>( aDimension, "layer" );
557  dimensionType = parseOptionalAttribute<wxString>( aDimension, "dtype" );
558 }
opt_wxString dimensionType
Definition: eagle_parser.h:636

Member Data Documentation

opt_wxString EDIMENSION::dimensionType

Definition at line 636 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadPlain().

int EDIMENSION::layer

Definition at line 634 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadPlain().

ECOORD EDIMENSION::x1

Definition at line 628 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadPlain().

ECOORD EDIMENSION::x2

Definition at line 630 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadPlain().

ECOORD EDIMENSION::x3

Definition at line 632 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadPlain().

ECOORD EDIMENSION::y1

Definition at line 629 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadPlain().

ECOORD EDIMENSION::y2

Definition at line 631 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadPlain().

ECOORD EDIMENSION::y3

Definition at line 633 of file eagle_parser.h.

Referenced by EAGLE_PLUGIN::loadPlain().


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