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

Member Enumeration Documentation

anonymous enum
Enumerator
CONTINUOUS 
LONGDASH 
SHORTDASH 
DASHDOT 

Definition at line 507 of file eagle_parser.h.

anonymous enum
Enumerator
FLAT 
ROUND 

Definition at line 517 of file eagle_parser.h.

517  {
518  FLAT,
519  ROUND,
520  };

Constructor & Destructor Documentation

EWIRE::EWIRE ( wxXmlNode *  aWire)

Definition at line 326 of file eagle_parser.cpp.

References CONTINUOUS, DASHDOT, FLAT, LONGDASH, ROUND, and SHORTDASH.

327 {
328  /*
329  <!ELEMENT wire EMPTY>
330  <!ATTLIST wire
331  x1 %Coord; #REQUIRED
332  y1 %Coord; #REQUIRED
333  x2 %Coord; #REQUIRED
334  y2 %Coord; #REQUIRED
335  width %Dimension; #REQUIRED
336  layer %Layer; #REQUIRED
337  extent %Extent; #IMPLIED -- only applicable for airwires --
338  style %WireStyle; "continuous"
339  curve %WireCurve; "0"
340  cap %WireCap; "round" -- only applicable if 'curve' is not zero --
341  >
342  */
343 
344  x1 = parseRequiredAttribute<ECOORD>( aWire, "x1" );
345  y1 = parseRequiredAttribute<ECOORD>( aWire, "y1" );
346  x2 = parseRequiredAttribute<ECOORD>( aWire, "x2" );
347  y2 = parseRequiredAttribute<ECOORD>( aWire, "y2" );
348  width = parseRequiredAttribute<ECOORD>( aWire, "width" );
349  layer = parseRequiredAttribute<int>( aWire, "layer" );
350  curve = parseOptionalAttribute<double>( aWire, "curve" );
351 
352  opt_wxString s = parseOptionalAttribute<wxString>( aWire, "style" );
353 
354  if( s == "continuous" )
356  else if( s == "longdash" )
358  else if( s == "shortdash" )
360  else if( s == "dashdot" )
362 
363  s = parseOptionalAttribute<wxString>( aWire, "cap" );
364 
365  if( s == "round" )
366  cap = EWIRE::ROUND;
367  else if( s == "flat" )
368  cap = EWIRE::FLAT;
369 }
opt_double curve
range is -359.9..359.9
Definition: eagle_parser.h:514
opt_int cap
Definition: eagle_parser.h:521
ECOORD width
Definition: eagle_parser.h:503
ECOORD y1
Definition: eagle_parser.h:500
opt_int style
Definition: eagle_parser.h:513
LAYER_NUM layer
Definition: eagle_parser.h:504
ECOORD y2
Definition: eagle_parser.h:502
ECOORD x1
Definition: eagle_parser.h:499
ECOORD x2
Definition: eagle_parser.h:501

Member Data Documentation

opt_int EWIRE::cap

Definition at line 521 of file eagle_parser.h.

opt_double EWIRE::curve

range is -359.9..359.9

Definition at line 514 of file eagle_parser.h.

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

opt_int EWIRE::style

Definition at line 513 of file eagle_parser.h.

ECOORD EWIRE::width

Definition at line 503 of file eagle_parser.h.

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


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