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 > &aProps)
 

Public Attributes

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

Detailed Description

Definition at line 611 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_POWER_PORT()

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

Definition at line 601 of file altium_parser_sch.cpp.

602{
603 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::POWER_PORT );
604
605 ownerpartid = ReadOwnerPartId( aProps );
606
607 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
608 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
609
610 orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
612
613 text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
614 showNetName = ALTIUM_PARSER::ReadBool( aProps, "SHOWNETNAME", true );
615
616 style = ReadEnum<ASCH_POWER_PORT_STYLE>( aProps, "STYLE", 0, 10,
618}
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 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)
ASCH_POWER_PORT_STYLE style
ASCH_RECORD_ORIENTATION orientation
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

References CIRCLE, location, orientation, ownerpartid, POWER_PORT, ALTIUM_PARSER::ReadBool(), ReadKiCadUnitFrac(), ReadOwnerPartId(), ReadRecord(), ALTIUM_PARSER::ReadString(), RIGHTWARDS, showNetName, style, and text.

Member Data Documentation

◆ location

VECTOR2I ASCH_POWER_PORT::location

Definition at line 618 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 619 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 613 of file altium_parser_sch.h.

Referenced by ASCH_POWER_PORT().

◆ showNetName

bool ASCH_POWER_PORT::showNetName

Definition at line 616 of file altium_parser_sch.h.

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

◆ style

ASCH_POWER_PORT_STYLE ASCH_POWER_PORT::style

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