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

Constructor & Destructor Documentation

◆ ERECT()

ERECT::ERECT ( wxXmlNode *  aRect)

Definition at line 550 of file eagle_parser.cpp.

551{
552 /*
553 <!ELEMENT rectangle EMPTY>
554 <!ATTLIST rectangle
555 x1 %Coord; #REQUIRED
556 y1 %Coord; #REQUIRED
557 x2 %Coord; #REQUIRED
558 y2 %Coord; #REQUIRED
559 layer %Layer; #REQUIRED
560 rot %Rotation; "R0"
561 >
562 */
563
564 x1 = parseRequiredAttribute<ECOORD>( aRect, "x1" );
565 y1 = parseRequiredAttribute<ECOORD>( aRect, "y1" );
566 x2 = parseRequiredAttribute<ECOORD>( aRect, "x2" );
567 y2 = parseRequiredAttribute<ECOORD>( aRect, "y2" );
568 layer = parseRequiredAttribute<int>( aRect, "layer" );
569 rot = parseOptionalAttribute<EROT>( aRect, "rot" );
570}
ECOORD x2
Definition: eagle_parser.h:583
ECOORD y1
Definition: eagle_parser.h:582
opt_erot rot
Definition: eagle_parser.h:586
int layer
Definition: eagle_parser.h:585
ECOORD y2
Definition: eagle_parser.h:584
ECOORD x1
Definition: eagle_parser.h:581

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

Member Data Documentation

◆ layer

◆ rot

◆ x1

◆ x2

◆ y1

◆ y2


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