KiCad PCB EDA Suite
ASCH_ROUND_RECTANGLE Struct Reference

#include <altium_parser_sch.h>

Inheritance diagram for ASCH_ROUND_RECTANGLE:
ASCH_SHAPE_INTERFACE

Public Member Functions

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

Public Attributes

VECTOR2I BottomLeft
 
VECTOR2I TopRight
 
wxSize CornerRadius
 
bool IsTransparent
 
int OwnerIndex
 
int OwnerPartID
 
int OwnerPartDisplayMode
 
int LineWidth
 
bool IsSolid
 
int Color
 
int AreaColor
 

Detailed Description

Definition at line 383 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 369 of file altium_parser_sch.cpp.

370{
371 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::ROUND_RECTANGLE );
372
373 OwnerIndex = ReadOwnerIndex( aProps );
374 OwnerPartID = ReadOwnerPartId( aProps );
375 OwnerPartDisplayMode = ALTIUM_PARSER::ReadInt( aProps, "OWNERPARTDISPLAYMODE", 0 );
376
377 BottomLeft = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
378 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
379 TopRight = VECTOR2I( ReadKiCadUnitFrac( aProps, "CORNER.X" ),
380 -ReadKiCadUnitFrac( aProps, "CORNER.Y" ) );
381
382 CornerRadius = wxSize( ReadKiCadUnitFrac( aProps, "CORNERXRADIUS" ),
383 -ReadKiCadUnitFrac( aProps, "CORNERYRADIUS" ) );
384
385 LineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
386 IsSolid = ALTIUM_PARSER::ReadBool( aProps, "ISSOLID", false );
387 IsTransparent = ALTIUM_PARSER::ReadBool( aProps, "TRANSPARENT", false );
388
389 Color = ALTIUM_PARSER::ReadInt( aProps, "COLOR", 0 );
390 AreaColor = ALTIUM_PARSER::ReadInt( aProps, "AREACOLOR", 0 );
391}
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 ASCH_SHAPE_INTERFACE::AreaColor, BottomLeft, ASCH_SHAPE_INTERFACE::Color, CornerRadius, ASCH_SHAPE_INTERFACE::IsSolid, IsTransparent, ASCH_SHAPE_INTERFACE::LineWidth, ASCH_SHAPE_INTERFACE::OwnerIndex, ASCH_SHAPE_INTERFACE::OwnerPartDisplayMode, ASCH_SHAPE_INTERFACE::OwnerPartID, ALTIUM_PARSER::ReadBool(), ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), ReadRecord(), ROUND_RECTANGLE, and TopRight.

Member Data Documentation

◆ AreaColor

int ASCH_SHAPE_INTERFACE::AreaColor
inherited

◆ BottomLeft

VECTOR2I ASCH_ROUND_RECTANGLE::BottomLeft

◆ Color

◆ CornerRadius

wxSize ASCH_ROUND_RECTANGLE::CornerRadius

Definition at line 388 of file altium_parser_sch.h.

Referenced by ASCH_ROUND_RECTANGLE().

◆ IsSolid

bool ASCH_SHAPE_INTERFACE::IsSolid
inherited

◆ IsTransparent

bool ASCH_ROUND_RECTANGLE::IsTransparent

Definition at line 390 of file altium_parser_sch.h.

Referenced by ASCH_ROUND_RECTANGLE().

◆ LineWidth

int ASCH_SHAPE_INTERFACE::LineWidth
inherited

◆ OwnerIndex

◆ OwnerPartDisplayMode

◆ OwnerPartID

◆ TopRight

VECTOR2I ASCH_ROUND_RECTANGLE::TopRight

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