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 781 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 805 of file altium_parser_sch.cpp.

806{
807 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::SHEET_NAME );
808
809 ownerindex = ReadOwnerIndex( aProps );
810 ownerpartid = ReadOwnerPartId( aProps );
811
812 text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
813
814 orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
816
817 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
818 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
819
820 isHidden = ALTIUM_PARSER::ReadBool( aProps, "ISHIDDEN", false );
821}
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:618

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 791 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 789 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 788 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 783 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 784 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_NAME().

◆ text

wxString ASCH_SHEET_NAME::text

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