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 > &aProps)
 

Public Attributes

wxString text
 
wxPoint location
 
ASCH_RECORD_ORIENTATION orientation
 

Detailed Description

Definition at line 549 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_NET_LABEL()

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

Definition at line 505 of file altium_parser_sch.cpp.

506 {
507  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::NET_LABEL );
508 
509  text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
510 
511  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
512  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
513 
514  orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
516 }
ASCH_RECORD_ORIENTATION orientation
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)

References location, NET_LABEL, orientation, ReadKiCadUnitFrac(), ReadRecord(), ALTIUM_PARSER::ReadString(), RIGHTWARDS, and text.

Member Data Documentation

◆ location

wxPoint ASCH_NET_LABEL::location

Definition at line 553 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 555 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 551 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: