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 428 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 431 of file altium_parser_sch.cpp.

432{
433 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::LINE );
434
435 ownerindex = ReadOwnerIndex( aProps );
436 ownerpartid = ReadOwnerPartId( aProps );
437 ownerpartdisplaymode = ALTIUM_PARSER::ReadInt( aProps, "OWNERPARTDISPLAYMODE", 0 );
438
439 point1 = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
440 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
441 point2 = VECTOR2I( ReadKiCadUnitFrac( aProps, "CORNER.X" ),
442 -ReadKiCadUnitFrac( aProps, "CORNER.Y" ) );
443
444 lineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
445}
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:618

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

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

◆ ownerindex

int ASCH_LINE::ownerindex

Definition at line 430 of file altium_parser_sch.h.

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

◆ ownerpartdisplaymode

int ASCH_LINE::ownerpartdisplaymode

Definition at line 432 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_LINE::ownerpartid

Definition at line 431 of file altium_parser_sch.h.

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

◆ point1

VECTOR2I ASCH_LINE::point1

Definition at line 434 of file altium_parser_sch.h.

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

◆ point2

VECTOR2I ASCH_LINE::point2

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