![]() |
KiCad PCB EDA Suite
|
#include "altium_pcb.h"
#include "altium_parser_pcb.h"
#include "plugins/altium/altium_parser.h"
#include <plugins/altium/altium_parser_utils.h>
#include <board.h>
#include <dimension.h>
#include <pcb_shape.h>
#include <pcb_text.h>
#include <track.h>
#include <kicad_string.h>
#include <fp_shape.h>
#include <fp_text.h>
#include <board_stackup_manager/stackup_predefined_prms.h>
#include <compoundfilereader.h>
#include <convert_basic_shapes_to_polygon.h>
#include <project.h>
#include <trigo.h>
#include <utf.h>
#include <wx/docview.h>
#include <wx/mstream.h>
#include <wx/wfstream.h>
#include <wx/zstream.h>
Go to the source code of this file.
Functions | |
void | ParseAltiumPcb (BOARD *aBoard, const wxString &aFileName, const std::map< ALTIUM_PCB_DIR, std::string > &aFileMapping) |
Helper method which opens a Altium Board File and parses it. More... | |
bool | IsAltiumLayerCopper (ALTIUM_LAYER aLayer) |
bool | IsAltiumLayerAPlane (ALTIUM_LAYER aLayer) |
void | HelperShapeLineChainFromAltiumVertices (SHAPE_LINE_CHAIN &aLine, const std::vector< ALTIUM_VERTICE > &aVertices) |
void HelperShapeLineChainFromAltiumVertices | ( | SHAPE_LINE_CHAIN & | aLine, |
const std::vector< ALTIUM_VERTICE > & | aVertices | ||
) |
Definition at line 163 of file altium_pcb.cpp.
References PNS::angle(), SHAPE_LINE_CHAIN::Append(), DEG2RAD(), GetLineLength(), KiROUND(), NormalizeAngleDegreesPos(), and SHAPE_LINE_CHAIN::SetClosed().
Referenced by ALTIUM_PCB::ParsePolygons6Data(), and ALTIUM_PCB::ParseShapeBasedRegions6Data().
bool IsAltiumLayerAPlane | ( | ALTIUM_LAYER | aLayer | ) |
Definition at line 105 of file altium_pcb.cpp.
References INTERNAL_PLANE_1, and INTERNAL_PLANE_16.
Referenced by ALTIUM_PCB::ParseArcs6Data(), ALTIUM_PCB::ParseBoard6Data(), ALTIUM_PCB::ParsePads6Data(), ALTIUM_PCB::ParsePolygons6Data(), and ALTIUM_PCB::ParseTracks6Data().
bool IsAltiumLayerCopper | ( | ALTIUM_LAYER | aLayer | ) |
Definition at line 99 of file altium_pcb.cpp.
References BOTTOM_LAYER, and TOP_LAYER.
Referenced by ALTIUM_PCB::ParsePads6Data().
void ParseAltiumPcb | ( | BOARD * | aBoard, |
const wxString & | aFileName, | ||
const std::map< ALTIUM_PCB_DIR, std::string > & | aFileMapping | ||
) |
Helper method which opens a Altium Board File and parses it.
aBoard | board the pcb should be appended to |
aFileName | file name of board file |
aFileMapping | mapping how altium stream names are mapped |
Definition at line 52 of file altium_pcb.cpp.
References _, Format(), and THROW_IO_ERROR.
Referenced by ALTIUM_CIRCUIT_MAKER_PLUGIN::Load(), ALTIUM_CIRCUIT_STUDIO_PLUGIN::Load(), and ALTIUM_DESIGNER_PLUGIN::Load().