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
 
opt_ecoord textsize
 
int layer
 
opt_wxString dimensionType
 

Detailed Description

Eagle dimension element.

Definition at line 620 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ EDIMENSION()

EDIMENSION::EDIMENSION ( wxXmlNode *  aDimension)

Definition at line 530 of file eagle_parser.cpp.

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

References dimensionType, layer, textsize, x1, x2, x3, y1, y2, and y3.

Member Data Documentation

◆ dimensionType

opt_wxString EDIMENSION::dimensionType

Definition at line 630 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ layer

int EDIMENSION::layer

Definition at line 629 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ textsize

opt_ecoord EDIMENSION::textsize

Definition at line 628 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ x1

ECOORD EDIMENSION::x1

Definition at line 622 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ x2

ECOORD EDIMENSION::x2

Definition at line 624 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ x3

ECOORD EDIMENSION::x3

Definition at line 626 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ y1

ECOORD EDIMENSION::y1

Definition at line 623 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ y2

ECOORD EDIMENSION::y2

Definition at line 625 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ y3

ECOORD EDIMENSION::y3

Definition at line 627 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().


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