KiCad PCB EDA Suite
|
#include <exporter_step.h>
Public Member Functions | |
EXPORTER_STEP (BOARD *aBoard, const EXPORTER_STEP_PARAMS &aParams) | |
~EXPORTER_STEP () | |
bool | Export () |
void | SetError () |
void | SetFail () |
void | SetWarn () |
bool | ExportTracksAndVias () |
Return rue to export tracks and vias on top and bottom copper layers. | |
Public Attributes | |
wxString | m_outputFile |
Private Member Functions | |
bool | buildBoard3DShapes () |
bool | buildFootprint3DShapes (FOOTPRINT *aFootprint, VECTOR2D aOrigin) |
bool | buildTrack3DShape (PCB_TRACK *aTrack, VECTOR2D aOrigin) |
void | buildZones3DShape (VECTOR2D aOrigin) |
bool | buildGraphic3DShape (BOARD_ITEM *aItem, VECTOR2D aOrigin) |
void | calculatePcbThickness () |
Private Attributes | |
EXPORTER_STEP_PARAMS | m_params |
std::unique_ptr< FILENAME_RESOLVER > | m_resolver |
bool | m_error |
bool | m_fail |
bool | m_warn |
BOARD * | m_board |
std::unique_ptr< STEP_PCB_MODEL > | m_pcbModel |
wxString | m_pcbBaseName |
the name of the project (board short filename (no path, no ext) used to identify items in step file | |
double | m_boardThickness |
SHAPE_POLY_SET | m_top_copper_shapes |
SHAPE_POLY_SET | m_bottom_copper_shapes |
KIGFX::COLOR4D | m_solderMaskColor |
KIGFX::COLOR4D | m_copperColor |
Definition at line 93 of file exporter_step.h.
EXPORTER_STEP::EXPORTER_STEP | ( | BOARD * | aBoard, |
const EXPORTER_STEP_PARAMS & | aParams | ||
) |
Definition at line 140 of file exporter_step.cpp.
References BOARD::GetFileName(), BOARD::GetProject(), m_copperColor, m_pcbBaseName, m_resolver, m_solderMaskColor, and Pgm().
EXPORTER_STEP::~EXPORTER_STEP | ( | ) |
Definition at line 165 of file exporter_step.cpp.
|
private |
Definition at line 373 of file exporter_step.cpp.
References _, KIGFX::COLOR4D::b, buildFootprint3DShapes(), buildGraphic3DShape(), buildTrack3DShape(), buildZones3DShape(), BOARD::Drawings(), ExportTracksAndVias(), BOARD::Footprints(), SHAPE_POLY_SET::FullPointCount(), KIGFX::COLOR4D::g, BOARD_DESIGN_SETTINGS::GetAuxOrigin(), BOARD::GetBoardPolygonOutlines(), BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::GetGridOrigin(), m_board, m_boardThickness, m_bottom_copper_shapes, m_copperColor, EXPORTER_STEP_PARAMS::m_exportZones, EXPORTER_STEP_PARAMS::m_fuseShapes, BOARD_DESIGN_SETTINGS::m_MaxError, EXPORTER_STEP_PARAMS::m_origin, m_params, m_pcbBaseName, m_pcbModel, m_solderMaskColor, m_top_copper_shapes, EXPORTER_STEP_PARAMS::m_useDrillOrigin, EXPORTER_STEP_PARAMS::m_useGridOrigin, OCC_MAX_DISTANCE_TO_MERGE_POINTS, KIGFX::COLOR4D::r, ReportMessage(), and BOARD::Tracks().
Referenced by Export().
Definition at line 170 of file exporter_step.cpp.
References EDA_ANGLE::AsRadians(), B_Cu, ERROR_INSIDE, ExportTracksAndVias(), F_Cu, FP_LIB_TABLE::FindRow(), FP_DNP, FP_SMD, FP_THROUGH_HOLE, FOOTPRINT::GetAttributes(), BOARD::GetDesignSettings(), FOOTPRINT::GetFPID(), LIB_TABLE_ROW::GetFullURI(), FOOTPRINT::GetLayer(), LIB_ID::GetLibNickname(), FOOTPRINT::GetOrientation(), FOOTPRINT::GetPosition(), BOARD::GetProject(), FOOTPRINT::GetReference(), EDA_IU_SCALE::IUTomm(), m_board, EXPORTER_STEP_PARAMS::m_boardOnly, m_bottom_copper_shapes, EXPORTER_STEP_PARAMS::m_includeDNP, EXPORTER_STEP_PARAMS::m_includeUnspecified, BOARD_DESIGN_SETTINGS::m_MaxError, m_params, m_pcbModel, m_resolver, EXPORTER_STEP_PARAMS::m_substModels, m_top_copper_shapes, FOOTPRINT::Models(), pad, FOOTPRINT::Pads(), PROJECT_PCB::PcbFootprintLibs(), pcbIUScale, ReportMessage(), FOOTPRINT::TransformFPShapesToPolySet(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by buildBoard3DShapes().
|
private |
Definition at line 346 of file exporter_step.cpp.
References B_Cu, ERROR_INSIDE, F_Cu, BOARD::GetDesignSettings(), PCB_SHAPE::GetLayer(), m_board, m_bottom_copper_shapes, BOARD_DESIGN_SETTINGS::m_MaxError, m_top_copper_shapes, and PCB_SHAPE::TransformShapeToPolygon().
Referenced by buildBoard3DShapes().
Definition at line 299 of file exporter_step.cpp.
References B_Cu, ERROR_INSIDE, F_Cu, BOARD::GetDesignSettings(), BOARD_ITEM::GetLayer(), m_board, m_bottom_copper_shapes, BOARD_DESIGN_SETTINGS::m_MaxError, m_pcbModel, m_top_copper_shapes, PCB_ARC_T, PCB_VIA_T, PCB_TRACK::TransformShapeToPolygon(), and EDA_ITEM::Type().
Referenced by buildBoard3DShapes().
|
private |
Definition at line 327 of file exporter_step.cpp.
References B_Cu, F_Cu, m_board, m_pcbModel, SHAPE_POLY_SET::PM_STRICTLY_SIMPLE, SHAPE_POLY_SET::Unfracture(), and BOARD::Zones().
Referenced by buildBoard3DShapes().
|
private |
Definition at line 456 of file exporter_step.cpp.
References BS_ITEM_TYPE_COPPER, BS_ITEM_TYPE_DIELECTRIC, BS_ITEM_TYPE_SOLDERMASK, DEFAULT_BOARD_THICKNESS_MM, BOARD_STACKUP::GetCount(), BOARD::GetDesignSettings(), BOARD_STACKUP::GetList(), BOARD_DESIGN_SETTINGS::GetStackupDescriptor(), EDA_IU_SCALE::IUTomm(), m_board, m_boardThickness, and pcbIUScale.
Referenced by Export().
bool EXPORTER_STEP::Export | ( | ) |
Definition at line 496 of file exporter_step.cpp.
References _, EXPORTER_STEP_PARAMS::BREP, buildBoard3DShapes(), calculatePcbThickness(), EXPORTER_STEP_PARAMS::GetDefaultExportExtension(), BOARD::GetFileName(), EXPORTER_STEP_PARAMS::GetFormatName(), GetRunningMicroSecs(), EXPORTER_STEP_PARAMS::GLB, m_board, m_boardThickness, m_error, m_fail, EXPORTER_STEP_PARAMS::m_format, EXPORTER_STEP_PARAMS::m_optimizeStep, EXPORTER_STEP_PARAMS::m_outputFile, m_outputFile, m_params, m_pcbModel, m_warn, ReportMessage(), and EXPORTER_STEP_PARAMS::STEP.
Referenced by PCBNEW_JOBS_HANDLER::JobExportStep().
|
inline |
Return rue to export tracks and vias on top and bottom copper layers.
Definition at line 108 of file exporter_step.h.
References EXPORTER_STEP_PARAMS::m_exportTracks, and m_params.
Referenced by buildBoard3DShapes(), and buildFootprint3DShapes().
|
inline |
Definition at line 103 of file exporter_step.h.
References m_error.
Referenced by KiCadPrinter::Send().
|
inline |
Definition at line 104 of file exporter_step.h.
References m_fail.
Referenced by KiCadPrinter::Send().
|
inline |
Definition at line 105 of file exporter_step.h.
References m_warn.
Referenced by KiCadPrinter::Send().
|
private |
Definition at line 126 of file exporter_step.h.
Referenced by buildBoard3DShapes(), buildFootprint3DShapes(), buildGraphic3DShape(), buildTrack3DShape(), buildZones3DShape(), calculatePcbThickness(), and Export().
|
private |
Definition at line 133 of file exporter_step.h.
Referenced by buildBoard3DShapes(), calculatePcbThickness(), and Export().
|
private |
Definition at line 136 of file exporter_step.h.
Referenced by buildBoard3DShapes(), buildFootprint3DShapes(), buildGraphic3DShape(), and buildTrack3DShape().
|
private |
Definition at line 139 of file exporter_step.h.
Referenced by buildBoard3DShapes(), and EXPORTER_STEP().
|
private |
Definition at line 122 of file exporter_step.h.
Referenced by Export(), and SetError().
|
private |
Definition at line 123 of file exporter_step.h.
wxString EXPORTER_STEP::m_outputFile |
Definition at line 101 of file exporter_step.h.
Referenced by Export(), and PCBNEW_JOBS_HANDLER::JobExportStep().
|
private |
Definition at line 118 of file exporter_step.h.
Referenced by buildBoard3DShapes(), buildFootprint3DShapes(), Export(), and ExportTracksAndVias().
|
private |
the name of the project (board short filename (no path, no ext) used to identify items in step file
Definition at line 131 of file exporter_step.h.
Referenced by buildBoard3DShapes(), and EXPORTER_STEP().
|
private |
Definition at line 127 of file exporter_step.h.
Referenced by buildBoard3DShapes(), buildFootprint3DShapes(), buildTrack3DShape(), buildZones3DShape(), and Export().
|
private |
Definition at line 119 of file exporter_step.h.
Referenced by buildFootprint3DShapes(), and EXPORTER_STEP().
|
private |
Definition at line 138 of file exporter_step.h.
Referenced by buildBoard3DShapes(), and EXPORTER_STEP().
|
private |
Definition at line 135 of file exporter_step.h.
Referenced by buildBoard3DShapes(), buildFootprint3DShapes(), buildGraphic3DShape(), and buildTrack3DShape().
|
private |
Definition at line 124 of file exporter_step.h.