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
 
VECTOR2I location
 
wxString text
 
int fontId
 
bool isMirrored
 
ASCH_LABEL_JUSTIFICATION justification
 
ASCH_RECORD_ORIENTATION orientation
 

Detailed Description

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

230{
231 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::LABEL );
232
233 ownerindex = ReadOwnerIndex( aProps );
234 ownerpartid = ReadOwnerPartId( aProps );
235
236 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
237 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
238
239 text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
240
241 fontId = ALTIUM_PARSER::ReadInt( aProps, "FONTID", 0 );
242 isMirrored = ALTIUM_PARSER::ReadBool( aProps, "ISMIRRORED", false );
243
244 justification = ReadEnum<ASCH_LABEL_JUSTIFICATION>( aProps, "JUSTIFICATION", 0, 8,
246
247 orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
249}
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 int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
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
VECTOR2I location
ASCH_LABEL_JUSTIFICATION justification
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

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

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

◆ isMirrored

bool ASCH_LABEL::isMirrored

Definition at line 283 of file altium_parser_sch.h.

Referenced by ASCH_LABEL().

◆ justification

ASCH_LABEL_JUSTIFICATION ASCH_LABEL::justification

Definition at line 285 of file altium_parser_sch.h.

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

◆ location

VECTOR2I ASCH_LABEL::location

Definition at line 278 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 286 of file altium_parser_sch.h.

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

◆ ownerindex

int ASCH_LABEL::ownerindex

Definition at line 275 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_LABEL::ownerpartid

Definition at line 276 of file altium_parser_sch.h.

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

◆ text

wxString ASCH_LABEL::text

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