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 504 of file eagle_parser.cpp.

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

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