KiCad PCB EDA Suite
ASCH_POWER_PORT Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

 ASCH_POWER_PORT (const std::map< wxString, wxString > &aProperties)
 

Public Attributes

int ownerpartid
 
wxString text
 
bool showNetName
 
wxPoint location
 
ASCH_RECORD_ORIENTATION orientation
 
ASCH_POWER_PORT_STYLE style
 

Detailed Description

Definition at line 467 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_POWER_PORT()

ASCH_POWER_PORT::ASCH_POWER_PORT ( const std::map< wxString, wxString > &  aProperties)
explicit

Definition at line 437 of file altium_parser_sch.cpp.

438 {
439  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::POWER_PORT );
440 
441  ownerpartid =
442  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", ALTIUM_COMPONENT_NONE );
443 
444  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
445  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
446  orientation = PropertiesReadEnum<ASCH_RECORD_ORIENTATION>(
447  aProperties, "ORIENTATION", 0, 3, ASCH_RECORD_ORIENTATION::RIGHTWARDS );
448 
449  text = ALTIUM_PARSER::PropertiesReadString( aProperties, "TEXT", "" );
450  showNetName = ALTIUM_PARSER::PropertiesReadBool( aProperties, "SHOWNETNAME", true );
451 
452  style = PropertiesReadEnum<ASCH_POWER_PORT_STYLE>(
453  aProperties, "STYLE", 0, 10, ASCH_POWER_PORT_STYLE::CIRCLE );
454 }
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
static bool PropertiesReadBool(const std::map< wxString, wxString > &aProperties, const wxString &aKey, bool aDefault)
ASCH_POWER_PORT_STYLE style
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
ASCH_RECORD_ORIENTATION orientation
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
const int ALTIUM_COMPONENT_NONE
static wxString PropertiesReadString(const std::map< wxString, wxString > &aProperties, const wxString &aKey, const wxString &aDefault)

References ALTIUM_COMPONENT_NONE, CIRCLE, location, orientation, ownerpartid, POWER_PORT, ALTIUM_PARSER::PropertiesReadBool(), ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), ALTIUM_PARSER::PropertiesReadString(), RIGHTWARDS, showNetName, style, and text.

Member Data Documentation

◆ location

wxPoint ASCH_POWER_PORT::location

Definition at line 474 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT(), and SCH_ALTIUM_PLUGIN::ParsePowerPort().

◆ orientation

ASCH_RECORD_ORIENTATION ASCH_POWER_PORT::orientation

Definition at line 475 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT(), and SCH_ALTIUM_PLUGIN::ParsePowerPort().

◆ ownerpartid

int ASCH_POWER_PORT::ownerpartid

Definition at line 469 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT().

◆ showNetName

bool ASCH_POWER_PORT::showNetName

Definition at line 472 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT().

◆ style

ASCH_POWER_PORT_STYLE ASCH_POWER_PORT::style

Definition at line 476 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT(), and SCH_ALTIUM_PLUGIN::ParsePowerPort().

◆ text

wxString ASCH_POWER_PORT::text

Definition at line 471 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT(), and SCH_ALTIUM_PLUGIN::ParsePowerPort().


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