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 () |
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) |
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 | |
std::map< PCB_LAYER_ID, SHAPE_POLY_SET > | m_poly_copper_shapes |
KIGFX::COLOR4D | m_solderMaskColor |
KIGFX::COLOR4D | m_copperColor |
Definition at line 102 of file exporter_step.h.
EXPORTER_STEP::EXPORTER_STEP | ( | BOARD * | aBoard, |
const EXPORTER_STEP_PARAMS & | aParams | ||
) |
Definition at line 144 of file exporter_step.cpp.
References FILEEXT::AutoSaveFilePrefix, BOARD::GetFileName(), BOARD::GetProject(), m_copperColor, m_pcbBaseName, m_resolver, m_solderMaskColor, and Pgm().
EXPORTER_STEP::~EXPORTER_STEP | ( | ) |
Definition at line 171 of file exporter_step.cpp.
|
private |
Definition at line 413 of file exporter_step.cpp.
References _, KIGFX::COLOR4D::b, buildFootprint3DShapes(), buildGraphic3DShape(), buildTrack3DShape(), buildZones3DShape(), BOARD::Drawings(), LSET::ExternalCuMask(), BOARD::Footprints(), SHAPE_POLY_SET::FullPointCount(), KIGFX::COLOR4D::g, BOARD_DESIGN_SETTINGS::GetAuxOrigin(), BOARD::GetBoardPolygonOutlines(), BOARD::GetDesignSettings(), BOARD::GetEnabledLayers(), BOARD_DESIGN_SETTINGS::GetGridOrigin(), BOARD::GetStackupOrDefault(), LSET::InternalCuMask(), m_board, m_copperColor, EXPORTER_STEP_PARAMS::m_exportBoardBody, EXPORTER_STEP_PARAMS::m_exportInnerCopper, EXPORTER_STEP_PARAMS::m_exportTracksVias, EXPORTER_STEP_PARAMS::m_exportZones, EXPORTER_STEP_PARAMS::m_fuseShapes, BOARD_DESIGN_SETTINGS::m_MaxError, EXPORTER_STEP_PARAMS::m_netFilter, EXPORTER_STEP_PARAMS::m_origin, m_params, m_pcbBaseName, m_pcbModel, m_poly_copper_shapes, m_solderMaskColor, EXPORTER_STEP_PARAMS::m_useDrillOrigin, EXPORTER_STEP_PARAMS::m_useGridOrigin, OCC_MAX_DISTANCE_TO_MERGE_POINTS, KIGFX::COLOR4D::r, ReportMessage(), LSET::Seq(), and BOARD::Tracks().
Referenced by Export().
Definition at line 176 of file exporter_step.cpp.
References LSET::AllCuMask(), EDA_ANGLE::AsRadians(), B_Cu, SHAPE_POLY_SET::CPolygons(), ERROR_INSIDE, FP_LIB_TABLE::FindRow(), FP_DNP, FP_SMD, FP_THROUGH_HOLE, FOOTPRINT::GetAttributes(), BOARD::GetDesignSettings(), FOOTPRINT::GetFPID(), LIB_TABLE_ROW::GetFullURI(), FOOTPRINT::GetLayer(), BOARD_ITEM::GetLayerSet(), LIB_ID::GetLibNickname(), FOOTPRINT::GetOrientation(), FOOTPRINT::GetPosition(), BOARD::GetProject(), FOOTPRINT::GetReference(), EDA_IU_SCALE::IUTomm(), m_board, EXPORTER_STEP_PARAMS::m_boardOnly, EXPORTER_STEP_PARAMS::m_exportComponents, EXPORTER_STEP_PARAMS::m_exportTracksVias, EXPORTER_STEP_PARAMS::m_includeDNP, EXPORTER_STEP_PARAMS::m_includeUnspecified, BOARD_DESIGN_SETTINGS::m_MaxError, EXPORTER_STEP_PARAMS::m_netFilter, m_params, m_pcbModel, m_poly_copper_shapes, m_resolver, EXPORTER_STEP_PARAMS::m_substModels, FOOTPRINT::Models(), pad, FOOTPRINT::Pads(), PROJECT_PCB::PcbFootprintLibs(), pcbIUScale, ReportMessage(), LSET::Seq(), FOOTPRINT::TransformFPShapesToPolySet(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by buildBoard3DShapes().
|
private |
Definition at line 389 of file exporter_step.cpp.
References ERROR_INSIDE, BOARD::GetDesignSettings(), PCB_SHAPE::GetLayer(), BOARD_CONNECTED_ITEM::GetNetname(), IsCopperLayer(), m_board, BOARD_DESIGN_SETTINGS::m_MaxError, EXPORTER_STEP_PARAMS::m_netFilter, m_params, m_poly_copper_shapes, and PCB_SHAPE::TransformShapeToPolygon().
Referenced by buildBoard3DShapes().
Definition at line 338 of file exporter_step.cpp.
References ERROR_INSIDE, BOARD::GetDesignSettings(), BOARD_ITEM::GetLayer(), BOARD_CONNECTED_ITEM::GetNetname(), IsCopperLayer(), m_board, BOARD_DESIGN_SETTINGS::m_MaxError, EXPORTER_STEP_PARAMS::m_netFilter, m_params, m_pcbModel, m_poly_copper_shapes, PCB_ARC_T, PCB_VIA_T, PCB_TRACK::TransformShapeToPolygon(), and EDA_ITEM::Type().
Referenced by buildBoard3DShapes().
|
private |
Definition at line 367 of file exporter_step.cpp.
References ADVANCED_CFG::GetCfg(), m_board, EXPORTER_STEP_PARAMS::m_netFilter, m_params, m_pcbModel, SHAPE_POLY_SET::PM_STRICTLY_SIMPLE, SHAPE_POLY_SET::SimplifyOutlines(), SHAPE_POLY_SET::Unfracture(), and BOARD::Zones().
Referenced by buildBoard3DShapes().
bool EXPORTER_STEP::Export | ( | ) |
Definition at line 508 of file exporter_step.cpp.
References _, EXPORTER_STEP_PARAMS::BREP, buildBoard3DShapes(), EXPORTER_STEP_PARAMS::GetDefaultExportExtension(), BOARD::GetFileName(), EXPORTER_STEP_PARAMS::GetFormatName(), GetRunningMicroSecs(), EXPORTER_STEP_PARAMS::GLB, m_board, 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(), EXPORTER_STEP_PARAMS::STEP, and EXPORTER_STEP_PARAMS::XAO.
Referenced by PCBNEW_JOBS_HANDLER::JobExportStep().
|
inline |
Definition at line 112 of file exporter_step.h.
References m_error.
Referenced by KiCadPrinter::Send().
|
inline |
Definition at line 113 of file exporter_step.h.
References m_fail.
Referenced by KiCadPrinter::Send().
|
inline |
Definition at line 114 of file exporter_step.h.
References m_warn.
Referenced by KiCadPrinter::Send().
|
private |
Definition at line 131 of file exporter_step.h.
Referenced by buildBoard3DShapes(), buildFootprint3DShapes(), buildGraphic3DShape(), buildTrack3DShape(), buildZones3DShape(), and Export().
|
private |
Definition at line 141 of file exporter_step.h.
Referenced by buildBoard3DShapes(), and EXPORTER_STEP().
|
private |
Definition at line 127 of file exporter_step.h.
Referenced by Export(), and SetError().
|
private |
Definition at line 128 of file exporter_step.h.
wxString EXPORTER_STEP::m_outputFile |
Definition at line 110 of file exporter_step.h.
Referenced by Export(), and PCBNEW_JOBS_HANDLER::JobExportStep().
|
private |
Definition at line 123 of file exporter_step.h.
Referenced by buildBoard3DShapes(), buildFootprint3DShapes(), buildGraphic3DShape(), buildTrack3DShape(), buildZones3DShape(), and Export().
|
private |
the name of the project (board short filename (no path, no ext) used to identify items in step file
Definition at line 136 of file exporter_step.h.
Referenced by buildBoard3DShapes(), and EXPORTER_STEP().
|
private |
Definition at line 132 of file exporter_step.h.
Referenced by buildBoard3DShapes(), buildFootprint3DShapes(), buildTrack3DShape(), buildZones3DShape(), and Export().
|
private |
Definition at line 138 of file exporter_step.h.
Referenced by buildBoard3DShapes(), buildFootprint3DShapes(), buildGraphic3DShape(), and buildTrack3DShape().
|
private |
Definition at line 124 of file exporter_step.h.
Referenced by buildFootprint3DShapes(), and EXPORTER_STEP().
|
private |
Definition at line 140 of file exporter_step.h.
Referenced by buildBoard3DShapes(), and EXPORTER_STEP().
|
private |
Definition at line 129 of file exporter_step.h.