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

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

Detailed Description

Eagle XML rectangle in binary.

Definition at line 574 of file eagle_parser.h.

Constructor & Destructor Documentation

ERECT::ERECT ( wxXmlNode *  aRect)

Definition at line 432 of file eagle_parser.cpp.

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

433 {
434  /*
435  <!ELEMENT rectangle EMPTY>
436  <!ATTLIST rectangle
437  x1 %Coord; #REQUIRED
438  y1 %Coord; #REQUIRED
439  x2 %Coord; #REQUIRED
440  y2 %Coord; #REQUIRED
441  layer %Layer; #REQUIRED
442  rot %Rotation; "R0"
443  >
444  */
445 
446  x1 = parseRequiredAttribute<ECOORD>( aRect, "x1" );
447  y1 = parseRequiredAttribute<ECOORD>( aRect, "y1" );
448  x2 = parseRequiredAttribute<ECOORD>( aRect, "x2" );
449  y2 = parseRequiredAttribute<ECOORD>( aRect, "y2" );
450  layer = parseRequiredAttribute<int>( aRect, "layer" );
451  rot = parseOptionalAttribute<EROT>( aRect, "rot" );
452 }
ECOORD x2
Definition: eagle_parser.h:578
opt_erot rot
Definition: eagle_parser.h:581
int layer
Definition: eagle_parser.h:580
ECOORD y1
Definition: eagle_parser.h:577
ECOORD x1
Definition: eagle_parser.h:576
ECOORD y2
Definition: eagle_parser.h:579

Member Data Documentation

int ERECT::layer

Definition at line 580 of file eagle_parser.h.

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

opt_erot ERECT::rot

Definition at line 581 of file eagle_parser.h.

Referenced by ERECT().


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