KiCad PCB EDA Suite
ASCH_LABEL Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
wxPoint location
 
wxString text
 
int fontId
 
bool isMirrored
 
ASCH_LABEL_JUSTIFICATION justification
 
ASCH_RECORD_ORIENTATION orientation
 

Detailed Description

Definition at line 248 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_LABEL()

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

Definition at line 207 of file altium_parser_sch.cpp.

208 {
209  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::LABEL );
210 
211  ownerindex = ReadOwnerIndex( aProps );
212  ownerpartid = ReadOwnerPartId( aProps );
213 
214  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
215  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
216 
217  text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
218 
219  fontId = ALTIUM_PARSER::ReadInt( aProps, "FONTID", 0 );
220  isMirrored = ALTIUM_PARSER::ReadBool( aProps, "ISMIRRORED", false );
221 
222  justification = ReadEnum<ASCH_LABEL_JUSTIFICATION>( aProps, "JUSTIFICATION", 0, 8,
224 
225  orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
227 }
ASCH_LABEL_JUSTIFICATION justification
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
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)
ASCH_RECORD_ORIENTATION orientation
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 BOTTOM_LEFT, fontId, isMirrored, justification, LABEL, location, orientation, ownerindex, ownerpartid, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), ReadRecord(), ALTIUM_PARSER::ReadString(), RIGHTWARDS, and text.

Member Data Documentation

◆ fontId

int ASCH_LABEL::fontId

Definition at line 257 of file altium_parser_sch.h.

Referenced by ASCH_LABEL(), and SCH_ALTIUM_PLUGIN::ParseLabel().

◆ isMirrored

bool ASCH_LABEL::isMirrored

Definition at line 258 of file altium_parser_sch.h.

Referenced by ASCH_LABEL().

◆ justification

ASCH_LABEL_JUSTIFICATION ASCH_LABEL::justification

Definition at line 260 of file altium_parser_sch.h.

Referenced by ASCH_LABEL(), and SCH_ALTIUM_PLUGIN::ParseLabel().

◆ location

wxPoint ASCH_LABEL::location

Definition at line 253 of file altium_parser_sch.h.

Referenced by ASCH_LABEL(), and SCH_ALTIUM_PLUGIN::ParseLabel().

◆ orientation

ASCH_RECORD_ORIENTATION ASCH_LABEL::orientation

Definition at line 261 of file altium_parser_sch.h.

Referenced by ASCH_LABEL(), and SCH_ALTIUM_PLUGIN::ParseLabel().

◆ ownerindex

int ASCH_LABEL::ownerindex

Definition at line 250 of file altium_parser_sch.h.

Referenced by ASCH_LABEL(), and SCH_ALTIUM_PLUGIN::ParseLabel().

◆ ownerpartid

int ASCH_LABEL::ownerpartid

Definition at line 251 of file altium_parser_sch.h.

Referenced by ASCH_LABEL(), and SCH_ALTIUM_PLUGIN::ParseLabel().

◆ text

wxString ASCH_LABEL::text

Definition at line 255 of file altium_parser_sch.h.

Referenced by ASCH_LABEL(), and SCH_ALTIUM_PLUGIN::ParseLabel().


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