KiCad PCB EDA Suite
ASCH_PARAMETER Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
wxPoint location
 
ASCH_RECORD_ORIENTATION orientation
 
wxString name
 
wxString text
 
bool isHidden
 
bool isMirrored
 
bool isShowName
 

Detailed Description

Definition at line 686 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_PARAMETER()

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

Definition at line 727 of file altium_parser_sch.cpp.

728 {
729  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::PARAMETER );
730 
731  ownerindex =
732  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERINDEX", ALTIUM_COMPONENT_NONE );
733  ownerpartid = ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", 0 );
734 
735  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
736  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
737 
738  orientation = PropertiesReadEnum<ASCH_RECORD_ORIENTATION>(
739  aProperties, "ORIENTATION", 0, 3, ASCH_RECORD_ORIENTATION::RIGHTWARDS );
740 
741  name = ALTIUM_PARSER::PropertiesReadString( aProperties, "NAME", "" );
742  text = ALTIUM_PARSER::PropertiesReadString( aProperties, "TEXT", "" );
743 
744  isHidden = ALTIUM_PARSER::PropertiesReadBool( aProperties, "ISHIDDEN", false );
745  isMirrored = ALTIUM_PARSER::PropertiesReadBool( aProperties, "ISMIRRORED", false );
746  isShowName = ALTIUM_PARSER::PropertiesReadBool( aProperties, "SHOWNAME", false );
747 }
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_RECORD_ORIENTATION orientation
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
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, isHidden, isMirrored, isShowName, location, name, orientation, ownerindex, ownerpartid, PARAMETER, ALTIUM_PARSER::PropertiesReadBool(), ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), ALTIUM_PARSER::PropertiesReadString(), RIGHTWARDS, and text.

Member Data Documentation

◆ isHidden

bool ASCH_PARAMETER::isHidden

Definition at line 697 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ isMirrored

bool ASCH_PARAMETER::isMirrored

Definition at line 698 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER().

◆ isShowName

bool ASCH_PARAMETER::isShowName

Definition at line 699 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER().

◆ location

wxPoint ASCH_PARAMETER::location

Definition at line 691 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ name

wxString ASCH_PARAMETER::name

Definition at line 694 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ orientation

ASCH_RECORD_ORIENTATION ASCH_PARAMETER::orientation

Definition at line 692 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ ownerindex

int ASCH_PARAMETER::ownerindex

Definition at line 688 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ ownerpartid

int ASCH_PARAMETER::ownerpartid

Definition at line 689 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ text

wxString ASCH_PARAMETER::text

Definition at line 695 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().


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