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 ownerindex
 
int ownerpartid
 
wxString filename
 
VECTOR2I location
 
VECTOR2I corner
 
bool embedimage
 
bool keepaspect
 

Detailed Description

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

725{
726 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::IMAGE );
727
728 indexinsheet = ALTIUM_PARSER::ReadInt( aProps, "INDEXINSHEET", 0 );
729 ownerindex = ReadOwnerIndex( aProps );
730 ownerpartid = ReadOwnerPartId( aProps );
731
732 filename = ALTIUM_PARSER::ReadString( aProps, "FILENAME", "" );
733
734 location = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
735 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
736 corner = VECTOR2I( ReadKiCadUnitFrac( aProps, "CORNER.X" ),
737 -ReadKiCadUnitFrac( aProps, "CORNER.Y" ) );
738
739 embedimage = ALTIUM_PARSER::ReadBool( aProps, "EMBEDIMAGE", false );
740 keepaspect = ALTIUM_PARSER::ReadBool( aProps, "KEEPASPECT", false );
741}
int ReadOwnerPartId(const std::map< wxString, wxString > &aProperties)
int ReadOwnerIndex(const std::map< wxString, wxString > &aProperties)
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 wxString ReadString(const std::map< wxString, wxString > &aProps, const wxString &aKey, const wxString &aDefault)
static bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
VECTOR2I location
wxString filename
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

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

Member Data Documentation

◆ corner

VECTOR2I ASCH_IMAGE::corner

Definition at line 713 of file altium_parser_sch.h.

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

◆ embedimage

bool ASCH_IMAGE::embedimage

Definition at line 715 of file altium_parser_sch.h.

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

◆ filename

wxString ASCH_IMAGE::filename

Definition at line 711 of file altium_parser_sch.h.

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

◆ indexinsheet

int ASCH_IMAGE::indexinsheet

Definition at line 707 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE().

◆ keepaspect

bool ASCH_IMAGE::keepaspect

Definition at line 716 of file altium_parser_sch.h.

Referenced by ASCH_IMAGE().

◆ location

VECTOR2I ASCH_IMAGE::location

Definition at line 712 of file altium_parser_sch.h.

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

◆ ownerindex

int ASCH_IMAGE::ownerindex

Definition at line 708 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_IMAGE::ownerpartid

Definition at line 709 of file altium_parser_sch.h.

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


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