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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
FLAT 
ROUND 

Definition at line 511 of file eagle_parser.h.

511  {
512  FLAT,
513  ROUND,
514  };

◆ anonymous enum

anonymous enum
Enumerator
CONTINUOUS 
LONGDASH 
SHORTDASH 
DASHDOT 

Definition at line 501 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ EWIRE()

EWIRE::EWIRE ( wxXmlNode *  aWire)

Definition at line 323 of file eagle_parser.cpp.

324 {
325  /*
326  <!ELEMENT wire EMPTY>
327  <!ATTLIST wire
328  x1 %Coord; #REQUIRED
329  y1 %Coord; #REQUIRED
330  x2 %Coord; #REQUIRED
331  y2 %Coord; #REQUIRED
332  width %Dimension; #REQUIRED
333  layer %Layer; #REQUIRED
334  extent %Extent; #IMPLIED -- only applicable for airwires --
335  style %WireStyle; "continuous"
336  curve %WireCurve; "0"
337  cap %WireCap; "round" -- only applicable if 'curve' is not zero --
338  >
339  */
340 
341  x1 = parseRequiredAttribute<ECOORD>( aWire, "x1" );
342  y1 = parseRequiredAttribute<ECOORD>( aWire, "y1" );
343  x2 = parseRequiredAttribute<ECOORD>( aWire, "x2" );
344  y2 = parseRequiredAttribute<ECOORD>( aWire, "y2" );
345  width = parseRequiredAttribute<ECOORD>( aWire, "width" );
346  layer = parseRequiredAttribute<int>( aWire, "layer" );
347  curve = parseOptionalAttribute<double>( aWire, "curve" );
348 
349  opt_wxString s = parseOptionalAttribute<wxString>( aWire, "style" );
350 
351  if( s == "continuous" )
353  else if( s == "longdash" )
355  else if( s == "shortdash" )
357  else if( s == "dashdot" )
359 
360  s = parseOptionalAttribute<wxString>( aWire, "cap" );
361 
362  if( s == "round" )
363  cap = EWIRE::ROUND;
364  else if( s == "flat" )
365  cap = EWIRE::FLAT;
366 }
opt_double curve
range is -359.9..359.9
Definition: eagle_parser.h:508
opt_int cap
Definition: eagle_parser.h:515
ECOORD width
Definition: eagle_parser.h:497
ECOORD y1
Definition: eagle_parser.h:494
opt_int style
Definition: eagle_parser.h:507
LAYER_NUM layer
Definition: eagle_parser.h:498
ECOORD y2
Definition: eagle_parser.h:496
ECOORD x1
Definition: eagle_parser.h:493
ECOORD x2
Definition: eagle_parser.h:495

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

Referenced by EWIRE().

◆ curve

opt_double EWIRE::curve

range is -359.9..359.9

Definition at line 508 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 507 of file eagle_parser.h.

Referenced by EWIRE().

◆ width

◆ x1

◆ x2

◆ y1

◆ y2


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