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
 
VECTOR2I location
 
bool isHidden
 

Detailed Description

Definition at line 783 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 806 of file altium_parser_sch.cpp.

807{
808 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::SHEET_NAME );
809
810 ownerindex = ReadOwnerIndex( aProps );
811 ownerpartid = ReadOwnerPartId( aProps );
812
813 text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
814
815 orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
817
818 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
819 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
820
821 isHidden = ALTIUM_PARSER::ReadBool( aProps, "ISHIDDEN", false );
822}
int ReadOwnerPartId(const std::map< wxString, wxString > &aProperties)
int ReadOwnerIndex(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_RECORD_ORIENTATION orientation
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

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 793 of file altium_parser_sch.h.

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

◆ location

VECTOR2I ASCH_SHEET_NAME::location

Definition at line 791 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 790 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 785 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 786 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_NAME().

◆ text

wxString ASCH_SHEET_NAME::text

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