KiCad PCB EDA Suite
ASCH_RECTANGLE Struct Reference

#include <altium_parser_sch.h>

Inheritance diagram for ASCH_RECTANGLE:
ASCH_SHAPE_INTERFACE

Public Member Functions

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

Public Attributes

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

Detailed Description

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

545{
546 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::RECTANGLE );
547
548 OwnerIndex = ReadOwnerIndex( aProps );
549 OwnerPartID = ReadOwnerPartId( aProps );
550 OwnerPartDisplayMode = ALTIUM_PARSER::ReadInt( aProps, "OWNERPARTDISPLAYMODE", 0 );
551
552 BottomLeft = VECTOR2I( ReadKiCadUnitFrac( aProps, "LOCATION.X" ),
553 -ReadKiCadUnitFrac( aProps, "LOCATION.Y" ) );
554 TopRight = VECTOR2I( ReadKiCadUnitFrac( aProps, "CORNER.X" ),
555 -ReadKiCadUnitFrac( aProps, "CORNER.Y" ) );
556
557 LineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
558 IsSolid = ALTIUM_PARSER::ReadBool( aProps, "ISSOLID", false );
559 IsTransparent = ALTIUM_PARSER::ReadBool( aProps, "TRANSPARENT", false );
560
561 Color = ALTIUM_PARSER::ReadInt( aProps, "COLOR", 0 );
562 AreaColor = ALTIUM_PARSER::ReadInt( aProps, "AREACOLOR", 0 );
563}
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, 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(), RECTANGLE, and TopRight.

Member Data Documentation

◆ AreaColor

◆ BottomLeft

VECTOR2I ASCH_RECTANGLE::BottomLeft

Definition at line 531 of file altium_parser_sch.h.

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

◆ Color

◆ IsSolid

◆ IsTransparent

bool ASCH_RECTANGLE::IsTransparent

Definition at line 534 of file altium_parser_sch.h.

Referenced by ASCH_RECTANGLE().

◆ LineWidth

◆ OwnerIndex

◆ OwnerPartDisplayMode

◆ OwnerPartID

◆ TopRight

VECTOR2I ASCH_RECTANGLE::TopRight

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