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

#include <export_gencad_writer.h>

Public Member Functions

 GENCAD_EXPORTER (BOARD *aBoard)
 
bool WriteFile (wxString &aFullFileName)
 Export a genCAD file.
 
void SetPlotOffet (VECTOR2I aOffset)
 Set the coordinates offet when exporting items.
 
void FlipBottomPads (bool aFlip)
 Flip pad shapes on the bottom side.
 
void UsePinNamesUnique (bool aUnique)
 Make pin names unique.
 
void UseIndividualShapes (bool aUnique)
 Make pad shapes unique.
 
void StoreOriginCoordsInFile (bool aStore)
 Store coord origin in genCAD file.
 

Private Member Functions

bool CreateHeaderInfoData ()
 Creates the header section.
 
void CreateArtworksSection ()
 
void CreateTracksInfoData ()
 
void CreateBoardSection ()
 
void CreateComponentsSection ()
 
void CreateDevicesSection ()
 
void CreateRoutesSection ()
 
void CreateSignalsSection ()
 
void CreateShapesSection ()
 
void CreatePadsShapesSection ()
 
void FootprintWriteShape (FOOTPRINT *aFootprint, const wxString &aShapeName)
 
const wxString getShapeName (FOOTPRINT *aFootprint)
 
double MapXTo (int aX)
 
double MapYTo (int aY)
 

Private Attributes

BOARDm_board
 
wxString m_fullFileName
 
FILE * m_file
 
bool m_flipBottomPads
 
bool m_useUniquePins
 
bool m_useIndividualShapes
 
bool m_storeOriginCoords
 
VECTOR2I GencadOffset
 

Detailed Description

Definition at line 24 of file export_gencad_writer.h.

Constructor & Destructor Documentation

◆ GENCAD_EXPORTER()

GENCAD_EXPORTER::GENCAD_EXPORTER ( BOARD aBoard)
inline

Definition at line 27 of file export_gencad_writer.h.

Member Function Documentation

◆ CreateArtworksSection()

void GENCAD_EXPORTER::CreateArtworksSection ( )
private

Definition at line 284 of file export_gencad_writer.cpp.

References m_file.

Referenced by WriteFile().

◆ CreateBoardSection()

void GENCAD_EXPORTER::CreateBoardSection ( )
private

◆ CreateComponentsSection()

◆ CreateDevicesSection()

void GENCAD_EXPORTER::CreateDevicesSection ( )
private

◆ CreateHeaderInfoData()

bool GENCAD_EXPORTER::CreateHeaderInfoData ( )
private

◆ CreatePadsShapesSection()

◆ CreateRoutesSection()

void GENCAD_EXPORTER::CreateRoutesSection ( )
private

◆ CreateShapesSection()

◆ CreateSignalsSection()

void GENCAD_EXPORTER::CreateSignalsSection ( )
private

◆ CreateTracksInfoData()

void GENCAD_EXPORTER::CreateTracksInfoData ( )
private

Definition at line 1113 of file export_gencad_writer.cpp.

References m_board, m_file, SCALE_FACTOR, and BOARD::Tracks().

Referenced by WriteFile().

◆ FlipBottomPads()

void GENCAD_EXPORTER::FlipBottomPads ( bool  aFlip)
inline

Flip pad shapes on the bottom side.

Definition at line 48 of file export_gencad_writer.h.

References m_flipBottomPads.

Referenced by PCB_EDIT_FRAME::ExportToGenCAD().

◆ FootprintWriteShape()

◆ getShapeName()

const wxString GENCAD_EXPORTER::getShapeName ( FOOTPRINT aFootprint)
private

◆ MapXTo()

double GENCAD_EXPORTER::MapXTo ( int  aX)
private

◆ MapYTo()

double GENCAD_EXPORTER::MapYTo ( int  aY)
private

◆ SetPlotOffet()

void GENCAD_EXPORTER::SetPlotOffet ( VECTOR2I  aOffset)
inline

Set the coordinates offet when exporting items.

Definition at line 45 of file export_gencad_writer.h.

References GencadOffset.

Referenced by PCB_EDIT_FRAME::ExportToGenCAD().

◆ StoreOriginCoordsInFile()

void GENCAD_EXPORTER::StoreOriginCoordsInFile ( bool  aStore)
inline

Store coord origin in genCAD file.

Definition at line 57 of file export_gencad_writer.h.

References m_storeOriginCoords.

Referenced by PCB_EDIT_FRAME::ExportToGenCAD().

◆ UseIndividualShapes()

void GENCAD_EXPORTER::UseIndividualShapes ( bool  aUnique)
inline

Make pad shapes unique.

Definition at line 54 of file export_gencad_writer.h.

References m_useIndividualShapes.

Referenced by PCB_EDIT_FRAME::ExportToGenCAD().

◆ UsePinNamesUnique()

void GENCAD_EXPORTER::UsePinNamesUnique ( bool  aUnique)
inline

Make pin names unique.

Definition at line 51 of file export_gencad_writer.h.

References m_useUniquePins.

Referenced by PCB_EDIT_FRAME::ExportToGenCAD().

◆ WriteFile()

bool GENCAD_EXPORTER::WriteFile ( wxString &  aFullFileName)

Member Data Documentation

◆ GencadOffset

VECTOR2I GENCAD_EXPORTER::GencadOffset
private

Definition at line 90 of file export_gencad_writer.h.

Referenced by MapXTo(), MapYTo(), and SetPlotOffet().

◆ m_board

◆ m_file

◆ m_flipBottomPads

bool GENCAD_EXPORTER::m_flipBottomPads
private

◆ m_fullFileName

wxString GENCAD_EXPORTER::m_fullFileName
private

Definition at line 80 of file export_gencad_writer.h.

◆ m_storeOriginCoords

bool GENCAD_EXPORTER::m_storeOriginCoords
private

Definition at line 87 of file export_gencad_writer.h.

Referenced by CreateHeaderInfoData(), and StoreOriginCoordsInFile().

◆ m_useIndividualShapes

bool GENCAD_EXPORTER::m_useIndividualShapes
private

Definition at line 86 of file export_gencad_writer.h.

Referenced by CreateShapesSection(), getShapeName(), and UseIndividualShapes().

◆ m_useUniquePins

bool GENCAD_EXPORTER::m_useUniquePins
private

Definition at line 85 of file export_gencad_writer.h.

Referenced by CreateShapesSection(), and UsePinNamesUnique().


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