KiCad PCB EDA Suite
EDIMENSION Struct Reference

Eagle dimension element. More...

#include <eagle_parser.h>

Public Member Functions

 EDIMENSION (wxXmlNode *aDimension)
 

Public Attributes

double x1
 
double y1
 
double x2
 
double y2
 
double x3
 
double y3
 
int layer
 
opt_string dimensionType
 

Detailed Description

Eagle dimension element.

Definition at line 498 of file eagle_parser.h.

Constructor & Destructor Documentation

EDIMENSION::EDIMENSION ( wxXmlNode *  aDimension)

Definition at line 303 of file eagle_parser.cpp.

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

304 {
305  /*
306  <!ELEMENT dimension EMPTY>
307  <!ATTLIST dimension
308  x1 %Coord; #REQUIRED
309  y1 %Coord; #REQUIRED
310  x2 %Coord; #REQUIRED
311  y2 %Coord; #REQUIRED
312  x3 %Coord; #REQUIRED
313  y3 %Coord; #REQUIRED
314  layer %Layer; #REQUIRED
315  dtype %DimensionType; "parallel"
316  >
317  */
318 
319  x1 = parseRequiredAttribute<double>( aDimension, "x1" );
320  y1 = parseRequiredAttribute<double>( aDimension, "y1" );
321  x2 = parseRequiredAttribute<double>( aDimension, "x2" );
322  y2 = parseRequiredAttribute<double>( aDimension, "y2" );
323  x3 = parseRequiredAttribute<double>( aDimension, "x3" );
324  y3 = parseRequiredAttribute<double>( aDimension, "y3" );
325  layer = parseRequiredAttribute<int>( aDimension, "layer" );
326 
327  opt_string dimType = parseOptionalAttribute<string>( aDimension, "dtype" );
328 
329  if( !dimType )
330  {
331  // default type is parallel
332  }
333 }

Member Data Documentation

opt_string EDIMENSION::dimensionType

Definition at line 508 of file eagle_parser.h.

int EDIMENSION::layer

Definition at line 506 of file eagle_parser.h.

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

double EDIMENSION::x1

Definition at line 500 of file eagle_parser.h.

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

double EDIMENSION::x2

Definition at line 502 of file eagle_parser.h.

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

double EDIMENSION::x3

Definition at line 504 of file eagle_parser.h.

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

double EDIMENSION::y1

Definition at line 501 of file eagle_parser.h.

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

double EDIMENSION::y2

Definition at line 503 of file eagle_parser.h.

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

double EDIMENSION::y3

Definition at line 505 of file eagle_parser.h.

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


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