KiCad PCB EDA Suite
|
#include "altium_pcb.h"
#include "altium_parser_pcb.h"
#include <altium_pcb_compound_file.h>
#include <io/altium/altium_binary_parser.h>
#include <io/altium/altium_parser_utils.h>
#include <board.h>
#include <board_design_settings.h>
#include <layer_range.h>
#include <pcb_dimension.h>
#include <pad.h>
#include <pcb_shape.h>
#include <pcb_text.h>
#include <pcb_textbox.h>
#include <pcb_track.h>
#include <core/profile.h>
#include <string_utils.h>
#include <tools/pad_tool.h>
#include <zone.h>
#include <board_stackup_manager/stackup_predefined_prms.h>
#include <compoundfilereader.h>
#include <convert_basic_shapes_to_polygon.h>
#include <font/outline_font.h>
#include <project.h>
#include <reporter.h>
#include <trigo.h>
#include <utf.h>
#include <wx/docview.h>
#include <wx/log.h>
#include <wx/mstream.h>
#include <wx/wfstream.h>
#include <wx/zstream.h>
#include <progress_reporter.h>
#include <magic_enum.hpp>
Go to the source code of this file.
Functions | |
bool | IsAltiumLayerCopper (ALTIUM_LAYER aLayer) |
bool | IsAltiumLayerAPlane (ALTIUM_LAYER aLayer) |
void | HelperShapeLineChainFromAltiumVertices (SHAPE_LINE_CHAIN &aLine, const std::vector< ALTIUM_VERTICE > &aVertices) |
double | normalizeAngleDegrees (double Angle, double aMin, double aMax) |
Normalize angle to be aMin < angle <= aMax angle is in degrees. | |
Variables | |
constexpr double | BOLD_FACTOR = 1.75 |
void HelperShapeLineChainFromAltiumVertices | ( | SHAPE_LINE_CHAIN & | aLine, |
const std::vector< ALTIUM_VERTICE > & | aVertices | ||
) |
Definition at line 91 of file altium_pcb.cpp.
References SHAPE_LINE_CHAIN::Append(), EDA_ANGLE::AsDegrees(), DEG2RAD(), DEGREES_T, VECTOR2< T >::Distance(), KiROUND(), EDA_IU_SCALE::mmToIU(), EDA_ANGLE::Normalize(), pcbIUScale, and SHAPE_LINE_CHAIN::SetClosed().
Referenced by ALTIUM_PCB::ConvertShapeBasedRegions6ToBoardItem(), ALTIUM_PCB::ConvertShapeBasedRegions6ToBoardItemOnLayer(), ALTIUM_PCB::ConvertShapeBasedRegions6ToFootprintItem(), ALTIUM_PCB::ConvertShapeBasedRegions6ToFootprintItemOnLayer(), ALTIUM_PCB::HelperCreateBoardOutline(), and ALTIUM_PCB::ParsePolygons6Data().
bool IsAltiumLayerAPlane | ( | ALTIUM_LAYER | aLayer | ) |
Definition at line 73 of file altium_pcb.cpp.
References INTERNAL_PLANE_1, and INTERNAL_PLANE_16.
Referenced by ALTIUM_PCB::ConvertArcs6ToBoardItem(), ALTIUM_PCB::ConvertArcs6ToFootprintItem(), ALTIUM_PCB::ConvertPads6ToBoardItem(), ALTIUM_PCB::ConvertPads6ToFootprintItem(), ALTIUM_PCB::ConvertTracks6ToBoardItem(), ALTIUM_PCB::ConvertTracks6ToFootprintItem(), ALTIUM_PCB::ParseBoard6Data(), and ALTIUM_PCB::ParsePolygons6Data().
bool IsAltiumLayerCopper | ( | ALTIUM_LAYER | aLayer | ) |
Definition at line 66 of file altium_pcb.cpp.
References BOTTOM_LAYER, MULTI_LAYER, and TOP_LAYER.
Referenced by ALTIUM_PCB::ConvertFills6ToFootprintItem(), ALTIUM_PCB::ConvertPads6ToBoardItem(), and ALTIUM_PCB::ConvertPads6ToFootprintItem().
double normalizeAngleDegrees | ( | double | Angle, |
double | aMin, | ||
double | aMax | ||
) |
Normalize angle to be aMin < angle <= aMax angle is in degrees.
Definition at line 1333 of file altium_pcb.cpp.
Referenced by ALTIUM_PCB::ConvertComponentBody6ToFootprintItem(), and ALTIUM_PCB::ParseComponentsBodies6Data().
|
constexpr |
Definition at line 63 of file altium_pcb.cpp.
Referenced by ALTIUM_PCB::HelperParseDimensions6Linear(), and ALTIUM_PCB::HelperParseDimensions6Radial().