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< wxPoint > points
 
int lineWidth
 

Detailed Description

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

264 {
265  wxASSERT( ReadRecord( aProps ) == ALTIUM_SCH_RECORD::BEZIER );
266 
267  ownerindex = ReadOwnerIndex( aProps );
268  ownerpartid = ReadOwnerPartId( aProps );
269  ownerpartdisplaymode = ALTIUM_PARSER::ReadInt( aProps, "OWNERPARTDISPLAYMODE", 0 );
270 
271  int locationCount = ALTIUM_PARSER::ReadInt( aProps, "LOCATIONCOUNT", 0 );
272 
273  for( int i = 1; i <= locationCount; i++ )
274  {
275  const wxString si = std::to_string( i );
276  points.emplace_back( ReadKiCadUnitFrac( aProps, "X" + si ),
277  -ReadKiCadUnitFrac( aProps, "Y" + si ) );
278  }
279 
280  lineWidth = ReadKiCadUnitFrac( aProps, "LINEWIDTH" );
281 }
static int ReadInt(const std::map< wxString, wxString > &aProps, const wxString &aKey, int 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)
std::vector< wxPoint > 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 302 of file altium_parser_sch.h.

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

◆ ownerindex

int ASCH_BEZIER::ownerindex

Definition at line 296 of file altium_parser_sch.h.

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

◆ ownerpartdisplaymode

int ASCH_BEZIER::ownerpartdisplaymode

Definition at line 298 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_BEZIER::ownerpartid

Definition at line 297 of file altium_parser_sch.h.

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

◆ points

std::vector<wxPoint> ASCH_BEZIER::points

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