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< VECTOR2Ipoints
 

Detailed Description

Definition at line 684 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 694 of file altium_parser_sch.cpp.

695{
696 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::WIRE );
697
698 indexinsheet = ALTIUM_PARSER::ReadInt( aProps, "INDEXINSHEET", 0 );
699
700 int locationcount = ALTIUM_PARSER::ReadInt( aProps, "LOCATIONCOUNT", 0 );
701
702 for( int i = 1; i <= locationcount; i++ )
703 {
704 const wxString si = std::to_string( i );
705 points.emplace_back( ReadKiCadUnitFrac( aProps, "X" + si ),
706 -ReadKiCadUnitFrac( aProps, "Y" + si ) );
707 }
708
709 lineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
710}
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
std::vector< VECTOR2I > points

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

Member Data Documentation

◆ indexinsheet

int ASCH_WIRE::indexinsheet

Definition at line 686 of file altium_parser_sch.h.

Referenced by ASCH_WIRE().

◆ lineWidth

int ASCH_WIRE::lineWidth

Definition at line 687 of file altium_parser_sch.h.

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

◆ points

std::vector<VECTOR2I> ASCH_WIRE::points

Definition at line 689 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: