KiCad PCB EDA Suite
ASCH_HARNESS_TYPE Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int OwnerPartID
 
int Color
 
int IndexInSheet
 
int FontID
 
bool IsHidden
 
bool OwnerIndexAdditionalList
 
VECTOR2I Location
 
wxString Text
 

Detailed Description

Definition at line 509 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_HARNESS_TYPE()

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

Definition at line 523 of file altium_parser_sch.cpp.

524{
525 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::HARNESS_TYPE );
526
527 //ownerindex = ReadOwnerIndex( aProps ); // use SCH_ALTIUM_PLUGIN::m_harnessEntryParent instead!
528 OwnerPartID = ReadOwnerPartId( aProps );
529
530 Text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
531
532 Location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
533 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
534
535 IsHidden = ALTIUM_PARSER::ReadBool( aProps, "ISHIDDEN", false );
536 OwnerIndexAdditionalList = ALTIUM_PARSER::ReadBool( aProps, "OWNERINDEXADDITIONALLIST", true );
537
538 IndexInSheet = ALTIUM_PARSER::ReadInt( aProps, "INDEXINSHEET", 0 );
539 Color = ALTIUM_PARSER::ReadInt( aProps, "COLOR", 0 );
540 FontID = ALTIUM_PARSER::ReadInt( aProps, "TEXTFONTID", 0 );
541}
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)
static wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

References Color, FontID, HARNESS_TYPE, IndexInSheet, IsHidden, Location, OwnerIndexAdditionalList, OwnerPartID, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerPartId(), ReadRecord(), ALTIUM_PARSER::ReadString(), and Text.

Member Data Documentation

◆ Color

int ASCH_HARNESS_TYPE::Color

Definition at line 514 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_TYPE(), and SCH_ALTIUM_PLUGIN::ParseHarnessType().

◆ FontID

int ASCH_HARNESS_TYPE::FontID

Definition at line 516 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_TYPE().

◆ IndexInSheet

int ASCH_HARNESS_TYPE::IndexInSheet

Definition at line 515 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_TYPE().

◆ IsHidden

bool ASCH_HARNESS_TYPE::IsHidden

Definition at line 518 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_TYPE().

◆ Location

VECTOR2I ASCH_HARNESS_TYPE::Location

Definition at line 521 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_TYPE(), and SCH_ALTIUM_PLUGIN::ParseHarnessType().

◆ OwnerIndexAdditionalList

bool ASCH_HARNESS_TYPE::OwnerIndexAdditionalList

Definition at line 519 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_TYPE().

◆ OwnerPartID

int ASCH_HARNESS_TYPE::OwnerPartID

Definition at line 512 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_TYPE().

◆ Text

wxString ASCH_HARNESS_TYPE::Text

Definition at line 523 of file altium_parser_sch.h.

Referenced by ASCH_HARNESS_TYPE(), and SCH_ALTIUM_PLUGIN::ParseHarnessType().


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