KiCad PCB EDA Suite
ASCH_NET_LABEL Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

 ASCH_NET_LABEL (const std::map< wxString, wxString > &aProperties)
 

Public Attributes

wxString text
 
wxPoint location
 
ASCH_RECORD_ORIENTATION orientation
 

Detailed Description

Definition at line 510 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_NET_LABEL()

ASCH_NET_LABEL::ASCH_NET_LABEL ( const std::map< wxString, wxString > &  aProperties)
explicit

Definition at line 490 of file altium_parser_sch.cpp.

491 {
492  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::NET_LABEL );
493 
494  text = ALTIUM_PARSER::PropertiesReadString( aProperties, "TEXT", "" );
495 
496  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
497  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
498 
499  orientation = PropertiesReadEnum<ASCH_RECORD_ORIENTATION>(
500  aProperties, "ORIENTATION", 0, 3, ASCH_RECORD_ORIENTATION::RIGHTWARDS );
501 }
ASCH_RECORD_ORIENTATION orientation
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
static wxString PropertiesReadString(const std::map< wxString, wxString > &aProperties, const wxString &aKey, const wxString &aDefault)

References location, NET_LABEL, orientation, PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), ALTIUM_PARSER::PropertiesReadString(), RIGHTWARDS, and text.

Member Data Documentation

◆ location

wxPoint ASCH_NET_LABEL::location

Definition at line 514 of file altium_parser_sch.h.

Referenced by ASCH_NET_LABEL(), and SCH_ALTIUM_PLUGIN::ParseNetLabel().

◆ orientation

ASCH_RECORD_ORIENTATION ASCH_NET_LABEL::orientation

Definition at line 516 of file altium_parser_sch.h.

Referenced by ASCH_NET_LABEL(), and SCH_ALTIUM_PLUGIN::ParseNetLabel().

◆ text

wxString ASCH_NET_LABEL::text

Definition at line 512 of file altium_parser_sch.h.

Referenced by ASCH_NET_LABEL(), and SCH_ALTIUM_PLUGIN::ParseNetLabel().


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