KiCad PCB EDA Suite
ASCH_SIGNAL_HARNESS Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int OwnerPartID
 
VECTOR2I Point1
 
VECTOR2I Point2
 
std::vector< VECTOR2IPoints
 
int Color
 
int IndexInSheet
 
int LineWidth
 

Detailed Description

Definition at line 447 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_SIGNAL_HARNESS()

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

Definition at line 454 of file altium_parser_sch.cpp.

455{
456 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::SIGNAL_HARNESS );
457
458 OwnerPartID = ReadOwnerPartId( aProps );
459
460 int locationCount = ALTIUM_PARSER::ReadInt( aProps, "LOCATIONCOUNT", 0 );
461
462 for( int i = 1; i <= locationCount; i++ )
463 {
464 const wxString si = std::to_string( i );
465 Points.emplace_back( ReadKiCadUnitFrac( aProps, "X" + si ),
466 -ReadKiCadUnitFrac( aProps, "Y" + si ) );
467 }
468
469 IndexInSheet = ALTIUM_PARSER::ReadInt( aProps, "INDEXINSHEET", 0 );
470
471 Color = ALTIUM_PARSER::ReadInt( aProps, "COLOR", 0 );
472 LineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
473}
int ReadOwnerPartId(const std::map< wxString, wxString > &aProperties)
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 Color, IndexInSheet, LineWidth, OwnerPartID, Points, ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerPartId(), ReadRecord(), and SIGNAL_HARNESS.

Member Data Documentation

◆ Color

int ASCH_SIGNAL_HARNESS::Color

◆ IndexInSheet

int ASCH_SIGNAL_HARNESS::IndexInSheet

Definition at line 457 of file altium_parser_sch.h.

Referenced by ASCH_SIGNAL_HARNESS().

◆ LineWidth

int ASCH_SIGNAL_HARNESS::LineWidth

◆ OwnerPartID

int ASCH_SIGNAL_HARNESS::OwnerPartID

◆ Point1

VECTOR2I ASCH_SIGNAL_HARNESS::Point1

Definition at line 451 of file altium_parser_sch.h.

◆ Point2

VECTOR2I ASCH_SIGNAL_HARNESS::Point2

Definition at line 452 of file altium_parser_sch.h.

◆ Points

std::vector<VECTOR2I> ASCH_SIGNAL_HARNESS::Points

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