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
 
bool m_IsElliptical
 
VECTOR2I m_Center
 
int m_Radius
 
int m_SecondaryRadius
 
double m_StartAngle
 
double m_EndAngle
 
int m_LineWidth
 

Detailed Description

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

395{
397 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::ARC || m_IsElliptical );
398
399 ownerindex = ReadOwnerIndex( aProps );
400 ownerpartid = ReadOwnerPartId( aProps );
401 ownerpartdisplaymode = ALTIUM_PARSER::ReadInt( aProps, "OWNERPARTDISPLAYMODE", 0 );
402
403 m_Center = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
404 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
405 m_Radius = ReadKiCadUnitFrac( aProps, "RADIUS" );
407
408 if( m_IsElliptical )
409 m_SecondaryRadius = ReadKiCadUnitFrac( aProps, "SECONDARYRADIUS" );
410
411 m_StartAngle = ALTIUM_PARSER::ReadDouble( aProps, "STARTANGLE", 0 );
412 m_EndAngle = ALTIUM_PARSER::ReadDouble( aProps, "ENDANGLE", 0 );
413
414 m_LineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
415}
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)
static double ReadDouble(const std::map< wxString, wxString > &aProps, const wxString &aKey, double aDefault)
int ownerpartdisplaymode
double m_StartAngle
VECTOR2I m_Center
double m_EndAngle
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

References ARC, ELLIPTICAL_ARC, m_Center, m_EndAngle, m_IsElliptical, m_LineWidth, m_Radius, m_SecondaryRadius, m_StartAngle, ownerindex, ownerpartdisplaymode, ownerpartid, ALTIUM_PARSER::ReadDouble(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), and ReadRecord().

Member Data Documentation

◆ m_Center

VECTOR2I ASCH_ARC::m_Center

Definition at line 403 of file altium_parser_sch.h.

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

◆ m_EndAngle

double ASCH_ARC::m_EndAngle

Definition at line 407 of file altium_parser_sch.h.

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

◆ m_IsElliptical

bool ASCH_ARC::m_IsElliptical

Definition at line 402 of file altium_parser_sch.h.

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

◆ m_LineWidth

int ASCH_ARC::m_LineWidth

Definition at line 409 of file altium_parser_sch.h.

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

◆ m_Radius

int ASCH_ARC::m_Radius

Definition at line 404 of file altium_parser_sch.h.

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

◆ m_SecondaryRadius

int ASCH_ARC::m_SecondaryRadius

Definition at line 405 of file altium_parser_sch.h.

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

◆ m_StartAngle

double ASCH_ARC::m_StartAngle

Definition at line 406 of file altium_parser_sch.h.

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

◆ ownerindex

int ASCH_ARC::ownerindex

Definition at line 398 of file altium_parser_sch.h.

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

◆ ownerpartdisplaymode

int ASCH_ARC::ownerpartdisplaymode

Definition at line 400 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_ARC::ownerpartid

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