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 > &aProps)
 

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

Constructor & Destructor Documentation

◆ ASCH_ROUND_RECTANGLE()

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

Definition at line 336 of file altium_parser_sch.cpp.

337 {
338  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::ROUND_RECTANGLE );
339 
340  ownerindex = ReadOwnerIndex( aProps );
341  ownerpartid = ReadOwnerPartId( aProps );
342  ownerpartdisplaymode = ALTIUM_PARSER::ReadInt( aProps, "OWNERPARTDISPLAYMODE", 0 );
343 
344  bottomLeft = wxPoint( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
345  -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
346  topRight = wxPoint( ReadKiCadUnitFrac( aProps, "CORNER.X" ),
347  -ReadKiCadUnitFrac( aProps, "CORNER.Y" ) );
348 
349  topRight = wxPoint( ReadKiCadUnitFrac( aProps, "CORNERXRADIUS" ),
350  -ReadKiCadUnitFrac( aProps, "CORNERYRADIUS" ) );
351 
352  lineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
353  isSolid = ALTIUM_PARSER::ReadBool( aProps, "ISSOLID", false );
354  isTransparent = ALTIUM_PARSER::ReadBool( aProps, "TRANSPARENT", false );
355 
356  color = ALTIUM_PARSER::ReadInt( aProps, "COLOR", 0 );
357  areacolor = ALTIUM_PARSER::ReadInt( aProps, "AREACOLOR", 0 );
358 }
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(), 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 360 of file altium_parser_sch.h.

◆ isSolid

bool ASCH_ROUND_RECTANGLE::isSolid

◆ isTransparent

bool ASCH_ROUND_RECTANGLE::isTransparent

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