KiCad PCB EDA Suite
ASCH_ARC Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
int ownerpartdisplaymode
 
wxPoint center
 
int radius
 
double startAngle
 
double endAngle
 
int lineWidth
 

Detailed Description

Definition at line 373 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_ARC()

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

Definition at line 361 of file altium_parser_sch.cpp.

362 {
363  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::ARC );
364 
365  ownerindex = ReadOwnerIndex( aProps );
366  ownerpartid = ReadOwnerPartId( aProps );
367  ownerpartdisplaymode = ALTIUM_PARSER::ReadInt( aProps, "OWNERPARTDISPLAYMODE", 0 );
368 
369  center = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
370  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
371  radius = ReadKiCadUnitFrac( aProps, "RADIUS" );
372 
373  startAngle = ALTIUM_PARSER::ReadDouble( aProps, "STARTANGLE", 0 );
374  endAngle = ALTIUM_PARSER::ReadDouble( aProps, "ENDANGLE", 0 );
375 
376  lineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
377 }
static double ReadDouble(const std::map< wxString, wxString > &aProps, const wxString &aKey, double aDefault)
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int aDefault)
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)
double startAngle
int ReadOwnerIndex(const std::map< wxString, wxString > &aProperties)
int ownerpartdisplaymode
wxPoint center

References ARC, center, endAngle, lineWidth, ownerindex, ownerpartdisplaymode, ownerpartid, radius, ALTIUM_PARSER::ReadDouble(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), ReadRecord(), and startAngle.

Member Data Documentation

◆ center

wxPoint ASCH_ARC::center

Definition at line 379 of file altium_parser_sch.h.

Referenced by ASCH_ARC(), and SCH_ALTIUM_PLUGIN::ParseArc().

◆ endAngle

double ASCH_ARC::endAngle

Definition at line 382 of file altium_parser_sch.h.

Referenced by ASCH_ARC(), and SCH_ALTIUM_PLUGIN::ParseArc().

◆ lineWidth

int ASCH_ARC::lineWidth

Definition at line 384 of file altium_parser_sch.h.

Referenced by ASCH_ARC(), and SCH_ALTIUM_PLUGIN::ParseArc().

◆ ownerindex

int ASCH_ARC::ownerindex

Definition at line 375 of file altium_parser_sch.h.

Referenced by ASCH_ARC(), and SCH_ALTIUM_PLUGIN::ParseArc().

◆ ownerpartdisplaymode

int ASCH_ARC::ownerpartdisplaymode

Definition at line 377 of file altium_parser_sch.h.

Referenced by ASCH_ARC(), and SCH_ALTIUM_PLUGIN::ParseArc().

◆ ownerpartid

int ASCH_ARC::ownerpartid

Definition at line 376 of file altium_parser_sch.h.

Referenced by ASCH_ARC(), and SCH_ALTIUM_PLUGIN::ParseArc().

◆ radius

int ASCH_ARC::radius

Definition at line 380 of file altium_parser_sch.h.

Referenced by ASCH_ARC(), and SCH_ALTIUM_PLUGIN::ParseArc().

◆ startAngle

double ASCH_ARC::startAngle

Definition at line 381 of file altium_parser_sch.h.

Referenced by ASCH_ARC(), and SCH_ALTIUM_PLUGIN::ParseArc().


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