79 bool ExportPcb(
const int* aLayerLookUpTable,
int aCopperLayers );
147 const VECTOR2I& aOffset = { 0, 0 } );
constexpr EDA_IU_SCALE gerbIUScale
GERBER_FILE_IMAGE_LIST * m_images
void export_stroke_info(double aWidth)
Write the stroke info (thickness, line type) to the board file.
void export_non_copper_arc(const GERBER_DRAW_ITEM *aGbrItem, int aLayer)
Write a non copper arc to the board file.
GBR_TO_PCB_EXPORTER(GERBER_FILE_IMAGE_LIST *aImages, wxWindow *aParent, const wxString &aFileName)
void writePcbZoneItem(const GERBER_DRAW_ITEM *aGbrItem, int aLayer)
Write a zone item to the board file.
void export_segarc_copper_item(const GERBER_DRAW_ITEM *aGbrItem, int aLayer)
Write a set of tracks (arcs are approximated by track segments) to the board file.
void write_trimmed_polygon(const GERBER_DRAW_ITEM *aGbrItem, size_t aIndex, int aLayer)
Write a dark region to the board file, minus the clear items drawn after it.
void export_copper_item(const GERBER_DRAW_ITEM *aGbrItem, size_t aIndex, int aLayer)
Write a track (or via) to the board file.
int m_pcbCopperLayersCount
void export_flashed_copper_item(const GERBER_DRAW_ITEM *aGbrItem, int aLayer)
Write a synthetic pad to the board file.
double MapToPcbUnits(int aValue) const
Map GerbView internal units to millimeters for Pcbnew board files.
std::vector< EXPORT_VIA > m_vias
void collect_hole(const GERBER_DRAW_ITEM *aGbrItem)
Collect holes from a drill layer.
void writePcbPolygon(const SHAPE_POLY_SET &aPolys, int aLayer, const VECTOR2I &aOffset={ 0, 0 })
Write a non-copper polygon to the board file.
void export_non_copper_item(const GERBER_DRAW_ITEM *aGbrItem, size_t aIndex, int aLayer)
Write a non copper line or arc to the board file.
void writePcbFilledCircle(const VECTOR2I &aCenterPosition, int aRadius, int aLayer)
Write a filled circle to the board file (with line thickness = 0).
std::vector< EXPORT_SLOT > m_slots
void export_segline_copper_item(const GERBER_DRAW_ITEM *aGbrItem, int aLayer)
Write a track (not via) to the board file.
void writePcbHeader(const int *aLayerLookUpTable)
Write a very basic header to the board file.
void export_slot(const EXPORT_SLOT &aSlot)
bool ExportPcb(const int *aLayerLookUpTable, int aCopperLayers)
Save a board from a set of Gerber images.
void writeCopperLineItem(const VECTOR2I &aStart, const VECTOR2I &aEnd, int aWidth, int aLayer)
Basic write function to write a a PCB_TRACK to the board file from a non flashed item.
std::vector< CLEAR_SHAPE > m_clearShapes
void collect_clear_shapes(const GERBER_FILE_IMAGE *aImage)
Convert every clear polarity item of an image to a polygon, in file order.
void export_via(const EXPORT_VIA &aVia)
Write a via to the board file.
GERBER_FILE_IMAGE_LIST is a helper class to handle a list of GERBER_FILE_IMAGE files which are loaded...
Hold the image data and parameters for one gerber file and layer parameters.
Represent a set of closed polygons.
EXPORT_SLOT(const VECTOR2I &aStart, const VECTOR2I &aEnd, int aWidth)
EXPORT_VIA(const VECTOR2I &aPos, int aSize, int aDrill)
VECTOR2< int32_t > VECTOR2I