KiCad PCB EDA Suite
ASCH_WIRE Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

 ASCH_WIRE (const std::map< wxString, wxString > &aProps)
 

Public Attributes

int indexinsheet
 
int lineWidth
 
std::vector< wxPoint > points
 

Detailed Description

Definition at line 572 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_WIRE()

ASCH_WIRE::ASCH_WIRE ( const std::map< wxString, wxString > &  aProps)
explicit

Definition at line 538 of file altium_parser_sch.cpp.

539 {
540  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::WIRE );
541 
542  indexinsheet = ALTIUM_PARSER::ReadInt( aProps, "INDEXINSHEET", 0 );
543 
544  int locationcount = ALTIUM_PARSER::ReadInt( aProps, "LOCATIONCOUNT", 0 );
545 
546  for( int i = 1; i <= locationcount; i++ )
547  {
548  const wxString si = std::to_string( i );
549  points.emplace_back( ReadKiCadUnitFrac( aProps, "X" + si ),
550  -ReadKiCadUnitFrac( aProps, "Y" + si ) );
551  }
552 
553  lineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
554 }
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
std::vector< wxPoint > points
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)

References indexinsheet, lineWidth, points, ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadRecord(), and WIRE.

Member Data Documentation

◆ indexinsheet

int ASCH_WIRE::indexinsheet

Definition at line 574 of file altium_parser_sch.h.

Referenced by ASCH_WIRE().

◆ lineWidth

int ASCH_WIRE::lineWidth

Definition at line 575 of file altium_parser_sch.h.

Referenced by ASCH_WIRE(), and SCH_ALTIUM_PLUGIN::ParseWire().

◆ points

std::vector<wxPoint> ASCH_WIRE::points

Definition at line 577 of file altium_parser_sch.h.

Referenced by ASCH_WIRE(), and SCH_ALTIUM_PLUGIN::ParseWire().


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