KiCad PCB EDA Suite
ASCH_SHEET_SYMBOL Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

VECTOR2I location
 
wxSize size
 
bool isSolid
 
int color
 
int areacolor
 

Detailed Description

Definition at line 539 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_SHEET_SYMBOL()

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

Definition at line 566 of file altium_parser_sch.cpp.

567{
568 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::SHEET_SYMBOL );
569
570 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
571 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
572 size = wxSize( ReadKiCadUnitFrac( aProps, "XSIZE" ),
573 ReadKiCadUnitFrac( aProps, "YSIZE" ) );
574
575 isSolid = ALTIUM_PARSER::ReadBool( aProps, "ISSOLID", false );
576
577 color = ALTIUM_PARSER::ReadInt( aProps, "COLOR", 0 );
578 areacolor = ALTIUM_PARSER::ReadInt( aProps, "AREACOLOR", 0 );
579}
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
VECTOR2< int > VECTOR2I
Definition: vector2d.h:618

References areacolor, color, isSolid, location, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadRecord(), SHEET_SYMBOL, and size.

Member Data Documentation

◆ areacolor

int ASCH_SHEET_SYMBOL::areacolor

Definition at line 547 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_SYMBOL(), and SCH_ALTIUM_PLUGIN::ParseSheetSymbol().

◆ color

int ASCH_SHEET_SYMBOL::color

Definition at line 546 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_SYMBOL(), and SCH_ALTIUM_PLUGIN::ParseSheetSymbol().

◆ isSolid

bool ASCH_SHEET_SYMBOL::isSolid

Definition at line 544 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_SYMBOL(), and SCH_ALTIUM_PLUGIN::ParseSheetSymbol().

◆ location

VECTOR2I ASCH_SHEET_SYMBOL::location

Definition at line 541 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_SYMBOL(), and SCH_ALTIUM_PLUGIN::ParseSheetSymbol().

◆ size

wxSize ASCH_SHEET_SYMBOL::size

Definition at line 542 of file altium_parser_sch.h.

Referenced by ASCH_SHEET_SYMBOL(), and SCH_ALTIUM_PLUGIN::ParseSheetSymbol().


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