KiCad PCB EDA Suite
ASCH_DESIGNATOR Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
wxString name
 
wxString text
 
ASCH_RECORD_ORIENTATION orientation
 
ASCH_LABEL_JUSTIFICATION justification
 
wxPoint location
 

Detailed Description

Definition at line 701 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_DESIGNATOR()

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

Definition at line 684 of file altium_parser_sch.cpp.

685 {
686  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::DESIGNATOR );
687 
688  ownerindex = ReadOwnerIndex( aProps );
689  ownerpartid = ReadOwnerPartId( aProps );
690 
691  name = ALTIUM_PARSER::ReadString( aProps, "NAME", "" );
692  text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
693 
694  justification = ReadEnum<ASCH_LABEL_JUSTIFICATION>( aProps, "JUSTIFICATION", 0, 8,
696 
697  orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
699 
700  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
701  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
702 }
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
int ReadOwnerPartId(const std::map< wxString, wxString > &aProperties)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)
ASCH_RECORD_ORIENTATION orientation
static wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)
int ReadOwnerIndex(const std::map< wxString, wxString > &aProperties)
ASCH_LABEL_JUSTIFICATION justification

References BOTTOM_LEFT, DESIGNATOR, justification, location, name, orientation, ownerindex, ownerpartid, ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), ReadRecord(), ALTIUM_PARSER::ReadString(), RIGHTWARDS, and text.

Member Data Documentation

◆ justification

ASCH_LABEL_JUSTIFICATION ASCH_DESIGNATOR::justification

Definition at line 710 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR(), and SCH_ALTIUM_PLUGIN::ParseDesignator().

◆ location

wxPoint ASCH_DESIGNATOR::location

Definition at line 711 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR(), and SCH_ALTIUM_PLUGIN::ParseDesignator().

◆ name

wxString ASCH_DESIGNATOR::name

Definition at line 706 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR().

◆ orientation

ASCH_RECORD_ORIENTATION ASCH_DESIGNATOR::orientation

Definition at line 709 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR(), and SCH_ALTIUM_PLUGIN::ParseDesignator().

◆ ownerindex

int ASCH_DESIGNATOR::ownerindex

Definition at line 703 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR(), and SCH_ALTIUM_PLUGIN::ParseDesignator().

◆ ownerpartid

int ASCH_DESIGNATOR::ownerpartid

Definition at line 704 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR().

◆ text

wxString ASCH_DESIGNATOR::text

Definition at line 707 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR(), and SCH_ALTIUM_PLUGIN::ParseDesignator().


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