KiCad PCB EDA Suite
ASCH_IMAGE Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 593 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_IMAGE()

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

Definition at line 568 of file altium_parser_sch.cpp.

569 {
570  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::IMAGE );
571 
572  indexinsheet = ALTIUM_PARSER::ReadInt( aProps, "INDEXINSHEET", 0 );
573  ownerpartid = ReadOwnerPartId( aProps );
574 
575  filename = ALTIUM_PARSER::ReadString( aProps, "FILENAME", "" );
576 
577  location = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
578  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
579  corner = wxPoint( ReadKiCadUnitFrac( aProps, "CORNER.X" ),
580  -ReadKiCadUnitFrac( aProps, "CORNER.Y" ) );
581 
582  embedimage = ALTIUM_PARSER::ReadBool( aProps, "EMBEDIMAGE", false );
583  keepaspect = ALTIUM_PARSER::ReadBool( aProps, "KEEPASPECT", false );
584 }
wxString filename
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)
int ReadOwnerPartId(const std::map< wxString, wxString > &aProperties)
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)

References corner, embedimage, filename, IMAGE, indexinsheet, keepaspect, location, ownerpartid, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerPartId(), ReadRecord(), and ALTIUM_PARSER::ReadString().

Member Data Documentation

◆ corner

wxPoint ASCH_IMAGE::corner

Definition at line 600 of file altium_parser_sch.h.

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

◆ embedimage

bool ASCH_IMAGE::embedimage

Definition at line 602 of file altium_parser_sch.h.

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

◆ filename

wxString ASCH_IMAGE::filename

Definition at line 598 of file altium_parser_sch.h.

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

◆ indexinsheet

int ASCH_IMAGE::indexinsheet

Definition at line 595 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE().

◆ keepaspect

bool ASCH_IMAGE::keepaspect

Definition at line 603 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE().

◆ location

wxPoint ASCH_IMAGE::location

Definition at line 599 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_IMAGE::ownerpartid

Definition at line 596 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE().


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