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
 
LAYER_NUM layer
 
opt_int style
 
opt_double curve
 range is -359.9..359.9 More...
 
opt_int cap
 

Detailed Description

Eagle wire.

Definition at line 505 of file eagle_parser.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
CONTINUOUS 
LONGDASH 
SHORTDASH 
DASHDOT 

Definition at line 515 of file eagle_parser.h.

◆ anonymous enum

anonymous enum
Enumerator
FLAT 
ROUND 

Definition at line 525 of file eagle_parser.h.

525  {
526  FLAT,
527  ROUND,
528  };

Constructor & Destructor Documentation

◆ EWIRE()

EWIRE::EWIRE ( wxXmlNode *  aWire)

Definition at line 333 of file eagle_parser.cpp.

334 {
335  /*
336  <!ELEMENT wire EMPTY>
337  <!ATTLIST wire
338  x1 %Coord; #REQUIRED
339  y1 %Coord; #REQUIRED
340  x2 %Coord; #REQUIRED
341  y2 %Coord; #REQUIRED
342  width %Dimension; #REQUIRED
343  layer %Layer; #REQUIRED
344  extent %Extent; #IMPLIED -- only applicable for airwires --
345  style %WireStyle; "continuous"
346  curve %WireCurve; "0"
347  cap %WireCap; "round" -- only applicable if 'curve' is not zero --
348  >
349  */
350 
351  x1 = parseRequiredAttribute<ECOORD>( aWire, "x1" );
352  y1 = parseRequiredAttribute<ECOORD>( aWire, "y1" );
353  x2 = parseRequiredAttribute<ECOORD>( aWire, "x2" );
354  y2 = parseRequiredAttribute<ECOORD>( aWire, "y2" );
355  width = parseRequiredAttribute<ECOORD>( aWire, "width" );
356  layer = parseRequiredAttribute<int>( aWire, "layer" );
357  curve = parseOptionalAttribute<double>( aWire, "curve" );
358 
359  opt_wxString s = parseOptionalAttribute<wxString>( aWire, "style" );
360 
361  if( s == "continuous" )
363  else if( s == "longdash" )
365  else if( s == "shortdash" )
367  else if( s == "dashdot" )
369 
370  s = parseOptionalAttribute<wxString>( aWire, "cap" );
371 
372  if( s == "round" )
373  cap = EWIRE::ROUND;
374  else if( s == "flat" )
375  cap = EWIRE::FLAT;
376 }
opt_double curve
range is -359.9..359.9
Definition: eagle_parser.h:522
opt_int cap
Definition: eagle_parser.h:529
ECOORD width
Definition: eagle_parser.h:511
ECOORD y1
Definition: eagle_parser.h:508
opt_int style
Definition: eagle_parser.h:521
LAYER_NUM layer
Definition: eagle_parser.h:512
ECOORD y2
Definition: eagle_parser.h:510
ECOORD x1
Definition: eagle_parser.h:507
ECOORD x2
Definition: eagle_parser.h:509

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

Referenced by EWIRE().

◆ curve

opt_double EWIRE::curve

range is -359.9..359.9

Definition at line 522 of file eagle_parser.h.

Referenced by EWIRE(), EAGLE_PLUGIN::loadPlain(), EAGLE_PLUGIN::loadSignals(), and EAGLE_PLUGIN::packageWire().

◆ layer

◆ style

opt_int EWIRE::style

Definition at line 521 of file eagle_parser.h.

Referenced by EWIRE().

◆ width

◆ x1

◆ x2

◆ y1

◆ y2


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