KiCad PCB EDA Suite
ASCH_RECTANGLE Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

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 405 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_RECTANGLE()

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

Definition at line 397 of file altium_parser_sch.cpp.

398 {
399  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::RECTANGLE );
400 
401  ownerindex = ReadOwnerIndex( aProps );
402  ownerpartid = ReadOwnerPartId( aProps );
403  ownerpartdisplaymode = ALTIUM_PARSER::ReadInt( aProps, "OWNERPARTDISPLAYMODE", 0 );
404 
405  bottomLeft = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
406  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
407  topRight = wxPoint( ReadKiCadUnitFrac( aProps, "CORNER.X" ),
408  -ReadKiCadUnitFrac( aProps, "CORNER.Y" ) );
409 
410  lineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
411  isSolid = ALTIUM_PARSER::ReadBool( aProps, "ISSOLID", false );
412  isTransparent = ALTIUM_PARSER::ReadBool( aProps, "TRANSPARENT", false );
413 
414  color = ALTIUM_PARSER::ReadInt( aProps, "COLOR", 0 );
415  areacolor = ALTIUM_PARSER::ReadInt( aProps, "AREACOLOR", 0 );
416 }
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)
int ReadKiCadUnitFrac(const std::map< wxString, wxString > &aProps, const wxString &aKey)
int ReadOwnerPartId(const std::map< wxString, wxString > &aProperties)
ALTIUM_SCH_RECORD ReadRecord(const std::map< wxString, wxString > &aProps)
int ReadOwnerIndex(const std::map< wxString, wxString > &aProperties)

References areacolor, bottomLeft, color, isSolid, isTransparent, lineWidth, ownerindex, ownerpartdisplaymode, ownerpartid, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), ReadRecord(), RECTANGLE, and topRight.

Member Data Documentation

◆ areacolor

int ASCH_RECTANGLE::areacolor

Definition at line 419 of file altium_parser_sch.h.

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

◆ bottomLeft

wxPoint ASCH_RECTANGLE::bottomLeft

Definition at line 411 of file altium_parser_sch.h.

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

◆ color

int ASCH_RECTANGLE::color

Definition at line 418 of file altium_parser_sch.h.

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

◆ isSolid

bool ASCH_RECTANGLE::isSolid

Definition at line 415 of file altium_parser_sch.h.

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

◆ isTransparent

bool ASCH_RECTANGLE::isTransparent

Definition at line 416 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE().

◆ lineWidth

int ASCH_RECTANGLE::lineWidth

Definition at line 414 of file altium_parser_sch.h.

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

◆ ownerindex

int ASCH_RECTANGLE::ownerindex

Definition at line 407 of file altium_parser_sch.h.

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

◆ ownerpartdisplaymode

int ASCH_RECTANGLE::ownerpartdisplaymode

Definition at line 409 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_RECTANGLE::ownerpartid

Definition at line 408 of file altium_parser_sch.h.

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

◆ topRight

wxPoint ASCH_RECTANGLE::topRight

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