KiCad PCB EDA Suite
ASCH_DESIGNATOR Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
wxString name
 
wxString text
 
ASCH_RECORD_ORIENTATION orientation
 
wxPoint location
 

Detailed Description

Definition at line 662 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_DESIGNATOR()

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

Definition at line 697 of file altium_parser_sch.cpp.

698 {
699  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::DESIGNATOR );
700 
701  ownerindex =
702  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERINDEX", ALTIUM_COMPONENT_NONE );
703  ownerpartid = ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", 0 );
704 
705  name = ALTIUM_PARSER::PropertiesReadString( aProperties, "NAME", "" );
706  text = ALTIUM_PARSER::PropertiesReadString( aProperties, "TEXT", "" );
707 
708  orientation = PropertiesReadEnum<ASCH_RECORD_ORIENTATION>(
709  aProperties, "ORIENTATION", 0, 3, ASCH_RECORD_ORIENTATION::RIGHTWARDS );
710 
711  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
712  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
713 }
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
ASCH_RECORD_ORIENTATION orientation
const int ALTIUM_COMPONENT_NONE
static wxString PropertiesReadString(const std::map< wxString, wxString > &aProperties, const wxString &aKey, const wxString &aDefault)

References ALTIUM_COMPONENT_NONE, DESIGNATOR, location, name, orientation, ownerindex, ownerpartid, ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), ALTIUM_PARSER::PropertiesReadString(), RIGHTWARDS, and text.

Member Data Documentation

◆ location

wxPoint ASCH_DESIGNATOR::location

Definition at line 671 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR(), and SCH_ALTIUM_PLUGIN::ParseDesignator().

◆ name

wxString ASCH_DESIGNATOR::name

Definition at line 667 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR().

◆ orientation

ASCH_RECORD_ORIENTATION ASCH_DESIGNATOR::orientation

Definition at line 670 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR(), and SCH_ALTIUM_PLUGIN::ParseDesignator().

◆ ownerindex

int ASCH_DESIGNATOR::ownerindex

Definition at line 664 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR(), and SCH_ALTIUM_PLUGIN::ParseDesignator().

◆ ownerpartid

int ASCH_DESIGNATOR::ownerpartid

Definition at line 665 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR().

◆ text

wxString ASCH_DESIGNATOR::text

Definition at line 668 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR(), and SCH_ALTIUM_PLUGIN::ParseDesignator().


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