KiCad PCB EDA Suite
|
#include <map>
#include <unordered_map>
#include <ki_exception.h>
#include <math/util.h>
#include <wx/log.h>
#include "altium_parser_pcb.h"
#include "io/altium/altium_binary_parser.h"
#include "io/altium/altium_props_utils.h"
Go to the source code of this file.
Functions | |
ALTIUM_LAYER | altium_layer_from_name (const wxString &aName) |
void | altium_parse_polygons (std::map< wxString, wxString > &aProps, std::vector< ALTIUM_VERTICE > &aVertices) |
static ALTIUM_MODE | ReadAltiumModeFromProperties (const std::map< wxString, wxString > &aProps, wxString aKey) |
static ALTIUM_RECORD | ReadAltiumRecordFromProperties (const std::map< wxString, wxString > &aProps, wxString aKey) |
static AEXTENDED_PRIMITIVE_INFORMATION_TYPE | ReadAltiumExtendedPrimitiveInformationTypeFromProperties (const std::map< wxString, wxString > &aProps, wxString aKey) |
static void | ExpectSubrecordLengthAtLeast (const std::string &aStreamType, const std::string &aSubrecordName, size_t aExpectedLength, size_t aActualLength) |
Throw an IO_ERROR if the actual length is less than the expected length. | |
ALTIUM_LAYER altium_layer_from_name | ( | const wxString & | aName | ) |
Definition at line 38 of file altium_parser_pcb.cpp.
References _, BACKGROUND, BOTTOM_LAYER, BOTTOM_OVERLAY, BOTTOM_PASTE, BOTTOM_SOLDER, CONNECTIONS, DRC_ERROR_MARKERS, DRILL_DRAWING, DRILL_GUIDE, INTERNAL_PLANE_1, INTERNAL_PLANE_10, INTERNAL_PLANE_11, INTERNAL_PLANE_12, INTERNAL_PLANE_13, INTERNAL_PLANE_14, INTERNAL_PLANE_15, INTERNAL_PLANE_16, INTERNAL_PLANE_2, INTERNAL_PLANE_3, INTERNAL_PLANE_4, INTERNAL_PLANE_5, INTERNAL_PLANE_6, INTERNAL_PLANE_7, INTERNAL_PLANE_8, INTERNAL_PLANE_9, KEEP_OUT_LAYER, MECHANICAL_1, MECHANICAL_10, MECHANICAL_11, MECHANICAL_12, MECHANICAL_13, MECHANICAL_14, MECHANICAL_15, MECHANICAL_16, MECHANICAL_2, MECHANICAL_3, MECHANICAL_4, MECHANICAL_5, MECHANICAL_6, MECHANICAL_7, MECHANICAL_8, MECHANICAL_9, MID_LAYER_1, MID_LAYER_10, MID_LAYER_11, MID_LAYER_12, MID_LAYER_13, MID_LAYER_14, MID_LAYER_15, MID_LAYER_16, MID_LAYER_17, MID_LAYER_18, MID_LAYER_19, MID_LAYER_2, MID_LAYER_20, MID_LAYER_21, MID_LAYER_22, MID_LAYER_23, MID_LAYER_24, MID_LAYER_25, MID_LAYER_26, MID_LAYER_27, MID_LAYER_28, MID_LAYER_29, MID_LAYER_3, MID_LAYER_30, MID_LAYER_4, MID_LAYER_5, MID_LAYER_6, MID_LAYER_7, MID_LAYER_8, MID_LAYER_9, MULTI_LAYER, PAD_HOLES, SELECTIONS, TOP_LAYER, TOP_OVERLAY, TOP_PASTE, TOP_SOLDER, UNKNOWN, VIA_HOLES, VISIBLE_GRID_1, and VISIBLE_GRID_2.
Referenced by ACOMPONENT6::ACOMPONENT6(), ADIMENSION6::ADIMENSION6(), and APOLYGON6::APOLYGON6().
void altium_parse_polygons | ( | std::map< wxString, wxString > & | aProps, |
std::vector< ALTIUM_VERTICE > & | aVertices | ||
) |
Definition at line 145 of file altium_parser_pcb.cpp.
References ALTIUM_PROPS_UTILS::ReadDouble(), ALTIUM_PROPS_UTILS::ReadInt(), and ALTIUM_PROPS_UTILS::ReadKicadUnit().
Referenced by ABOARD6::ABOARD6(), and APOLYGON6::APOLYGON6().
|
static |
Throw an IO_ERROR if the actual length is less than the expected length.
aStreamType | the current stream type (e.g. 'Pads6') |
aSubrecordName | the current subrecord name (e.g. 'subrecord5') |
aExpectedLength | the expected length needed to parse the stream |
aActualLength | the actual length of the subrecord encountered |
Definition at line 238 of file altium_parser_pcb.cpp.
References THROW_IO_ERROR.
Referenced by APAD6::APAD6().
|
static |
Definition at line 217 of file altium_parser_pcb.cpp.
References _, MASK, ALTIUM_PROPS_UTILS::ReadString(), and UNKNOWN.
Referenced by AEXTENDED_PRIMITIVE_INFORMATION::AEXTENDED_PRIMITIVE_INFORMATION().
|
static |
Definition at line 172 of file altium_parser_pcb.cpp.
References _, MANUAL, NONE, ALTIUM_PROPS_UTILS::ReadString(), RULE, and UNKNOWN.
Referenced by AEXTENDED_PRIMITIVE_INFORMATION::AEXTENDED_PRIMITIVE_INFORMATION().
|
static |
Definition at line 189 of file altium_parser_pcb.cpp.
References _, ARC, FILL, MODEL, PAD, ALTIUM_PROPS_UTILS::ReadString(), REGION, TEXT, TRACK, UNKNOWN, and VIA.
Referenced by AEXTENDED_PRIMITIVE_INFORMATION::AEXTENDED_PRIMITIVE_INFORMATION().