KiCad PCB EDA Suite
ASCH_LINE Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
int ownerpartdisplaymode
 
wxPoint point1
 
wxPoint point2
 
int lineWidth
 

Detailed Description

Definition at line 352 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_LINE()

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

Definition at line 351 of file altium_parser_sch.cpp.

352 {
353  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::LINE );
354 
355  ownerindex =
356  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERINDEX", ALTIUM_COMPONENT_NONE );
357  ownerpartid =
358  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", ALTIUM_COMPONENT_NONE );
360  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTDISPLAYMODE", 0 );
361 
362  point1 = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
363  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
364  point2 = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "CORNER.X" ),
365  -PropertiesReadKiCadUnitFrac( aProperties, "CORNER.Y" ) );
366 
367  lineWidth = PropertiesReadKiCadUnitFrac( aProperties, "LINEWIDTH" );
368 }
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
int ownerpartdisplaymode
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
const int ALTIUM_COMPONENT_NONE

References ALTIUM_COMPONENT_NONE, LINE, lineWidth, ownerindex, ownerpartdisplaymode, ownerpartid, point1, point2, ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), and PropertiesReadRecord().

Member Data Documentation

◆ lineWidth

int ASCH_LINE::lineWidth

Definition at line 361 of file altium_parser_sch.h.

Referenced by ASCH_LINE(), and SCH_ALTIUM_PLUGIN::ParseLine().

◆ ownerindex

int ASCH_LINE::ownerindex

Definition at line 354 of file altium_parser_sch.h.

Referenced by ASCH_LINE(), and SCH_ALTIUM_PLUGIN::ParseLine().

◆ ownerpartdisplaymode

int ASCH_LINE::ownerpartdisplaymode

Definition at line 356 of file altium_parser_sch.h.

Referenced by ASCH_LINE(), and SCH_ALTIUM_PLUGIN::ParseLine().

◆ ownerpartid

int ASCH_LINE::ownerpartid

Definition at line 355 of file altium_parser_sch.h.

Referenced by ASCH_LINE(), and SCH_ALTIUM_PLUGIN::ParseLine().

◆ point1

wxPoint ASCH_LINE::point1

Definition at line 358 of file altium_parser_sch.h.

Referenced by ASCH_LINE(), and SCH_ALTIUM_PLUGIN::ParseLine().

◆ point2

wxPoint ASCH_LINE::point2

Definition at line 359 of file altium_parser_sch.h.

Referenced by ASCH_LINE(), and SCH_ALTIUM_PLUGIN::ParseLine().


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