KiCad PCB EDA Suite
ASCH_ROUND_RECTANGLE Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
int ownerpartdisplaymode
 
wxPoint bottomLeft
 
wxPoint topRight
 
wxSize cornerradius
 
int lineWidth
 
bool isSolid
 
bool isTransparent
 
int color
 
int areacolor
 

Detailed Description

Definition at line 313 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_ROUND_RECTANGLE()

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

Definition at line 301 of file altium_parser_sch.cpp.

302 {
303  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::ROUND_RECTANGLE );
304 
305  ownerindex =
306  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERINDEX", ALTIUM_COMPONENT_NONE );
307  ownerpartid =
308  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", ALTIUM_COMPONENT_NONE );
310  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTDISPLAYMODE", 0 );
311 
312  bottomLeft = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
313  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
314  topRight = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "CORNER.X" ),
315  -PropertiesReadKiCadUnitFrac( aProperties, "CORNER.Y" ) );
316 
317  topRight = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "CORNERXRADIUS" ),
318  -PropertiesReadKiCadUnitFrac( aProperties, "CORNERYRADIUS" ) );
319 
320  lineWidth = PropertiesReadKiCadUnitFrac( aProperties, "LINEWIDTH" );
321  isSolid = ALTIUM_PARSER::PropertiesReadBool( aProperties, "ISSOLID", false );
322  isTransparent = ALTIUM_PARSER::PropertiesReadBool( aProperties, "TRANSPARENT", false );
323 
324  color = ALTIUM_PARSER::PropertiesReadInt( aProperties, "COLOR", 0 );
325  areacolor = ALTIUM_PARSER::PropertiesReadInt( aProperties, "AREACOLOR", 0 );
326 }
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
static bool PropertiesReadBool(const std::map< wxString, wxString > &aProperties, const wxString &aKey, bool aDefault)
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
const int ALTIUM_COMPONENT_NONE

References ALTIUM_COMPONENT_NONE, areacolor, bottomLeft, color, isSolid, isTransparent, lineWidth, ownerindex, ownerpartdisplaymode, ownerpartid, ALTIUM_PARSER::PropertiesReadBool(), ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), PropertiesReadRecord(), ROUND_RECTANGLE, and topRight.

Member Data Documentation

◆ areacolor

int ASCH_ROUND_RECTANGLE::areacolor

◆ bottomLeft

wxPoint ASCH_ROUND_RECTANGLE::bottomLeft

◆ color

int ASCH_ROUND_RECTANGLE::color

◆ cornerradius

wxSize ASCH_ROUND_RECTANGLE::cornerradius

Definition at line 322 of file altium_parser_sch.h.

◆ isSolid

bool ASCH_ROUND_RECTANGLE::isSolid

◆ isTransparent

bool ASCH_ROUND_RECTANGLE::isTransparent

Definition at line 326 of file altium_parser_sch.h.

Referenced by ASCH_ROUND_RECTANGLE().

◆ lineWidth

int ASCH_ROUND_RECTANGLE::lineWidth

◆ ownerindex

int ASCH_ROUND_RECTANGLE::ownerindex

◆ ownerpartdisplaymode

int ASCH_ROUND_RECTANGLE::ownerpartdisplaymode

◆ ownerpartid

int ASCH_ROUND_RECTANGLE::ownerpartid

◆ topRight

wxPoint ASCH_ROUND_RECTANGLE::topRight

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