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

wxPoint location
 
wxSize size
 
bool isSolid
 
int color
 
int areacolor
 

Detailed Description

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

420 {
421  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::SHEET_SYMBOL );
422 
423  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
424  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
425  size = wxSize( ReadKiCadUnitFrac( aProps, "XSIZE" ),
426  ReadKiCadUnitFrac( aProps, "YSIZE" ) );
427 
428  isSolid = ALTIUM_PARSER::ReadBool( aProps, "ISSOLID", false );
429 
430  color = ALTIUM_PARSER::ReadInt( aProps, "COLOR", 0 );
431  areacolor = ALTIUM_PARSER::ReadInt( aProps, "AREACOLOR", 0 );
432 }
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)
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)

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 433 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 432 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 430 of file altium_parser_sch.h.

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

◆ location

wxPoint ASCH_SHEET_SYMBOL::location

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