KiCad PCB EDA Suite
ASCH_ARC Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 335 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_ARC()

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

Definition at line 329 of file altium_parser_sch.cpp.

330 {
331  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::ARC );
332 
333  ownerindex =
334  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERINDEX", ALTIUM_COMPONENT_NONE );
335  ownerpartid =
336  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", ALTIUM_COMPONENT_NONE );
338  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTDISPLAYMODE", 0 );
339 
340  center = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
341  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
342  radius = PropertiesReadKiCadUnitFrac( aProperties, "RADIUS" );
343 
344  startAngle = ALTIUM_PARSER::PropertiesReadDouble( aProperties, "STARTANGLE", 0 );
345  endAngle = ALTIUM_PARSER::PropertiesReadDouble( aProperties, "ENDANGLE", 0 );
346 
347  lineWidth = PropertiesReadKiCadUnitFrac( aProperties, "LINEWIDTH" );
348 }
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)
static double PropertiesReadDouble(const std::map< wxString, wxString > &aProperties, const wxString &aKey, double aDefault)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
double startAngle
const int ALTIUM_COMPONENT_NONE
int ownerpartdisplaymode
wxPoint center

References ALTIUM_COMPONENT_NONE, ARC, center, endAngle, lineWidth, ownerindex, ownerpartdisplaymode, ownerpartid, ALTIUM_PARSER::PropertiesReadDouble(), ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), radius, and startAngle.

Member Data Documentation

◆ center

wxPoint ASCH_ARC::center

Definition at line 341 of file altium_parser_sch.h.

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

◆ endAngle

double ASCH_ARC::endAngle

Definition at line 344 of file altium_parser_sch.h.

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

◆ lineWidth

int ASCH_ARC::lineWidth

Definition at line 346 of file altium_parser_sch.h.

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

◆ ownerindex

int ASCH_ARC::ownerindex

Definition at line 337 of file altium_parser_sch.h.

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

◆ ownerpartdisplaymode

int ASCH_ARC::ownerpartdisplaymode

Definition at line 339 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_ARC::ownerpartid

Definition at line 338 of file altium_parser_sch.h.

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

◆ radius

int ASCH_ARC::radius

Definition at line 342 of file altium_parser_sch.h.

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

◆ startAngle

double ASCH_ARC::startAngle

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