KiCad PCB EDA Suite
ASCH_BEZIER Struct Reference

#include <altium_parser_sch.h>

Public Member Functions

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

Public Attributes

int ownerindex
 
int ownerpartid
 
int ownerpartdisplaymode
 
std::vector< wxPoint > points
 
int lineWidth
 

Detailed Description

Definition at line 256 of file altium_parser_sch.h.

Constructor & Destructor Documentation

◆ ASCH_BEZIER()

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

Definition at line 221 of file altium_parser_sch.cpp.

222 {
223  wxASSERT( PropertiesReadRecord( aProperties ) == ALTIUM_SCH_RECORD::BEZIER );
224 
225  ownerindex =
226  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERINDEX", ALTIUM_COMPONENT_NONE );
227  ownerpartid =
228  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTID", ALTIUM_COMPONENT_NONE );
230  ALTIUM_PARSER::PropertiesReadInt( aProperties, "OWNERPARTDISPLAYMODE", 0 );
231 
232  int locationCount = ALTIUM_PARSER::PropertiesReadInt( aProperties, "LOCATIONCOUNT", 0 );
233  for( int i = 1; i <= locationCount; i++ )
234  {
235  const wxString si = std::to_string( i );
236  points.emplace_back( PropertiesReadKiCadUnitFrac( aProperties, "X" + si ),
237  -PropertiesReadKiCadUnitFrac( aProperties, "Y" + si ) );
238  }
239 
240  lineWidth = PropertiesReadKiCadUnitFrac( aProperties, "LINEWIDTH" );
241 }
static int PropertiesReadInt(const std::map< wxString, wxString > &aProperties, const wxString &aKey, int aDefault)
int PropertiesReadKiCadUnitFrac(const std::map< wxString, wxString > &aProperties, const wxString &aKey)
ALTIUM_SCH_RECORD PropertiesReadRecord(const std::map< wxString, wxString > &aProperties)
const int ALTIUM_COMPONENT_NONE
std::vector< wxPoint > points

References ALTIUM_COMPONENT_NONE, BEZIER, lineWidth, ownerindex, ownerpartdisplaymode, ownerpartid, points, ALTIUM_PARSER::PropertiesReadInt(), PropertiesReadKiCadUnitFrac(), and PropertiesReadRecord().

Member Data Documentation

◆ lineWidth

int ASCH_BEZIER::lineWidth

Definition at line 264 of file altium_parser_sch.h.

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

◆ ownerindex

int ASCH_BEZIER::ownerindex

Definition at line 258 of file altium_parser_sch.h.

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

◆ ownerpartdisplaymode

int ASCH_BEZIER::ownerpartdisplaymode

Definition at line 260 of file altium_parser_sch.h.

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

◆ ownerpartid

int ASCH_BEZIER::ownerpartid

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