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
 
VECTOR2I location
 
ASCH_RECORD_ORIENTATION orientation
 

Detailed Description

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

662{
663 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::NET_LABEL );
664
665 text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
666
667 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
668 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
669
670 orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
672}
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)
ASCH_RECORD_ORIENTATION orientation
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

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

Member Data Documentation

◆ location

VECTOR2I ASCH_NET_LABEL::location

Definition at line 665 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 667 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 663 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: