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

Detailed Description

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

845{
846 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::DESIGNATOR );
847
848 ownerindex = ReadOwnerIndex( aProps );
849 ownerpartid = ReadOwnerPartId( aProps );
850
851 name = ALTIUM_PARSER::ReadString( aProps, "NAME", "" );
852 text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
853
854 justification = ReadEnum<ASCH_LABEL_JUSTIFICATION>( aProps, "JUSTIFICATION", 0, 8,
856
857 orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
859
860 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
861 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
862}
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 wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)
ASCH_LABEL_JUSTIFICATION justification
ASCH_RECORD_ORIENTATION orientation
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

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

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

◆ location

VECTOR2I ASCH_DESIGNATOR::location

Definition at line 825 of file altium_parser_sch.h.

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

◆ name

wxString ASCH_DESIGNATOR::name

Definition at line 820 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR().

◆ orientation

ASCH_RECORD_ORIENTATION ASCH_DESIGNATOR::orientation

Definition at line 823 of file altium_parser_sch.h.

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

◆ ownerindex

int ASCH_DESIGNATOR::ownerindex

Definition at line 817 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_DESIGNATOR::ownerpartid

Definition at line 818 of file altium_parser_sch.h.

Referenced by ASCH_DESIGNATOR().

◆ text

wxString ASCH_DESIGNATOR::text

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