KiCad PCB EDA Suite
ASCH_LINE Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 390 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_LINE()

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

Definition at line 380 of file altium_parser_sch.cpp.

381 {
382  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::LINE );
383 
384  ownerindex = ReadOwnerIndex( aProps );
385  ownerpartid = ReadOwnerPartId( aProps );
386  ownerpartdisplaymode = ALTIUM_PARSER::ReadInt( aProps, "OWNERPARTDISPLAYMODE", 0 );
387 
388  point1 = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
389  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
390  point2 = wxPoint( ReadKiCadUnitFrac( aProps, "CORNER.X" ),
391  -ReadKiCadUnitFrac( aProps, "CORNER.Y" ) );
392 
393  lineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
394 }
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
int ownerpartdisplaymode
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)
int ReadOwnerIndex(const std::map< wxString, wxString > &aProperties)

References LINE, lineWidth, ownerindex, ownerpartdisplaymode, ownerpartid, point1, point2, ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), and ReadRecord().

Member Data Documentation

◆ lineWidth

int ASCH_LINE::lineWidth

Definition at line 399 of file altium_parser_sch.h.

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

◆ ownerindex

int ASCH_LINE::ownerindex

Definition at line 392 of file altium_parser_sch.h.

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

◆ ownerpartdisplaymode

int ASCH_LINE::ownerpartdisplaymode

Definition at line 394 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_LINE::ownerpartid

Definition at line 393 of file altium_parser_sch.h.

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

◆ point1

wxPoint ASCH_LINE::point1

Definition at line 396 of file altium_parser_sch.h.

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

◆ point2

wxPoint ASCH_LINE::point2

Definition at line 397 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: