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
 
VECTOR2I location
 
ASCH_LABEL_JUSTIFICATION justification
 
ASCH_RECORD_ORIENTATION orientation
 
wxString name
 
wxString text
 
bool isHidden
 
bool isMirrored
 
bool isShowName
 

Detailed Description

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

897{
898 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::PARAMETER );
899
900 ownerindex = ReadOwnerIndex( aProps );
901 ownerpartid = ReadOwnerPartId( aProps );
902
903 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
904 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
905
906 justification = ReadEnum<ASCH_LABEL_JUSTIFICATION>( aProps, "JUSTIFICATION", 0, 8,
908
909 orientation = ReadEnum<ASCH_RECORD_ORIENTATION>( aProps, "ORIENTATION", 0, 3,
911
912 name = ALTIUM_PARSER::ReadString( aProps, "NAME", "" );
913 text = ALTIUM_PARSER::ReadString( aProps, "TEXT", "" );
914
915 isHidden = ALTIUM_PARSER::ReadBool( aProps, "ISHIDDEN", false );
916 isMirrored = ALTIUM_PARSER::ReadBool( aProps, "ISMIRRORED", false );
917 isShowName = ALTIUM_PARSER::ReadBool( aProps, "SHOWNAME", false );
918}
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)
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
ASCH_RECORD_ORIENTATION orientation
ASCH_LABEL_JUSTIFICATION justification
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

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

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

◆ isMirrored

bool ASCH_PARAMETER::isMirrored

Definition at line 874 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER().

◆ isShowName

bool ASCH_PARAMETER::isShowName

Definition at line 875 of file altium_parser_sch.h.

Referenced by ASCH_PARAMETER().

◆ justification

ASCH_LABEL_JUSTIFICATION ASCH_PARAMETER::justification

Definition at line 867 of file altium_parser_sch.h.

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

◆ location

VECTOR2I ASCH_PARAMETER::location

Definition at line 866 of file altium_parser_sch.h.

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

◆ name

wxString ASCH_PARAMETER::name

Definition at line 870 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 868 of file altium_parser_sch.h.

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

◆ ownerindex

int ASCH_PARAMETER::ownerindex

Definition at line 863 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_PARAMETER::ownerpartid

Definition at line 864 of file altium_parser_sch.h.

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

◆ text

wxString ASCH_PARAMETER::text

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