KiCad PCB EDA Suite
ASCH_PARAMETER Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
wxPoint location
 
ASCH_LABEL_JUSTIFICATION justification
 
ASCH_RECORD_ORIENTATION orientation
 
wxString name
 
wxString text
 
bool isHidden
 
bool isMirrored
 
bool isShowName
 

Detailed Description

Definition at line 747 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_PARAMETER()

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

Definition at line 735 of file altium_parser_sch.cpp.

736 {
737  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::PARAMETER );
738 
739  ownerindex = ReadOwnerIndex( aProps );
740  ownerpartid = ReadOwnerPartId( aProps );
741 
742  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
743  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
744 
745  justification = ReadEnum<ASCH_LABEL_JUSTIFICATION>( aProps, "JUSTIFICATION", 0, 8,
747 
748  orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
750 
751  name = ALTIUM_PARSER::ReadString( aProps, "NAME", "" );
752  text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
753 
754  isHidden = ALTIUM_PARSER::ReadBool( aProps, "ISHIDDEN", false );
755  isMirrored = ALTIUM_PARSER::ReadBool( aProps, "ISMIRRORED", false );
756  isShowName = ALTIUM_PARSER::ReadBool( aProps, "SHOWNAME", false );
757 }
ASCH_RECORD_ORIENTATION orientation
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
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)
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, isHidden, isMirrored, isShowName, justification, location, name, orientation, ownerindex, ownerpartid, PARAMETER, ALTIUM_PARSER::ReadBool(), ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), ReadRecord(), ALTIUM_PARSER::ReadString(), RIGHTWARDS, and text.

Member Data Documentation

◆ isHidden

bool ASCH_PARAMETER::isHidden

Definition at line 759 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ isMirrored

bool ASCH_PARAMETER::isMirrored

Definition at line 760 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER().

◆ isShowName

bool ASCH_PARAMETER::isShowName

Definition at line 761 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER().

◆ justification

ASCH_LABEL_JUSTIFICATION ASCH_PARAMETER::justification

Definition at line 753 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ location

wxPoint ASCH_PARAMETER::location

Definition at line 752 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ name

wxString ASCH_PARAMETER::name

Definition at line 756 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ orientation

ASCH_RECORD_ORIENTATION ASCH_PARAMETER::orientation

Definition at line 754 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ ownerindex

int ASCH_PARAMETER::ownerindex

Definition at line 749 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ ownerpartid

int ASCH_PARAMETER::ownerpartid

Definition at line 750 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().

◆ text

wxString ASCH_PARAMETER::text

Definition at line 757 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER(), and SCH_ALTIUM_PLUGIN::ParseParameter().


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