KiCad PCB EDA Suite
ASCH_RECTANGLE Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 367 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_RECTANGLE()

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

Definition at line 371 of file altium_parser_sch.cpp.

372 {
373  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::RECTANGLE );
374 
375  ownerindex =
376  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERINDEX", ALTIUM_COMPONENT_NONE );
377  ownerpartid =
378  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", ALTIUM_COMPONENT_NONE );
380  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTDISPLAYMODE", 0 );
381 
382  bottomLeft = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.X" ),
383  -PropertiesReadKiCadUnitFrac( aProperties, "LOCATION.Y" ) );
384  topRight = wxPoint( PropertiesReadKiCadUnitFrac( aProperties, "CORNER.X" ),
385  -PropertiesReadKiCadUnitFrac( aProperties, "CORNER.Y" ) );
386 
387  lineWidth = PropertiesReadKiCadUnitFrac( aProperties, "LINEWIDTH" );
388  isSolid = ALTIUM_PARSER::PropertiesReadBool( aProperties, "ISSOLID", false );
389  isTransparent = ALTIUM_PARSER::PropertiesReadBool( aProperties, "TRANSPARENT", false );
390 
391  color = ALTIUM_PARSER::PropertiesReadInt( aProperties, "COLOR", 0 );
392  areacolor = ALTIUM_PARSER::PropertiesReadInt( aProperties, "AREACOLOR", 0 );
393 }
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(), RECTANGLE, and topRight.

Member Data Documentation

◆ areacolor

int ASCH_RECTANGLE::areacolor

Definition at line 381 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE(), and SCH_ALTIUM_PLUGIN::ParseRectangle().

◆ bottomLeft

wxPoint ASCH_RECTANGLE::bottomLeft

Definition at line 373 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE(), and SCH_ALTIUM_PLUGIN::ParseRectangle().

◆ color

int ASCH_RECTANGLE::color

Definition at line 380 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE(), and SCH_ALTIUM_PLUGIN::ParseRectangle().

◆ isSolid

bool ASCH_RECTANGLE::isSolid

Definition at line 377 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE(), and SCH_ALTIUM_PLUGIN::ParseRectangle().

◆ isTransparent

bool ASCH_RECTANGLE::isTransparent

Definition at line 378 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE().

◆ lineWidth

int ASCH_RECTANGLE::lineWidth

Definition at line 376 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE(), and SCH_ALTIUM_PLUGIN::ParseRectangle().

◆ ownerindex

int ASCH_RECTANGLE::ownerindex

Definition at line 369 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE(), and SCH_ALTIUM_PLUGIN::ParseRectangle().

◆ ownerpartdisplaymode

int ASCH_RECTANGLE::ownerpartdisplaymode

Definition at line 371 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE(), and SCH_ALTIUM_PLUGIN::ParseRectangle().

◆ ownerpartid

int ASCH_RECTANGLE::ownerpartid

Definition at line 370 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE(), and SCH_ALTIUM_PLUGIN::ParseRectangle().

◆ topRight

wxPoint ASCH_RECTANGLE::topRight

Definition at line 374 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE(), and SCH_ALTIUM_PLUGIN::ParseRectangle().


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