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

Constructor & Destructor Documentation

◆ ERECT()

ERECT::ERECT ( wxXmlNode *  aRect)

Definition at line 458 of file eagle_parser.cpp.

459 {
460  /*
461  <!ELEMENT rectangle EMPTY>
462  <!ATTLIST rectangle
463  x1 %Coord; #REQUIRED
464  y1 %Coord; #REQUIRED
465  x2 %Coord; #REQUIRED
466  y2 %Coord; #REQUIRED
467  layer %Layer; #REQUIRED
468  rot %Rotation; "R0"
469  >
470  */
471 
472  x1 = parseRequiredAttribute<ECOORD>( aRect, "x1" );
473  y1 = parseRequiredAttribute<ECOORD>( aRect, "y1" );
474  x2 = parseRequiredAttribute<ECOORD>( aRect, "x2" );
475  y2 = parseRequiredAttribute<ECOORD>( aRect, "y2" );
476  layer = parseRequiredAttribute<int>( aRect, "layer" );
477  rot = parseOptionalAttribute<EROT>( aRect, "rot" );
478 }
ECOORD x2
Definition: eagle_parser.h:579
opt_erot rot
Definition: eagle_parser.h:582
int layer
Definition: eagle_parser.h:581
ECOORD y1
Definition: eagle_parser.h:578
ECOORD x1
Definition: eagle_parser.h:577
ECOORD y2
Definition: eagle_parser.h:580

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

Member Data Documentation

◆ layer

int ERECT::layer

Definition at line 581 of file eagle_parser.h.

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

◆ rot

opt_erot ERECT::rot

Definition at line 582 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: