KiCad PCB EDA Suite
ASCH_ELLIPSE Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int OwnerIndex
 
int OwnerPartID
 
VECTOR2I Center
 
int Radius
 
double SecondaryRadius
 
int AreaColor
 
bool IsSolid
 
bool IsNotAccesible
 

Detailed Description

Definition at line 415 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_ELLIPSE()

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

Definition at line 418 of file altium_parser_sch.cpp.

419{
420 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::ELLIPSE );
421
422 OwnerIndex = ReadOwnerIndex( aProps );
423 OwnerPartID = ReadOwnerPartId( aProps );
424
425 Center = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
426 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
427
428 Radius = ReadKiCadUnitFrac( aProps, "RADIUS" );
429 SecondaryRadius = ReadKiCadUnitFrac( aProps, "SECONDARYRADIUS" );
430
431 AreaColor = ALTIUM_PARSER::ReadInt( aProps, "AREACOLOR", 0 );
432 IsNotAccesible = ALTIUM_PARSER::ReadBool( aProps, "ISNOTACCESIBLE", false );
433 IsSolid = ALTIUM_PARSER::ReadBool( aProps, "ISSOLID", false );
434}
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 bool ReadBool(const std::map< wxString, wxString > &aProps, const wxString &aKey, bool aDefault)
VECTOR2< int > VECTOR2I
Definition: vector2d.h:590

References AreaColor, Center, ELLIPSE, IsNotAccesible, IsSolid, OwnerIndex, OwnerPartID, Radius, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), ReadRecord(), and SecondaryRadius.

Member Data Documentation

◆ AreaColor

int ASCH_ELLIPSE::AreaColor

Definition at line 424 of file altium_parser_sch.h.

Referenced by ASCH_ELLIPSE(), and SCH_ALTIUM_PLUGIN::ParseEllipse().

◆ Center

VECTOR2I ASCH_ELLIPSE::Center

Definition at line 420 of file altium_parser_sch.h.

Referenced by ASCH_ELLIPSE(), and SCH_ALTIUM_PLUGIN::ParseEllipse().

◆ IsNotAccesible

bool ASCH_ELLIPSE::IsNotAccesible

Definition at line 426 of file altium_parser_sch.h.

Referenced by ASCH_ELLIPSE().

◆ IsSolid

bool ASCH_ELLIPSE::IsSolid

Definition at line 425 of file altium_parser_sch.h.

Referenced by ASCH_ELLIPSE(), and SCH_ALTIUM_PLUGIN::ParseEllipse().

◆ OwnerIndex

int ASCH_ELLIPSE::OwnerIndex

Definition at line 417 of file altium_parser_sch.h.

Referenced by ASCH_ELLIPSE(), and SCH_ALTIUM_PLUGIN::ParseEllipse().

◆ OwnerPartID

int ASCH_ELLIPSE::OwnerPartID

Definition at line 418 of file altium_parser_sch.h.

Referenced by ASCH_ELLIPSE(), and SCH_ALTIUM_PLUGIN::ParseEllipse().

◆ Radius

int ASCH_ELLIPSE::Radius

Definition at line 421 of file altium_parser_sch.h.

Referenced by ASCH_ELLIPSE(), and SCH_ALTIUM_PLUGIN::ParseEllipse().

◆ SecondaryRadius

double ASCH_ELLIPSE::SecondaryRadius

Definition at line 422 of file altium_parser_sch.h.

Referenced by ASCH_ELLIPSE(), and SCH_ALTIUM_PLUGIN::ParseEllipse().


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