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 459 of file eagle_parser.cpp.

460 {
461  /*
462  <!ELEMENT rectangle EMPTY>
463  <!ATTLIST rectangle
464  x1 %Coord; #REQUIRED
465  y1 %Coord; #REQUIRED
466  x2 %Coord; #REQUIRED
467  y2 %Coord; #REQUIRED
468  layer %Layer; #REQUIRED
469  rot %Rotation; "R0"
470  >
471  */
472 
473  x1 = parseRequiredAttribute<ECOORD>( aRect, wxT( "x1" ) );
474  y1 = parseRequiredAttribute<ECOORD>( aRect, wxT( "y1" ) );
475  x2 = parseRequiredAttribute<ECOORD>( aRect, wxT( "x2" ) );
476  y2 = parseRequiredAttribute<ECOORD>( aRect, wxT( "y2" ) );
477  layer = parseRequiredAttribute<int>( aRect, wxT( "layer" ) );
478  rot = parseOptionalAttribute<EROT>( aRect, wxT( "rot" ) );
479 }
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().

◆ rot

opt_erot ERECT::rot

Definition at line 582 of file eagle_parser.h.

Referenced by ERECT(), and SCH_EAGLE_PLUGIN::loadSymbolRectangle().

◆ x1

ECOORD ERECT::x1

Definition at line 577 of file eagle_parser.h.

Referenced by ERECT(), and SCH_EAGLE_PLUGIN::loadSymbolRectangle().

◆ x2

ECOORD ERECT::x2

Definition at line 579 of file eagle_parser.h.

Referenced by ERECT(), and SCH_EAGLE_PLUGIN::loadSymbolRectangle().

◆ y1

ECOORD ERECT::y1

Definition at line 578 of file eagle_parser.h.

Referenced by ERECT(), and SCH_EAGLE_PLUGIN::loadSymbolRectangle().

◆ y2

ECOORD ERECT::y2

Definition at line 580 of file eagle_parser.h.

Referenced by ERECT(), and SCH_EAGLE_PLUGIN::loadSymbolRectangle().


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