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
 
VECTOR2I point1
 
VECTOR2I point2
 
int lineWidth
 

Detailed Description

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

438{
439 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::LINE );
440
441 ownerindex = ReadOwnerIndex( aProps );
442 ownerpartid = ReadOwnerPartId( aProps );
443 ownerpartdisplaymode = ALTIUM_PARSER::ReadInt( aProps, "OWNERPARTDISPLAYMODE", 0 );
444
445 point1 = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
446 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
447 point2 = VECTOR2I( ReadKiCadUnitFrac( aProps, "CORNER.X" ),
448 -ReadKiCadUnitFrac( aProps, "CORNER.Y" ) );
449
450 lineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
451}
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)
VECTOR2I point1
VECTOR2I point2
int ownerpartdisplaymode
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

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 441 of file altium_parser_sch.h.

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

◆ ownerindex

int ASCH_LINE::ownerindex

Definition at line 434 of file altium_parser_sch.h.

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

◆ ownerpartdisplaymode

int ASCH_LINE::ownerpartdisplaymode

Definition at line 436 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_LINE::ownerpartid

Definition at line 435 of file altium_parser_sch.h.

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

◆ point1

VECTOR2I ASCH_LINE::point1

Definition at line 438 of file altium_parser_sch.h.

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

◆ point2

VECTOR2I ASCH_LINE::point2

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