KiCad PCB EDA Suite
EDIMENSION Struct Reference

Eagle dimension element. More...

#include <eagle_parser.h>

Public Member Functions

 EDIMENSION (wxXmlNode *aDimension)
 

Public Attributes

ECOORD x1
 
ECOORD y1
 
ECOORD x2
 
ECOORD y2
 
ECOORD x3
 
ECOORD y3
 
opt_ecoord textsize
 
int layer
 
opt_wxString dimensionType
 

Detailed Description

Eagle dimension element.

Definition at line 624 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ EDIMENSION()

EDIMENSION::EDIMENSION ( wxXmlNode *  aDimension)

Definition at line 621 of file eagle_parser.cpp.

622{
623 /*
624 <!ELEMENT dimension EMPTY>
625 <!ATTLIST dimension
626 x1 %Coord; #REQUIRED
627 y1 %Coord; #REQUIRED
628 x2 %Coord; #REQUIRED
629 y2 %Coord; #REQUIRED
630 x3 %Coord; #REQUIRED
631 y3 %Coord; #REQUIRED
632 textsize %Coord;
633 layer %Layer; #REQUIRED
634 dtype %DimensionType; "parallel"
635 >
636 */
637
638 x1 = parseRequiredAttribute<ECOORD>( aDimension, wxT( "x1" ) );
639 y1 = parseRequiredAttribute<ECOORD>( aDimension, wxT( "y1" ) );
640 x2 = parseRequiredAttribute<ECOORD>( aDimension, wxT( "x2" ) );
641 y2 = parseRequiredAttribute<ECOORD>( aDimension, wxT( "y2" ) );
642 x3 = parseRequiredAttribute<ECOORD>( aDimension, wxT( "x3" ) );
643 y3 = parseRequiredAttribute<ECOORD>( aDimension, wxT( "y3" ) );
644 textsize = parseOptionalAttribute<ECOORD>( aDimension, wxT( "textsize" ) );
645 layer = parseRequiredAttribute<int>( aDimension, wxT( "layer" ) );
646 dimensionType = parseOptionalAttribute<wxString>( aDimension, wxT( "dtype" ) );
647}
opt_wxString dimensionType
Definition: eagle_parser.h:634
opt_ecoord textsize
Definition: eagle_parser.h:632

References dimensionType, layer, textsize, x1, x2, x3, y1, y2, and y3.

Member Data Documentation

◆ dimensionType

opt_wxString EDIMENSION::dimensionType

Definition at line 634 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ layer

int EDIMENSION::layer

Definition at line 633 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ textsize

opt_ecoord EDIMENSION::textsize

Definition at line 632 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ x1

ECOORD EDIMENSION::x1

Definition at line 626 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ x2

ECOORD EDIMENSION::x2

Definition at line 628 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ x3

ECOORD EDIMENSION::x3

Definition at line 630 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ y1

ECOORD EDIMENSION::y1

Definition at line 627 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ y2

ECOORD EDIMENSION::y2

Definition at line 629 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().

◆ y3

ECOORD EDIMENSION::y3

Definition at line 631 of file eagle_parser.h.

Referenced by EDIMENSION(), and EAGLE_PLUGIN::loadPlain().


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