KiCad PCB EDA Suite
Loading...
Searching...
No Matches
EXPORTER_STEP Class Reference

#include <exporter_step.h>

Public Member Functions

 EXPORTER_STEP (BOARD *aBoard, const EXPORTER_STEP_PARAMS &aParams, REPORTER *aReporter)
 
 ~EXPORTER_STEP ()
 
bool Export ()
 

Public Attributes

wxString m_outputFile
 

Private Member Functions

bool buildBoard3DShapes ()
 
bool buildFootprint3DShapes (FOOTPRINT *aFootprint, const VECTOR2D &aOrigin, SHAPE_POLY_SET *aClipPolygon)
 
bool buildTrack3DShape (PCB_TRACK *aTrack, const VECTOR2D &aOrigin)
 
void buildZones3DShape (VECTOR2D aOrigin)
 
bool buildGraphic3DShape (BOARD_ITEM *aItem, const VECTOR2D &aOrigin)
 
void initOutputVariant ()
 
bool isLayerInBackdrillSpan (PCB_LAYER_ID aLayer, PCB_LAYER_ID aStartLayer, PCB_LAYER_ID aEndLayer) const
 Check if a copper layer is within a backdrill layer span (inclusive).
 

Private Attributes

EXPORTER_STEP_PARAMS m_params
 
std::unique_ptr< FILENAME_RESOLVERm_resolver
 
REPORTERm_reporter
 
BOARDm_board
 
std::unique_ptr< STEP_PCB_MODELm_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, std::map< wxString, SHAPE_POLY_SET > > m_poly_shapes
 
std::map< PCB_LAYER_ID, SHAPE_POLY_SETm_poly_holes
 
LSET m_layersToExport
 
KIGFX::COLOR4D m_copperColor
 
KIGFX::COLOR4D m_padColor
 
int m_platingThickness
 

Detailed Description

Definition at line 46 of file exporter_step.h.

Constructor & Destructor Documentation

◆ EXPORTER_STEP()

EXPORTER_STEP::EXPORTER_STEP ( BOARD * aBoard,
const EXPORTER_STEP_PARAMS & aParams,
REPORTER * aReporter )

◆ ~EXPORTER_STEP()

EXPORTER_STEP::~EXPORTER_STEP ( )

Definition at line 156 of file exporter_step.cpp.

Member Function Documentation

◆ buildBoard3DShapes()

◆ buildFootprint3DShapes()

bool EXPORTER_STEP::buildFootprint3DShapes ( FOOTPRINT * aFootprint,
const VECTOR2D & aOrigin,
SHAPE_POLY_SET * aClipPolygon )
private

◆ buildGraphic3DShape()

◆ buildTrack3DShape()

◆ buildZones3DShape()

void EXPORTER_STEP::buildZones3DShape ( VECTOR2D aOrigin)
private

◆ Export()

◆ initOutputVariant()

◆ isLayerInBackdrillSpan()

bool EXPORTER_STEP::isLayerInBackdrillSpan ( PCB_LAYER_ID aLayer,
PCB_LAYER_ID aStartLayer,
PCB_LAYER_ID aEndLayer ) const
private

Check if a copper layer is within a backdrill layer span (inclusive).

Parameters
aLayerThe layer to check
aStartLayerThe backdrill start layer
aEndLayerThe backdrill end layer
Returns
true if the layer is within the span (inclusive)

Definition at line 161 of file exporter_step.cpp.

References B_Cu, F_Cu, In1_Cu, IsCopperLayer(), IsInnerCopperLayer(), and MAX_CU_LAYERS.

Referenced by buildFootprint3DShapes(), and buildTrack3DShape().

Member Data Documentation

◆ m_board

BOARD* EXPORTER_STEP::m_board
private

◆ m_copperColor

KIGFX::COLOR4D EXPORTER_STEP::m_copperColor
private

Definition at line 93 of file exporter_step.h.

Referenced by buildBoard3DShapes(), and EXPORTER_STEP().

◆ m_layersToExport

LSET EXPORTER_STEP::m_layersToExport
private

◆ m_outputFile

wxString EXPORTER_STEP::m_outputFile

Definition at line 54 of file exporter_step.h.

Referenced by Export(), and PCBNEW_JOBS_HANDLER::JobExportStep().

◆ m_padColor

KIGFX::COLOR4D EXPORTER_STEP::m_padColor
private

Definition at line 94 of file exporter_step.h.

Referenced by buildBoard3DShapes(), and EXPORTER_STEP().

◆ m_params

◆ m_pcbBaseName

wxString EXPORTER_STEP::m_pcbBaseName
private

the name of the project (board short filename (no path, no ext) used to identify items in step file

Definition at line 85 of file exporter_step.h.

Referenced by buildBoard3DShapes(), and EXPORTER_STEP().

◆ m_pcbModel

std::unique_ptr<STEP_PCB_MODEL> EXPORTER_STEP::m_pcbModel
private

◆ m_platingThickness

int EXPORTER_STEP::m_platingThickness
private

Definition at line 96 of file exporter_step.h.

Referenced by buildFootprint3DShapes(), buildTrack3DShape(), and EXPORTER_STEP().

◆ m_poly_holes

std::map<PCB_LAYER_ID, SHAPE_POLY_SET> EXPORTER_STEP::m_poly_holes
private

Definition at line 89 of file exporter_step.h.

Referenced by buildBoard3DShapes(), buildFootprint3DShapes(), and buildTrack3DShape().

◆ m_poly_shapes

std::map<PCB_LAYER_ID, std::map<wxString, SHAPE_POLY_SET> > EXPORTER_STEP::m_poly_shapes
private

◆ m_reporter

REPORTER* EXPORTER_STEP::m_reporter
private

Definition at line 78 of file exporter_step.h.

Referenced by buildBoard3DShapes(), buildFootprint3DShapes(), Export(), and EXPORTER_STEP().

◆ m_resolver

std::unique_ptr<FILENAME_RESOLVER> EXPORTER_STEP::m_resolver
private

Definition at line 75 of file exporter_step.h.

Referenced by buildFootprint3DShapes(), and EXPORTER_STEP().


The documentation for this class was generated from the following files: