KiCad PCB EDA Suite
ASCH_SHEET_NAME Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
wxString text
 
ASCH_RECORD_ORIENTATION orientation
 
wxPoint location
 
bool isHidden
 

Detailed Description

Definition at line 630 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_SHEET_NAME()

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

Definition at line 657 of file altium_parser_sch.cpp.

658 {
659  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::SHEET_NAME );
660 
661  ownerindex =
662  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERINDEX", ALTIUM_COMPONENT_NONE );
663  ownerpartid = ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", 0 );
664 
665  text = ALTIUM_PARSER::PropertiesReadString( aProperties, "TEXT", "" );
666 
667  orientation = PropertiesReadEnum<ASCH_RECORD_ORIENTATION>(
668  aProperties, "ORIENTATION", 0, 3, ASCH_RECORD_ORIENTATION::RIGHTWARDS );
669 
670  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
671  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
672 
673  isHidden = ALTIUM_PARSER::PropertiesReadBool( aProperties, "ISHIDDEN", false );
674 }
ASCH_RECORD_ORIENTATION orientation
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)
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, location, orientation, ownerindex, ownerpartid, ALTIUM_PARSER::PropertiesReadBool(), ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), ALTIUM_PARSER::PropertiesReadString(), RIGHTWARDS, SHEET_NAME, and text.

Member Data Documentation

◆ isHidden

bool ASCH_SHEET_NAME::isHidden

Definition at line 640 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_NAME(), and SCH_ALTIUM_PLUGIN::ParseSheetName().

◆ location

wxPoint ASCH_SHEET_NAME::location

Definition at line 638 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_NAME(), and SCH_ALTIUM_PLUGIN::ParseSheetName().

◆ orientation

ASCH_RECORD_ORIENTATION ASCH_SHEET_NAME::orientation

Definition at line 637 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_NAME(), and SCH_ALTIUM_PLUGIN::ParseSheetName().

◆ ownerindex

int ASCH_SHEET_NAME::ownerindex

Definition at line 632 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_NAME(), and SCH_ALTIUM_PLUGIN::ParseSheetName().

◆ ownerpartid

int ASCH_SHEET_NAME::ownerpartid

Definition at line 633 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_NAME().

◆ text

wxString ASCH_SHEET_NAME::text

Definition at line 635 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_NAME(), and SCH_ALTIUM_PLUGIN::ParseSheetName().


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