KiCad PCB EDA Suite
ASCH_BEZIER Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
int ownerpartdisplaymode
 
std::vector< VECTOR2Ipoints
 
int lineWidth
 

Detailed Description

Definition at line 325 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_BEZIER()

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

Definition at line 293 of file altium_parser_sch.cpp.

294{
295 wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::BEZIER );
296
297 ownerindex = ReadOwnerIndex( aProps );
298 ownerpartid = ReadOwnerPartId( aProps );
299 ownerpartdisplaymode = ALTIUM_PARSER::ReadInt( aProps, "OWNERPARTDISPLAYMODE", 0 );
300
301 int locationCount = ALTIUM_PARSER::ReadInt( aProps, "LOCATIONCOUNT", 0 );
302
303 for( int i = 1; i <= locationCount; i++ )
304 {
305 const wxString si = std::to_string( i );
306 points.emplace_back( ReadKiCadUnitFrac( aProps, "X" + si ),
307 -ReadKiCadUnitFrac( aProps, "Y" + si ) );
308 }
309
310 lineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
311}
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)
std::vector< VECTOR2I > points

References BEZIER, lineWidth, ownerindex, ownerpartdisplaymode, ownerpartid, points, ALTIUM_PARSER::ReadInt(), ReadKiCadUnitFrac(), ReadOwnerIndex(), ReadOwnerPartId(), and ReadRecord().

Member Data Documentation

◆ lineWidth

int ASCH_BEZIER::lineWidth

Definition at line 333 of file altium_parser_sch.h.

Referenced by ASCH_BEZIER(), and SCH_ALTIUM_PLUGIN::ParseBezier().

◆ ownerindex

int ASCH_BEZIER::ownerindex

Definition at line 327 of file altium_parser_sch.h.

Referenced by ASCH_BEZIER(), and SCH_ALTIUM_PLUGIN::ParseBezier().

◆ ownerpartdisplaymode

int ASCH_BEZIER::ownerpartdisplaymode

Definition at line 329 of file altium_parser_sch.h.

Referenced by ASCH_BEZIER(), and SCH_ALTIUM_PLUGIN::ParseBezier().

◆ ownerpartid

int ASCH_BEZIER::ownerpartid

Definition at line 328 of file altium_parser_sch.h.

Referenced by ASCH_BEZIER(), and SCH_ALTIUM_PLUGIN::ParseBezier().

◆ points

std::vector<VECTOR2I> ASCH_BEZIER::points

Definition at line 331 of file altium_parser_sch.h.

Referenced by ASCH_BEZIER(), and SCH_ALTIUM_PLUGIN::ParseBezier().


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