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_string dimensionType
 

Detailed Description

Eagle dimension element.

Definition at line 619 of file eagle_parser.h.

Constructor & Destructor Documentation

EDIMENSION::EDIMENSION ( wxXmlNode *  aDimension)

Definition at line 505 of file eagle_parser.cpp.

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

506 {
507  /*
508  <!ELEMENT dimension EMPTY>
509  <!ATTLIST dimension
510  x1 %Coord; #REQUIRED
511  y1 %Coord; #REQUIRED
512  x2 %Coord; #REQUIRED
513  y2 %Coord; #REQUIRED
514  x3 %Coord; #REQUIRED
515  y3 %Coord; #REQUIRED
516  layer %Layer; #REQUIRED
517  dtype %DimensionType; "parallel"
518  >
519  */
520 
521  x1 = parseRequiredAttribute<ECOORD>( aDimension, "x1" );
522  y1 = parseRequiredAttribute<ECOORD>( aDimension, "y1" );
523  x2 = parseRequiredAttribute<ECOORD>( aDimension, "x2" );
524  y2 = parseRequiredAttribute<ECOORD>( aDimension, "y2" );
525  x3 = parseRequiredAttribute<ECOORD>( aDimension, "x3" );
526  y3 = parseRequiredAttribute<ECOORD>( aDimension, "y3" );
527  layer = parseRequiredAttribute<int>( aDimension, "layer" );
528  dimensionType = parseOptionalAttribute<string>( aDimension, "dtype" );
529 }
opt_string dimensionType
Definition: eagle_parser.h:629

Member Data Documentation

opt_string EDIMENSION::dimensionType

Definition at line 629 of file eagle_parser.h.

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

int EDIMENSION::layer

Definition at line 627 of file eagle_parser.h.

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

ECOORD EDIMENSION::x1

Definition at line 621 of file eagle_parser.h.

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

ECOORD EDIMENSION::x2

Definition at line 623 of file eagle_parser.h.

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

ECOORD EDIMENSION::x3

Definition at line 625 of file eagle_parser.h.

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

ECOORD EDIMENSION::y1

Definition at line 622 of file eagle_parser.h.

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

ECOORD EDIMENSION::y2

Definition at line 624 of file eagle_parser.h.

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

ECOORD EDIMENSION::y3

Definition at line 626 of file eagle_parser.h.

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


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