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 583 of file eagle_parser.h.

Constructor & Destructor Documentation

ERECT::ERECT ( wxXmlNode *  aRect)

Definition at line 461 of file eagle_parser.cpp.

462 {
463  /*
464  <!ELEMENT rectangle EMPTY>
465  <!ATTLIST rectangle
466  x1 %Coord; #REQUIRED
467  y1 %Coord; #REQUIRED
468  x2 %Coord; #REQUIRED
469  y2 %Coord; #REQUIRED
470  layer %Layer; #REQUIRED
471  rot %Rotation; "R0"
472  >
473  */
474 
475  x1 = parseRequiredAttribute<ECOORD>( aRect, "x1" );
476  y1 = parseRequiredAttribute<ECOORD>( aRect, "y1" );
477  x2 = parseRequiredAttribute<ECOORD>( aRect, "x2" );
478  y2 = parseRequiredAttribute<ECOORD>( aRect, "y2" );
479  layer = parseRequiredAttribute<int>( aRect, "layer" );
480  rot = parseOptionalAttribute<EROT>( aRect, "rot" );
481 }
ECOORD x2
Definition: eagle_parser.h:587
opt_erot rot
Definition: eagle_parser.h:590
int layer
Definition: eagle_parser.h:589
ECOORD y1
Definition: eagle_parser.h:586
ECOORD x1
Definition: eagle_parser.h:585
ECOORD y2
Definition: eagle_parser.h:588

Member Data Documentation

int ERECT::layer

Definition at line 589 of file eagle_parser.h.

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

opt_erot ERECT::rot

Definition at line 590 of file eagle_parser.h.

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


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