KiCad PCB EDA Suite
ASCH_IMAGE Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int indexinsheet
 
int ownerpartid
 
wxString filename
 
wxPoint location
 
wxPoint corner
 
bool embedimage
 
bool keepaspect
 

Detailed Description

Definition at line 555 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_IMAGE()

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

Definition at line 562 of file altium_parser_sch.cpp.

563 {
564  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::IMAGE );
565 
566  indexinsheet = ALTIUM_PARSER::PropertiesReadInt( aProperties, "INDEXINSHEET", 0 );
567  ownerpartid = ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", -1 );
568 
569  filename = ALTIUM_PARSER::PropertiesReadString( aProperties, "FILENAME", "" );
570 
571  location = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
572  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
573  corner = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "CORNER.X" ),
574  -PropertiesReadKiCadUnitFrac( aProperties, "CORNER.Y" ) );
575 
576  embedimage = ALTIUM_PARSER::PropertiesReadBool( aProperties, "EMBEDIMAGE", false );
577  keepaspect = ALTIUM_PARSER::PropertiesReadBool( aProperties, "KEEPASPECT", false );
578 }
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)
wxString filename
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
static wxString PropertiesReadString(const std::map< wxString, wxString > &aProperties, const wxString &aKey, const wxString &aDefault)

References corner, embedimage, filename, IMAGE, indexinsheet, keepaspect, location, ownerpartid, ALTIUM_PARSER::PropertiesReadBool(), ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), and ALTIUM_PARSER::PropertiesReadString().

Member Data Documentation

◆ corner

wxPoint ASCH_IMAGE::corner

Definition at line 562 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE(), and SCH_ALTIUM_PLUGIN::ParseImage().

◆ embedimage

bool ASCH_IMAGE::embedimage

Definition at line 564 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE(), and SCH_ALTIUM_PLUGIN::ParseImage().

◆ filename

wxString ASCH_IMAGE::filename

Definition at line 560 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE(), and SCH_ALTIUM_PLUGIN::ParseImage().

◆ indexinsheet

int ASCH_IMAGE::indexinsheet

Definition at line 557 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE().

◆ keepaspect

bool ASCH_IMAGE::keepaspect

Definition at line 565 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE().

◆ location

wxPoint ASCH_IMAGE::location

Definition at line 561 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE(), and SCH_ALTIUM_PLUGIN::ParseImage().

◆ ownerpartid

int ASCH_IMAGE::ownerpartid

Definition at line 558 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE().


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