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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
CONTINUOUS 
LONGDASH 
SHORTDASH 
DASHDOT 

Definition at line 509 of file eagle_parser.h.

◆ anonymous enum

anonymous enum
Enumerator
FLAT 
ROUND 

Definition at line 519 of file eagle_parser.h.

519  {
520  FLAT,
521  ROUND,
522  };

Constructor & Destructor Documentation

◆ EWIRE()

EWIRE::EWIRE ( wxXmlNode *  aWire)

Definition at line 316 of file eagle_parser.cpp.

317 {
318  /*
319  <!ELEMENT wire EMPTY>
320  <!ATTLIST wire
321  x1 %Coord; #REQUIRED
322  y1 %Coord; #REQUIRED
323  x2 %Coord; #REQUIRED
324  y2 %Coord; #REQUIRED
325  width %Dimension; #REQUIRED
326  layer %Layer; #REQUIRED
327  extent %Extent; #IMPLIED -- only applicable for airwires --
328  style %WireStyle; "continuous"
329  curve %WireCurve; "0"
330  cap %WireCap; "round" -- only applicable if 'curve' is not zero --
331  >
332  */
333 
334  x1 = parseRequiredAttribute<ECOORD>( aWire, "x1" );
335  y1 = parseRequiredAttribute<ECOORD>( aWire, "y1" );
336  x2 = parseRequiredAttribute<ECOORD>( aWire, "x2" );
337  y2 = parseRequiredAttribute<ECOORD>( aWire, "y2" );
338  width = parseRequiredAttribute<ECOORD>( aWire, "width" );
339  layer = parseRequiredAttribute<int>( aWire, "layer" );
340  curve = parseOptionalAttribute<double>( aWire, "curve" );
341 
342  opt_wxString s = parseOptionalAttribute<wxString>( aWire, "style" );
343 
344  if( s == "continuous" )
346  else if( s == "longdash" )
348  else if( s == "shortdash" )
350  else if( s == "dashdot" )
352 
353  s = parseOptionalAttribute<wxString>( aWire, "cap" );
354 
355  if( s == "round" )
356  cap = EWIRE::ROUND;
357  else if( s == "flat" )
358  cap = EWIRE::FLAT;
359 }
opt_double curve
range is -359.9..359.9
Definition: eagle_parser.h:516
opt_int cap
Definition: eagle_parser.h:523
ECOORD width
Definition: eagle_parser.h:505
ECOORD y1
Definition: eagle_parser.h:502
opt_int style
Definition: eagle_parser.h:515
LAYER_NUM layer
Definition: eagle_parser.h:506
ECOORD y2
Definition: eagle_parser.h:504
ECOORD x1
Definition: eagle_parser.h:501
ECOORD x2
Definition: eagle_parser.h:503

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

Referenced by EWIRE().

◆ curve

opt_double EWIRE::curve

range is -359.9..359.9

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

Referenced by EWIRE().

◆ width

◆ x1

◆ x2

◆ y1

◆ y2


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