KiCad PCB EDA Suite
EWIRE Struct Reference

Eagle wire. More...

#include <eagle_parser.h>

Public Types

enum  { CONTINUOUS , LONGDASH , SHORTDASH , DASHDOT }
 
enum  { FLAT , ROUND }
 

Public Member Functions

 EWIRE (wxXmlNode *aWire)
 

Public Attributes

ECOORD x1
 
ECOORD y1
 
ECOORD x2
 
ECOORD y2
 
ECOORD width
 
int layer
 
opt_int style
 
opt_double curve
 range is -359.9..359.9 More...
 
opt_int cap
 

Detailed Description

Eagle wire.

Definition at line 497 of file eagle_parser.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
FLAT 
ROUND 

Definition at line 516 of file eagle_parser.h.

516 { FLAT,
517 ROUND };

◆ anonymous enum

anonymous enum
Enumerator
CONTINUOUS 
LONGDASH 
SHORTDASH 
DASHDOT 

Definition at line 507 of file eagle_parser.h.

507 { CONTINUOUS,
508 LONGDASH,
509 SHORTDASH,
510 DASHDOT };
@ LONGDASH
Definition: eagle_parser.h:508
@ CONTINUOUS
Definition: eagle_parser.h:507
@ SHORTDASH
Definition: eagle_parser.h:509

Constructor & Destructor Documentation

◆ EWIRE()

EWIRE::EWIRE ( wxXmlNode *  aWire)

Definition at line 415 of file eagle_parser.cpp.

416{
417 /*
418 <!ELEMENT wire EMPTY>
419 <!ATTLIST wire
420 x1 %Coord; #REQUIRED
421 y1 %Coord; #REQUIRED
422 x2 %Coord; #REQUIRED
423 y2 %Coord; #REQUIRED
424 width %Dimension; #REQUIRED
425 layer %Layer; #REQUIRED
426 extent %Extent; #IMPLIED -- only applicable for airwires --
427 style %WireStyle; "continuous"
428 curve %WireCurve; "0"
429 cap %WireCap; "round" -- only applicable if 'curve' is not zero --
430 >
431 */
432
433 x1 = parseRequiredAttribute<ECOORD>( aWire, "x1" );
434 y1 = parseRequiredAttribute<ECOORD>( aWire, "y1" );
435 x2 = parseRequiredAttribute<ECOORD>( aWire, "x2" );
436 y2 = parseRequiredAttribute<ECOORD>( aWire, "y2" );
437 width = parseRequiredAttribute<ECOORD>( aWire, "width" );
438 layer = parseRequiredAttribute<int>( aWire, "layer" );
439 curve = parseOptionalAttribute<double>( aWire, "curve" );
440
441 opt_wxString s = parseOptionalAttribute<wxString>( aWire, "style" );
442
443 if( s == "continuous" )
445 else if( s == "longdash" )
447 else if( s == "shortdash" )
449 else if( s == "dashdot" )
451
452 s = parseOptionalAttribute<wxString>( aWire, "cap" );
453
454 if( s == "round" )
456 else if( s == "flat" )
458}
ECOORD width
Definition: eagle_parser.h:503
int layer
Definition: eagle_parser.h:504
ECOORD x2
Definition: eagle_parser.h:501
opt_int cap
Definition: eagle_parser.h:519
opt_int style
Definition: eagle_parser.h:512
ECOORD y2
Definition: eagle_parser.h:502
ECOORD x1
Definition: eagle_parser.h:499
ECOORD y1
Definition: eagle_parser.h:500
opt_double curve
range is -359.9..359.9
Definition: eagle_parser.h:513

References cap, CONTINUOUS, curve, DASHDOT, FLAT, layer, LONGDASH, ROUND, SHORTDASH, style, width, x1, x2, y1, and y2.

Member Data Documentation

◆ cap

opt_int EWIRE::cap

Definition at line 519 of file eagle_parser.h.

Referenced by EWIRE(), and SCH_EAGLE_PLUGIN::loadSymbolWire().

◆ curve

◆ layer

◆ style

opt_int EWIRE::style

Definition at line 512 of file eagle_parser.h.

Referenced by EWIRE().

◆ width

◆ x1

◆ x2

◆ y1

◆ y2


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