KiCad PCB EDA Suite
ERECT Struct Reference

Eagle XML rectangle in binary. More...

#include <eagle_parser.h>

Public Member Functions

 ERECT (wxXmlNode *aRect)
 

Public Attributes

double x1
 
double y1
 
double x2
 
double y2
 
int layer
 
opt_erot rot
 

Detailed Description

Eagle XML rectangle in binary.

Definition at line 454 of file eagle_parser.h.

Constructor & Destructor Documentation

ERECT::ERECT ( wxXmlNode *  aRect)

Definition at line 234 of file eagle_parser.cpp.

References layer, rot, x1, x2, y1, and y2.

235 {
236  /*
237  <!ELEMENT rectangle EMPTY>
238  <!ATTLIST rectangle
239  x1 %Coord; #REQUIRED
240  y1 %Coord; #REQUIRED
241  x2 %Coord; #REQUIRED
242  y2 %Coord; #REQUIRED
243  layer %Layer; #REQUIRED
244  rot %Rotation; "R0"
245  >
246  */
247 
248  x1 = parseRequiredAttribute<double>( aRect, "x1" );
249  y1 = parseRequiredAttribute<double>( aRect, "y1" );
250  x2 = parseRequiredAttribute<double>( aRect, "x2" );
251  y2 = parseRequiredAttribute<double>( aRect, "y2" );
252  layer = parseRequiredAttribute<int>( aRect, "layer" );
253  rot = parseOptionalAttribute<EROT>( aRect, "rot" );
254 }
double x1
Definition: eagle_parser.h:456
opt_erot rot
Definition: eagle_parser.h:461
int layer
Definition: eagle_parser.h:460
double y1
Definition: eagle_parser.h:457
double x2
Definition: eagle_parser.h:458
double y2
Definition: eagle_parser.h:459

Member Data Documentation

int ERECT::layer

Definition at line 460 of file eagle_parser.h.

Referenced by ERECT(), EAGLE_PLUGIN::loadPlain(), and EAGLE_PLUGIN::packageRectangle().

opt_erot ERECT::rot

Definition at line 461 of file eagle_parser.h.

Referenced by ERECT().

double ERECT::x1

Definition at line 456 of file eagle_parser.h.

Referenced by ERECT(), EAGLE_PLUGIN::loadPlain(), and EAGLE_PLUGIN::packageRectangle().

double ERECT::x2

Definition at line 458 of file eagle_parser.h.

Referenced by ERECT(), EAGLE_PLUGIN::loadPlain(), and EAGLE_PLUGIN::packageRectangle().

double ERECT::y1

Definition at line 457 of file eagle_parser.h.

Referenced by ERECT(), EAGLE_PLUGIN::loadPlain(), and EAGLE_PLUGIN::packageRectangle().

double ERECT::y2

Definition at line 459 of file eagle_parser.h.

Referenced by ERECT(), EAGLE_PLUGIN::loadPlain(), and EAGLE_PLUGIN::packageRectangle().


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