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::ERECT ( wxXmlNode *  aRect)

Definition at line 451 of file eagle_parser.cpp.

452 {
453  /*
454  <!ELEMENT rectangle EMPTY>
455  <!ATTLIST rectangle
456  x1 %Coord; #REQUIRED
457  y1 %Coord; #REQUIRED
458  x2 %Coord; #REQUIRED
459  y2 %Coord; #REQUIRED
460  layer %Layer; #REQUIRED
461  rot %Rotation; "R0"
462  >
463  */
464 
465  x1 = parseRequiredAttribute<ECOORD>( aRect, "x1" );
466  y1 = parseRequiredAttribute<ECOORD>( aRect, "y1" );
467  x2 = parseRequiredAttribute<ECOORD>( aRect, "x2" );
468  y2 = parseRequiredAttribute<ECOORD>( aRect, "y2" );
469  layer = parseRequiredAttribute<int>( aRect, "layer" );
470  rot = parseOptionalAttribute<EROT>( aRect, "rot" );
471 }
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

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

Member Data Documentation

◆ layer

int ERECT::layer

Definition at line 589 of file eagle_parser.h.

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

◆ rot

opt_erot ERECT::rot

Definition at line 590 of file eagle_parser.h.

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

◆ x1

◆ x2

◆ y1

◆ y2


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