KiCad PCB EDA Suite
ASCH_HARNESS_CONNECTOR Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int OwnerPartID
 
VECTOR2I Location
 
VECTOR2I Size
 
int AreaColor
 
int Color
 
int IndexInSheet
 
int LineWidth
 
int LocationPrimaryConnectionPosition
 

Detailed Description

Definition at line 464 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_HARNESS_CONNECTOR()

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

Definition at line 476 of file altium_parser_sch.cpp.

477{
478 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::HARNESS_CONNECTOR );
479
480 OwnerPartID = ReadOwnerPartId( aProps );
481
482 Location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
483 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
484 Size = VECTOR2I( ReadKiCadUnitFrac( aProps, "XSIZE" ), ReadKiCadUnitFrac( aProps, "YSIZE" ) );
485
486 Color = ALTIUM_PARSER::ReadInt( aProps, "COLOR", 0 );
487 AreaColor = ALTIUM_PARSER::ReadInt( aProps, "AREACOLOR", 0 );
488
489 IndexInSheet = 0;
490 LineWidth = 0;;
492}
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)
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

References AreaColor, Color, HARNESS_CONNECTOR, IndexInSheet, LineWidth, Location, LocationPrimaryConnectionPosition, OwnerPartID, ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerPartId(), ReadRecord(), and Size.

Member Data Documentation

◆ AreaColor

int ASCH_HARNESS_CONNECTOR::AreaColor

◆ Color

int ASCH_HARNESS_CONNECTOR::Color

◆ IndexInSheet

int ASCH_HARNESS_CONNECTOR::IndexInSheet

Definition at line 473 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_CONNECTOR().

◆ LineWidth

int ASCH_HARNESS_CONNECTOR::LineWidth

Definition at line 474 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_CONNECTOR().

◆ Location

VECTOR2I ASCH_HARNESS_CONNECTOR::Location

◆ LocationPrimaryConnectionPosition

int ASCH_HARNESS_CONNECTOR::LocationPrimaryConnectionPosition

Definition at line 477 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_CONNECTOR().

◆ OwnerPartID

int ASCH_HARNESS_CONNECTOR::OwnerPartID

◆ Size

VECTOR2I ASCH_HARNESS_CONNECTOR::Size

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