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

Public Attributes

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

Detailed Description

Definition at line 669 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_SHEET_NAME()

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

Definition at line 646 of file altium_parser_sch.cpp.

647 {
648  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::SHEET_NAME );
649 
650  ownerindex = ReadOwnerIndex( aProps );
651  ownerpartid = ReadOwnerPartId( aProps );
652 
653  text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
654 
655  orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
657 
658  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
659  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
660 
661  isHidden = ALTIUM_PARSER::ReadBool( aProps, "ISHIDDEN", false );
662 }
ASCH_RECORD_ORIENTATION orientation
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
int ReadOwnerPartId(const std::map< wxString, wxString > &aProperties)
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)
int ReadOwnerIndex(const std::map< wxString, wxString > &aProperties)

References isHidden, location, orientation, ownerindex, ownerpartid, ALTIUM_PARSER::ReadBool(), ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), ReadRecord(), ALTIUM_PARSER::ReadString(), RIGHTWARDS, SHEET_NAME, and text.

Member Data Documentation

◆ isHidden

bool ASCH_SHEET_NAME::isHidden

Definition at line 679 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 677 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 676 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 671 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 672 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_NAME().

◆ text

wxString ASCH_SHEET_NAME::text

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