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 > &aProperties)
 

Public Attributes

wxPoint location
 
wxSize size
 
bool isSolid
 
int color
 
int areacolor
 

Detailed Description

Definition at line 387 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_SHEET_SYMBOL()

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

Definition at line 396 of file altium_parser_sch.cpp.

397 {
398  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::SHEET_SYMBOL );
399 
400 
401  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
402  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
403  size = wxSize( PropertiesReadKiCadUnitFrac( aProperties, "XSIZE" ),
404  PropertiesReadKiCadUnitFrac( aProperties, "YSIZE" ) );
405 
406  isSolid = ALTIUM_PARSER::PropertiesReadBool( aProperties, "ISSOLID", false );
407 
408  color = ALTIUM_PARSER::PropertiesReadInt( aProperties, "COLOR", 0 );
409  areacolor = ALTIUM_PARSER::PropertiesReadInt( aProperties, "AREACOLOR", 0 );
410 }
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
static bool PropertiesReadBool(const std::map< wxString, wxString > &aProperties, const wxString &aKey, bool aDefault)
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)

References areacolor, color, isSolid, location, ALTIUM_PARSER::PropertiesReadBool(), ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), SHEET_SYMBOL, and size.

Member Data Documentation

◆ areacolor

int ASCH_SHEET_SYMBOL::areacolor

Definition at line 395 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 394 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 392 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 389 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 390 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: