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

Constructor & Destructor Documentation

◆ ERECT()

ERECT::ERECT ( wxXmlNode *  aRect)

Definition at line 468 of file eagle_parser.cpp.

469 {
470  /*
471  <!ELEMENT rectangle EMPTY>
472  <!ATTLIST rectangle
473  x1 %Coord; #REQUIRED
474  y1 %Coord; #REQUIRED
475  x2 %Coord; #REQUIRED
476  y2 %Coord; #REQUIRED
477  layer %Layer; #REQUIRED
478  rot %Rotation; "R0"
479  >
480  */
481 
482  x1 = parseRequiredAttribute<ECOORD>( aRect, "x1" );
483  y1 = parseRequiredAttribute<ECOORD>( aRect, "y1" );
484  x2 = parseRequiredAttribute<ECOORD>( aRect, "x2" );
485  y2 = parseRequiredAttribute<ECOORD>( aRect, "y2" );
486  layer = parseRequiredAttribute<int>( aRect, "layer" );
487  rot = parseOptionalAttribute<EROT>( aRect, "rot" );
488 }
ECOORD x2
Definition: eagle_parser.h:588
opt_erot rot
Definition: eagle_parser.h:591
int layer
Definition: eagle_parser.h:590
ECOORD y1
Definition: eagle_parser.h:587
ECOORD x1
Definition: eagle_parser.h:586
ECOORD y2
Definition: eagle_parser.h:589

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

Member Data Documentation

◆ layer

int ERECT::layer

Definition at line 590 of file eagle_parser.h.

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

◆ rot

opt_erot ERECT::rot

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