50 bool CanReadBoard(
const wxString& aFileName )
const override;
57 const std::vector<INPUT_LAYER_DESC>& aInputLayerDescriptionVector );
60 void loadBoard(
const wxString& aFileName,
BOARD& aBoard,
bool aIsNewLoad,
61 const std::map<std::string, UTF8>* aProperties,
PROJECT* aProject )
override;
Information pertinent to a Pcbnew printed circuit board.
Plugin class for import plugins that support remappable layers.
const IO_FILE_DESC GetBoardFileDesc() const override
Returns board file description for the PCB_IO.
int scaleSize(double aVal) const
Shorthands for the converter's transform, which the loaders below use everywhere.
std::map< std::string, std::string > m_partToBlockMap
int scaleCoord(double aVal, bool aIsX) const
void setPcbShapeArc(PCB_SHAPE *aShape, const PADS_IO::ARC_POINT &aPrev, const PADS_IO::ARC_POINT &aCurr)
Configure a PCB_SHAPE as an arc from two consecutive PADS points, applying the Y-axis winding fix.
std::map< std::string, std::string > m_pinToNetMap
PCB_LAYER_ID getMappedLayer(int aPadsLayer) const
bool CanReadBoard(const wxString &aFileName) const override
Checks if this PCB_IO can read the specified board file.
long long GetLibraryTimestamp(const wxString &aLibraryPath) const override
Generate a timestamp representing all the files in the library (including the library directory).
const IO_FILE_DESC GetLibraryDesc() const override
Get the descriptor for the library container that this IO plugin operates on.
void loadBoard(const wxString &aFileName, BOARD &aBoard, bool aIsNewLoad, const std::map< std::string, UTF8 > *aProperties, PROJECT *aProject) override
Parse aFileName into aBoard.
double decalUnitScale(const std::string &aUnits) const
Resolve a PADS decal/part UNITS letter to a nm-per-unit scale factor, or 0.0 to use the file's primar...
std::map< wxString, PCB_LAYER_ID > DefaultLayerMappingCallback(const std::vector< INPUT_LAYER_DESC > &aInputLayerDescriptionVector)
Return the automapped layers.
const PADS_IO::PARSER * m_parser
void loadReuseBlockGroups()
std::unique_ptr< PADS_PCB_CONVERTER > m_converter
PCB_IO(const wxString &aName)
Container for project specific data.
PCB_LAYER_ID
A quick note on layer IDs:
Container that describes file type info.
A polyline point that may instead be an arc segment.