|
KiCad PCB EDA Suite
|
#include <import_fabmaster.h>
Classes | |
| struct | CLASS |
| struct | COMPONENT |
| struct | FABMASTER_LAYER |
| A!LAYER_SORT!LAYER_SUBCLASS!LAYER_ARTWORK!LAYER_USE!LAYER_CONDUCTOR!LAYER_DIELECTRIC_CONSTANT !LAYER_ELECTRICAL_CONDUCTIVITY!LAYER_MATERIAL!LAYER_SHIELD_LAYER!LAYER_THERMAL_CONDUCTIVITY!LAYER_THICKNESS! More... | |
| struct | FABMASTER_PAD_SHAPE |
| A!SUBCLASS!PAD_SHAPE_NAME!GRAPHIC_DATA_NAME!GRAPHIC_DATA_NUMBER!RECORD_TAG!GRAPHIC_DATA_1! More... | |
| struct | FM_PAD |
| struct | FM_PAD_LAYER |
| Per-layer pad geometry within a pad stack. More... | |
| struct | FM_VIA |
| struct | GEOM_GRAPHIC |
| struct | GRAPHIC_ARC |
| struct | GRAPHIC_CROSS |
| struct | GRAPHIC_DATA |
| struct | GRAPHIC_ITEM |
| struct | GRAPHIC_LINE |
| struct | GRAPHIC_OBLONG |
| struct | GRAPHIC_POLYGON |
| struct | GRAPHIC_RECTANGLE |
| struct | GRAPHIC_TEXT |
| struct | NETNAME |
| struct | PIN |
| struct | SYMBOL |
| struct | TRACE |
Public Types | |
| using | single_row = std::vector<std::string> |
Public Member Functions | |
| FABMASTER () | |
| bool | Read (const std::string &aFile) |
| bool | Process () |
| void | SetReporter (REPORTER *aReporter) |
| Set the reporter used for import diagnostics. | |
| bool | LoadBoard (BOARD *aBoard, PROGRESS_REPORTER *aProgressReporter) |
Private Types | |
| enum | section_type : int { UNKNOWN_EXTRACT , EXTRACT_PADSTACKS , EXTRACT_PAD_SHAPES , EXTRACT_FULL_LAYERS , EXTRACT_VIAS , FABMASTER_EXTRACT_PINS , EXTRACT_PINS , EXTRACT_TRACES , EXTRACT_GRAPHICS , EXTRACT_BASIC_LAYERS , EXTRACT_NETS , EXTRACT_REFDES } |
| enum | COMPCLASS { COMPCLASS_NONE , COMPCLASS_IO , COMPCLASS_IC , COMPCLASS_DISCRETE } |
| enum | SYMTYPE { SYMTYPE_NONE , SYMTYPE_PACKAGE , SYMTYPE_MECH , SYMTYPE_FORMAT , SYMTYPE_DRAFTING } |
| enum | GRAPHIC_SHAPE { GR_SHAPE_LINE , GR_SHAPE_TEXT , GR_SHAPE_RECTANGLE , GR_SHAPE_ARC , GR_SHAPE_CIRCLE , GR_SHAPE_OBLONG , GR_SHAPE_CROSS , GR_SHAPE_POLYGON } |
| enum | GRAPHIC_TYPE { GR_TYPE_NONE , GR_TYPE_CONNECT , GR_TYPE_NOTCONNECT , GR_TYPE_SHAPE , GR_TYPE_POLYGON , GR_TYPE_VOID } |
| using | graphic_element = std::set<std::unique_ptr<GRAPHIC_ITEM>, GRAPHIC_ITEM::SEQ_CMP> |
Private Member Functions | |
| section_type | detectType (size_t aOffset) |
| void | checkpoint () |
| int | execute_recordbuffer (int filetype) |
| int | getColFromName (size_t aRow, const std::string &aStr) |
| SYMTYPE | parseSymType (const std::string &aSymType) |
| COMPCLASS | parseCompClass (const std::string &aCompClass) |
| double | processScaleFactor (size_t aRow) |
| Processes data from text vectors into internal database for further ordering. | |
| size_t | processPadStacks (size_t aRow) |
| A!PADNAME!RECNUMBER!LAYER!FIXFLAG!VIAFLAG!PADSHAPE1!PADWIDTH!PADHGHT! | |
| size_t | processCustomPads (size_t aRow) |
| A!SUBCLASS!PAD_SHAPE_NAME!GRAPHIC_DATA_NAME!GRAPHIC_DATA_NUMBER!RECORD_TAG!GRAPHIC_DATA_1! | |
| size_t | processGeometry (size_t aRow) |
| A!GRAPHIC_DATA_NAME!GRAPHIC_DATA_NUMBER!RECORD_TAG!GRAPHIC_DATA_1!GRAPHIC_DATA_2!GRAPHIC_DATA_3! | |
| size_t | processVias (size_t aRow) |
| A!VIA_X!VIA_Y!PAD_STACK_NAME!NET_NAME!TEST_POINT! | |
| size_t | processTraces (size_t aRow) |
| A!CLASS!SUBCLASS!GRAPHIC_DATA_NAME!GRAPHIC_DATA_NUMBER!RECORD_TAG!GRAPHIC_DATA_1!GRAPHIC_DATA_2! | |
| size_t | processFootprints (size_t aRow) |
| A!REFDES!COMP_CLASS!COMP_PART_NUMBER!COMP_HEIGHT!COMP_DEVICE_LABEL!COMP_INSERTION_CODE!SYM_TYPE! | |
| size_t | processNets (size_t aRow) |
| A!NET_NAME!REFDES!PIN_NUMBER!PIN_NAME!PIN_GROUND!PIN_POWER! | |
| size_t | processLayers (size_t aRow) |
| A!LAYER_SORT!LAYER_SUBCLASS!LAYER_ARTWORK!LAYER_USE!LAYER_CONDUCTOR!LAYER_DIELECTRIC_CONSTANT! | |
| size_t | processSimpleLayers (size_t aRow) |
| size_t | processPadStackLayers (size_t aRow) |
| size_t | processSymbols (size_t aRow) |
| size_t | processPins (size_t aRow) |
| A!SYM_NAME!SYM_MIRROR!PIN_NAME!PIN_NUMBER!PIN_X!PIN_Y!PAD_STACK_NAME!REFDES!PIN_ROTATION! | |
| GRAPHIC_ITEM * | processGraphic (const GRAPHIC_DATA &aData, double aScale) |
| Specialty functions for processing graphical data rows into the internal database. | |
| GRAPHIC_ARC * | processArc (const GRAPHIC_DATA &aData, double aScale) |
| GRAPHIC_ARC * | processCircle (const GRAPHIC_DATA &aData, double aScale) |
| GRAPHIC_LINE * | processLine (const GRAPHIC_DATA &aData, double aScale) |
| GRAPHIC_TEXT * | processText (const GRAPHIC_DATA &aData, double aScale) |
| GRAPHIC_RECTANGLE * | processRectangle (const GRAPHIC_DATA &aData, double aScale) |
| GRAPHIC_RECTANGLE * | processFigRectangle (const GRAPHIC_DATA &aData, double aScale) |
| GRAPHIC_RECTANGLE * | processSquare (const GRAPHIC_DATA &aData, double aScale) |
| GRAPHIC_OBLONG * | processOblong (const GRAPHIC_DATA &aData, double aScale) |
| GRAPHIC_CROSS * | processCross (const GRAPHIC_DATA &aData, double aScale) |
| GRAPHIC_POLYGON * | processPolygon (const GRAPHIC_DATA &aData, double aScale) |
| PCB_LAYER_ID | getLayer (const std::string &aLayerName) |
| bool | assignLayers () |
| double | readDouble (const std::string &aStr) const |
| Reads the double/integer value from a std string independent of the user locale. | |
| int | readInt (const std::string &aStr) const |
| bool | orderZones (BOARD *aBoard) |
| Sets zone priorities based on zone BB size. | |
| bool | loadZones (BOARD *aBoard) |
| Loads sections of the database into the board. | |
| bool | loadOutline (BOARD *aBoard, const std::unique_ptr< TRACE > &aLine) |
| bool | loadNets (BOARD *aBoard) |
| bool | loadLayers (BOARD *aBoard) |
| bool | loadGraphics (BOARD *aBoard) |
| bool | loadVias (BOARD *aBoard) |
| bool | loadEtch (BOARD *aBoard, const std::unique_ptr< TRACE > &aLine) |
| bool | loadZone (BOARD *aBoard, const std::unique_ptr< FABMASTER::TRACE > &aLine) |
| bool | loadPolygon (BOARD *aBoard, const std::unique_ptr< FABMASTER::TRACE > &aLine) |
| bool | loadFootprints (BOARD *aBoard) |
| void | createComponentsFromOrphanPins () |
| Creates synthetic COMPONENT entries from pins that have no matching component. | |
| SHAPE_POLY_SET | loadShapePolySet (const graphic_element &aLine) |
| void | reportError (const wxString &aMsg) const |
| Report a malformed-input issue the user can act on. | |
| template<typename... Args> | |
| void | reportError (const wxString &aFormat, Args &&... aArgs) const |
| template<typename... Args> | |
| void | reportWarning (const wxString &aFormat, Args &&... aArgs) const |
| template<typename... Args> | |
| void | reportInfo (const wxString &aFormat, Args &&... aArgs) const |
Static Private Member Functions | |
| static bool | traceIsOpen (const FABMASTER::TRACE &aLine) |
| static void | setupText (const FABMASTER::GRAPHIC_TEXT &aGraphicText, PCB_LAYER_ID aLayer, PCB_TEXT &aText, const BOARD &aBoard, const OPT_VECTOR2I &aMirrorPoint) |
| Set parameters for graphic text. | |
| static std::vector< std::unique_ptr< BOARD_ITEM > > | createBoardItems (BOARD &aBoard, PCB_LAYER_ID aLayer, FABMASTER::GRAPHIC_ITEM &aGraphic) |
| Convert one Fabmaster graphic item to one or more PCB items. | |
Private Attributes | |
| wxFileName | m_filename |
| std::deque< single_row > | rows |
| bool | has_pads |
| bool | has_comps |
| bool | has_graphic |
| bool | has_nets |
| bool | has_pins |
| std::unordered_map< std::string, FM_PAD > | pads |
| std::map< std::pair< std::string, std::string >, NETNAME > | pin_nets |
| std::set< std::string > | netnames |
| std::map< std::string, FABMASTER_LAYER > | layers |
| std::unordered_map< std::string, FABMASTER_PAD_SHAPE > | pad_shapes |
| std::unordered_map< std::string, SYMBOL > | symbols |
| std::vector< GEOM_GRAPHIC > | board_graphics |
| std::map< std::string, std::map< int, GEOM_GRAPHIC > > | comp_graphics |
| std::vector< std::unique_ptr< FM_VIA > > | vias |
| std::set< std::unique_ptr< TRACE >, TRACE::BY_ID > | traces |
| std::set< std::unique_ptr< TRACE >, TRACE::BY_ID > | zones |
| std::set< std::unique_ptr< TRACE >, TRACE::BY_ID > | polygons |
| std::set< std::unique_ptr< TRACE >, TRACE::BY_ID > | refdes |
| std::map< std::string, std::vector< std::unique_ptr< COMPONENT > > > | components |
| std::map< std::string, std::set< std::unique_ptr< PIN >, PIN::BY_NUM > > | pins |
| std::map< std::string, PCB_LAYER_ID > | layer_map |
| REPORTER * | m_reporter |
| optional; may be nullptr | |
| PROGRESS_REPORTER * | m_progressReporter |
| optional; may be nullptr | |
| unsigned | m_doneCount |
| unsigned | m_lastProgressCount |
| unsigned | m_totalCount |
| for progress reporting | |
Definition at line 48 of file import_fabmaster.h.
|
private |
Definition at line 325 of file import_fabmaster.h.
| using FABMASTER::single_row = std::vector<std::string> |
Definition at line 52 of file import_fabmaster.h.
|
private |
| Enumerator | |
|---|---|
| COMPCLASS_NONE | |
| COMPCLASS_IO | |
| COMPCLASS_IC | |
| COMPCLASS_DISCRETE | |
Definition at line 159 of file import_fabmaster.h.
|
private |
Definition at line 208 of file import_fabmaster.h.
|
private |
| Enumerator | |
|---|---|
| GR_TYPE_NONE | |
| GR_TYPE_CONNECT | |
| GR_TYPE_NOTCONNECT | |
| GR_TYPE_SHAPE | |
| GR_TYPE_POLYGON | |
| GR_TYPE_VOID | |
Definition at line 220 of file import_fabmaster.h.
|
private |
Definition at line 83 of file import_fabmaster.h.
|
private |
| Enumerator | |
|---|---|
| SYMTYPE_NONE | |
| SYMTYPE_PACKAGE | |
| SYMTYPE_MECH | |
| SYMTYPE_FORMAT | |
| SYMTYPE_DRAFTING | |
Definition at line 167 of file import_fabmaster.h.
|
inline |
Definition at line 53 of file import_fabmaster.h.
References has_comps, has_graphic, has_nets, has_pads, has_pins, m_doneCount, m_lastProgressCount, m_progressReporter, m_reporter, and m_totalCount.
|
private |
Definition at line 730 of file import_fabmaster.cpp.
References _, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, FABMASTER::FABMASTER_LAYER::conductive, FABMASTER::FABMASTER_LAYER::disable, Dwgs_User, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, FABMASTER::FABMASTER_LAYER::layerid, layers, FABMASTER::FABMASTER_LAYER::name, reportWarning(), result, traceFabmaster, UNSELECTED_LAYER, User_1, and User_9.
Referenced by Process().
|
private |
Definition at line 62 of file import_fabmaster.cpp.
References _, m_doneCount, m_lastProgressCount, m_progressReporter, m_totalCount, and THROW_IO_ERROR.
Referenced by LoadBoard(), loadFootprints(), loadGraphics(), loadLayers(), loadNets(), loadVias(), and loadZones().
|
staticprivate |
Convert one Fabmaster graphic item to one or more PCB items.
Definition at line 3349 of file import_fabmaster.cpp.
References ANGLE_0, ARC, FABMASTER::GRAPHIC_ARC::center_x, FABMASTER::GRAPHIC_ARC::center_y, CIRCLE, FABMASTER::GRAPHIC_LINE::end_x, FABMASTER::GRAPHIC_RECTANGLE::end_x, FABMASTER::GRAPHIC_LINE::end_y, FABMASTER::GRAPHIC_RECTANGLE::end_y, ERROR_INSIDE, FABMASTER::GRAPHIC_RECTANGLE::fill, SHAPE_ARC::GetArcMid(), BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::GetLineThickness(), SHAPE_ARC::GetP0(), SHAPE_ARC::GetP1(), GR_SHAPE_ARC, GR_SHAPE_CIRCLE, GR_SHAPE_CROSS, GR_SHAPE_LINE, GR_SHAPE_OBLONG, GR_SHAPE_POLYGON, GR_SHAPE_RECTANGLE, GR_SHAPE_TEXT, IsBackLayer(), FABMASTER::GRAPHIC_ITEM::layer, BOARD_DESIGN_SETTINGS::m_MaxError, FABMASTER::GRAPHIC_POLYGON::m_pts, KIGEOM::MakeCrossSegments(), FABMASTER::GRAPHIC_OBLONG::oblong_x, POLY, FABMASTER::GRAPHIC_ARC::radius, RECTANGLE, FABMASTER::GRAPHIC_ARC::result, SEGMENT, FABMASTER::GRAPHIC_ITEM::seq, setupText(), FABMASTER::GRAPHIC_ITEM::shape, FABMASTER::GRAPHIC_CROSS::size_x, FABMASTER::GRAPHIC_OBLONG::size_x, FABMASTER::GRAPHIC_CROSS::size_y, FABMASTER::GRAPHIC_OBLONG::size_y, SOLID, FABMASTER::GRAPHIC_ITEM::start_x, FABMASTER::GRAPHIC_ITEM::start_y, FABMASTER::GRAPHIC_ITEM::subseq, traceFabmaster, SHAPE_SEGMENT::TransformToPolygon(), and FABMASTER::GRAPHIC_ITEM::width.
Referenced by loadEtch(), loadGraphics(), loadOutline(), and loadPolygon().
|
private |
Creates synthetic COMPONENT entries from pins that have no matching component.
This handles Fabmaster exports where the REFDES section is empty but PIN data exists.
Definition at line 2360 of file import_fabmaster.cpp.
References COMPCLASS_IC, components, pin, pins, and SYMTYPE_PACKAGE.
Referenced by LoadBoard().
|
private |
We strip the underscores from all column names as some export variants use them and
Definition at line 193 of file import_fabmaster.cpp.
References _, EXTRACT_BASIC_LAYERS, EXTRACT_FULL_LAYERS, EXTRACT_GRAPHICS, EXTRACT_NETS, EXTRACT_PAD_SHAPES, EXTRACT_PADSTACKS, EXTRACT_PINS, EXTRACT_REFDES, EXTRACT_TRACES, EXTRACT_VIAS, FABMASTER_EXTRACT_PINS, reportError(), rows, and UNKNOWN_EXTRACT.
Referenced by Process().
|
private |
|
private |
Some Fabmaster headers include the underscores while others do not so we strip them uniformly before comparing
Definition at line 309 of file import_fabmaster.cpp.
References _, rows, and THROW_IO_ERRORF.
Referenced by processCustomPads(), processFootprints(), processGeometry(), processLayers(), processNets(), processPadStackLayers(), processPadStacks(), processPins(), processSimpleLayers(), processTraces(), and processVias().
|
private |
Definition at line 331 of file import_fabmaster.cpp.
References layers, and UNDEFINED_LAYER.
Referenced by loadEtch(), loadFootprints(), loadGraphics(), loadPolygon(), loadZone(), and loadZones().
| bool FABMASTER::LoadBoard | ( | BOARD * | aBoard, |
| PROGRESS_REPORTER * | aProgressReporter ) |
Definition at line 3844 of file import_fabmaster.cpp.
References board_graphics, checkpoint(), components, createComponentsFromOrphanPins(), layers, loadEtch(), loadFootprints(), loadGraphics(), loadLayers(), loadNets(), loadOutline(), loadPolygon(), loadVias(), loadZones(), m_doneCount, m_filename, m_progressReporter, m_totalCount, netnames, orderZones(), BOARD::SetFileName(), traces, vias, and zones.
Definition at line 3149 of file import_fabmaster.cpp.
References _, BOARD::Add(), APPEND, createBoardItems(), FABMASTER::GRAPHIC_LINE::end_x, FABMASTER::GRAPHIC_LINE::end_y, getLayer(), BOARD::GetNetInfo(), GR_SHAPE_ARC, GR_SHAPE_LINE, IsCopperLayer(), NETINFO_LIST::NetsByName(), reportError(), FABMASTER::GRAPHIC_ARC::result, PCB_TRACK::SetEnd(), BOARD_CONNECTED_ITEM::SetLayer(), BOARD_CONNECTED_ITEM::SetNet(), PCB_TRACK::SetStart(), PCB_TRACK::SetWidth(), FABMASTER::GRAPHIC_ITEM::start_x, FABMASTER::GRAPHIC_ITEM::start_y, and FABMASTER::GRAPHIC_ITEM::width.
Referenced by LoadBoard().
|
private |
Always set the module to the top and flip later if needed When flipping later, we get the full coordinate transform for free
Definition at line 2402 of file import_fabmaster.cpp.
References _, BOARD::Add(), FOOTPRINT::Add(), SHAPE_POLY_SET::AddHole(), PADSTACK::ALL_LAYERS, APPEND, SHAPE_POLY_SET::Append(), ARC, B_Cu, B_SilkS, FABMASTER::GRAPHIC_ARC::center_x, FABMASTER::GRAPHIC_ARC::center_y, chain, checkpoint(), CIRCLE, circle(), comp_graphics, components, CUSTOM, FABMASTER::FM_PAD_LAYER::custom_name, DEGREES_T, Dwgs_User, FABMASTER::GRAPHIC_ARC::end_x, FABMASTER::GRAPHIC_LINE::end_x, FABMASTER::GRAPHIC_RECTANGLE::end_x, FABMASTER::GRAPHIC_ARC::end_y, FABMASTER::GRAPHIC_LINE::end_y, FABMASTER::GRAPHIC_RECTANGLE::end_y, F_Cu, F_Fab, F_SilkS, FOOTPRINT::Flip(), BOARD::FlipLayer(), FOOTPRINT, SHAPE_POLY_SET::Fracture(), PADSTACK::FRONT_INNER_BACK, SHAPE_ARC::GetArcMid(), SHAPE_ARC::GetCenter(), BOARD::GetDesignSettings(), BOARD::GetFileName(), getLayer(), BOARD::GetNetInfo(), SHAPE_ARC::GetP0(), SHAPE_ARC::GetP1(), FOOTPRINT::GetPosition(), GR_SHAPE_ARC, GR_SHAPE_CIRCLE, GR_SHAPE_LINE, GR_SHAPE_RECTANGLE, GR_SHAPE_TEXT, FABMASTER::FM_PAD_LAYER::height, SHAPE_POLY_SET::Hole(), PADSTACK::INNER_LAYERS, FABMASTER::FM_PAD_LAYER::is_octogon, IsBackLayer(), IsCopperLayer(), IsPcbLayer(), FABMASTER::GRAPHIC_ITEM::layer, layers, LEFT_RIGHT, m_filename, SHAPE_ARC::Mirror(), SHAPE_POLY_SET::Mirror(), SHAPE_POLY_SET::Move(), NETINFO_LIST::NetsByName(), SHAPE_POLY_SET::NewOutline(), EDA_ANGLE::Normalized(), NPTH, OBLONG, SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), pad, pad_shapes, pads, LIB_ID::Parse(), pin, pin_nets, pins, SHAPE_LINE_CHAIN::PointCount(), SHAPE_POLY_SET::Polygon(), PTH, PAD::PTHMask(), RECTANGLE, refdes, FOOTPRINT::Reference(), ReplaceIllegalFileNameChars(), reportError(), reportWarning(), FABMASTER::GRAPHIC_ARC::result, SHAPE_POLY_SET::Rotate(), FABMASTER::GRAPHIC_TEXT::rotation, SEGMENT, PCB_SHAPE::SetEnd(), FOOTPRINT::SetFPID(), BOARD_ITEM::SetLayer(), FOOTPRINT::SetLayer(), PCB_SHAPE::SetLayer(), FOOTPRINT::SetOrientationDegrees(), FOOTPRINT::SetPosition(), FOOTPRINT::SetReference(), PCB_SHAPE::SetStart(), PCB_SHAPE::SetStroke(), PCB_TEXT::SetTextAngle(), setupText(), FOOTPRINT::SetValue(), EDA_TEXT::SetVisible(), FABMASTER::FM_PAD_LAYER::shape, SMD, PAD::SMDMask(), SOLID, FABMASTER::GRAPHIC_ITEM::start_x, FABMASTER::GRAPHIC_ITEM::start_y, FABMASTER::GRAPHIC_TEXT::text, TOP_BOTTOM, traceFabmaster, PAD::UnplatedHoleMask(), USER, FOOTPRINT::Value(), SHAPE_POLY_SET::VertexCount(), FABMASTER::FM_PAD_LAYER::width, FABMASTER::GRAPHIC_ITEM::width, FABMASTER::FM_PAD_LAYER::x_offset, and FABMASTER::FM_PAD_LAYER::y_offset.
Referenced by LoadBoard().
|
private |
Zero-width segments/arcs are polygon outlines
Definition at line 3781 of file import_fabmaster.cpp.
References BOARD::Add(), APPEND, B_SilkS, board_graphics, checkpoint(), Cmts_User, SHAPE_POLY_SET::COutline(), createBoardItems(), F_SilkS, SHAPE_POLY_SET::Fracture(), getLayer(), IsPcbLayer(), loadShapePolySet(), SHAPE_POLY_SET::OutlineCount(), SHAPE_LINE_CHAIN::PointCount(), POLY, EDA_SHAPE::SetFilled(), PCB_SHAPE::SetLayer(), PCB_SHAPE::SetPolyShape(), and PCB_SHAPE::SetStroke().
Referenced by LoadBoard().
|
private |
The basic layers that get enabled for normal boards
Definition at line 3006 of file import_fabmaster.cpp.
References LSET::AllTechMask(), checkpoint(), layers, PCBNEW_LAYER_ID_START, BASE_SET::set(), BOARD::SetEnabledLayers(), BOARD::SetLayerName(), and LSET::UserMask().
Referenced by LoadBoard().
|
private |
Definition at line 3135 of file import_fabmaster.cpp.
References BOARD::Add(), APPEND, checkpoint(), and netnames.
Referenced by LoadBoard().
Definition at line 3758 of file import_fabmaster.cpp.
References BOARD::Add(), APPEND, Cmts_User, createBoardItems(), Dwgs_User, and Edge_Cuts.
Referenced by LoadBoard(), and loadZones().
|
private |
Definition at line 3527 of file import_fabmaster.cpp.
References BOARD::Add(), APPEND, B_SilkS, Cmts_User, SHAPE_POLY_SET::COutline(), createBoardItems(), F_SilkS, SHAPE_POLY_SET::Fracture(), BOARD::GetDesignSettings(), getLayer(), BOARD_DESIGN_SETTINGS::GetLineThickness(), PCB_SHAPE::GetWidth(), IsPcbLayer(), loadShapePolySet(), SHAPE_POLY_SET::OutlineCount(), SHAPE_LINE_CHAIN::PointCount(), POLY, EDA_SHAPE::SetFilled(), PCB_SHAPE::SetLayer(), PCB_SHAPE::SetPolyShape(), PCB_SHAPE::SetShape(), PCB_SHAPE::SetStroke(), SOLID, and traceIsOpen().
Referenced by LoadBoard(), and loadZones().
|
private |
Definition at line 3214 of file import_fabmaster.cpp.
References SHAPE_POLY_SET::AddHole(), SHAPE_POLY_SET::Append(), chain, FABMASTER::GRAPHIC_LINE::end_x, FABMASTER::GRAPHIC_LINE::end_y, GR_SHAPE_ARC, GR_SHAPE_CIRCLE, GR_SHAPE_LINE, SHAPE_POLY_SET::Hole(), SHAPE_POLY_SET::NewOutline(), FABMASTER::GRAPHIC_ARC::result, FABMASTER::GRAPHIC_ITEM::start_x, FABMASTER::GRAPHIC_ITEM::start_y, and SHAPE_POLY_SET::VertexCount().
Referenced by loadGraphics(), and loadPolygon().
|
private |
Definition at line 3036 of file import_fabmaster.cpp.
References BOARD::Add(), PADSTACK::ALL_LAYERS, APPEND, B_Cu, BLIND, BURIED, checkpoint(), F_Cu, BOARD::GetDesignSettings(), BOARD::GetNetInfo(), FABMASTER::FABMASTER_LAYER::layerid, layers, NETINFO_LIST::NetsByName(), pads, PCB_VIA::SetDrill(), PCB_VIA::SetDrillDefault(), PCB_VIA::SetLayerPair(), BOARD_CONNECTED_ITEM::SetNet(), PCB_VIA::SetPosition(), PCB_VIA::SetViaType(), PCB_VIA::SetWidth(), via, and vias.
Referenced by LoadBoard().
|
private |
Definition at line 3590 of file import_fabmaster.cpp.
References _, BOARD::Add(), KIGEOM::AddHoleIfValid(), LSET::AllCuMask(), APPEND, SHAPE_LINE_CHAIN::Append(), SHAPE_LINE_CHAIN::CLastPoint(), Cmts_User, end, FABMASTER::GRAPHIC_LINE::end_x, FABMASTER::GRAPHIC_LINE::end_y, LSET::ExternalCuMask(), VECTOR2< T >::Format(), FULL, getLayer(), BOARD_ITEM::GetLayerName(), BOARD::GetLayerSet(), BOARD::GetNetInfo(), BOARD_CONNECTED_ITEM::GetNetname(), GR_SHAPE_ARC, GR_SHAPE_CIRCLE, GR_SHAPE_LINE, LSET::InternalCuMask(), IsPcbLayer(), NETINFO_LIST::NetsByName(), SHAPE_POLY_SET::NewOutline(), SHAPE_POLY_SET::Outline(), SHAPE_LINE_CHAIN::PointCount(), reportError(), reportInfo(), FABMASTER::GRAPHIC_ARC::result, ZONE::SetAssignedPriority(), ZONE::SetDoNotAllowFootprints(), ZONE::SetDoNotAllowPads(), ZONE::SetDoNotAllowTracks(), ZONE::SetDoNotAllowVias(), ZONE::SetDoNotAllowZoneFills(), ZONE::SetIsRuleArea(), ZONE::SetLayer(), ZONE::SetLayerSet(), ZONE::SetLocalClearance(), ZONE::SetNet(), ZONE::SetOutline(), ZONE::SetPadConnection(), ZONE::SetZoneName(), FABMASTER::GRAPHIC_ITEM::start_x, and FABMASTER::GRAPHIC_ITEM::start_y.
Referenced by loadZones().
|
private |
Loads sections of the database into the board.
| aBoard |
Zones in FABMASTER come in two varieties:
In pcbnew, we want the outline with net code attached. To determine which outline should have which netcode, we look for overlapping areas. Each unnetted zone outline will be assigned the netcode that with the most hits on the edge of their outline.
Definition at line 2195 of file import_fabmaster.cpp.
References SHAPE_LINE_CHAIN::BBox(), checkpoint(), SHAPE_LINE_CHAIN::CPoints(), getLayer(), NETINFO_LIST::GetNetCount(), BOARD::GetNetInfo(), BOX2< Vec >::Intersects(), IsCopperLayer(), isRuleAreaClass(), loadOutline(), loadPolygon(), loadZone(), SHAPE_LINE_CHAIN_BASE::PointOnEdge(), BOARD::Remove(), BOARD::Zones(), and zones.
Referenced by LoadBoard().
|
private |
Sets zone priorities based on zone BB size.
Larger bounding boxes get smaller priorities so smaller zones can knock out areas where they overlap.
| aBoard |
Definition at line 3837 of file import_fabmaster.cpp.
References AutoAssignZonePriorities().
Referenced by LoadBoard().
|
private |
Definition at line 1835 of file import_fabmaster.cpp.
References COMPCLASS_DISCRETE, COMPCLASS_IC, COMPCLASS_IO, and COMPCLASS_NONE.
Referenced by processFootprints().
|
private |
Definition at line 1820 of file import_fabmaster.cpp.
References SYMTYPE_DRAFTING, SYMTYPE_FORMAT, SYMTYPE_MECH, SYMTYPE_NONE, and SYMTYPE_PACKAGE.
Referenced by processFootprints().
| bool FABMASTER::Process | ( | ) |
We extract the basic layers from the padstacks first as this is the only place the stackup is kept in the basic fabmaster export
Definition at line 2079 of file import_fabmaster.cpp.
References assignLayers(), detectType(), EXTRACT_BASIC_LAYERS, EXTRACT_FULL_LAYERS, EXTRACT_GRAPHICS, EXTRACT_NETS, EXTRACT_PAD_SHAPES, EXTRACT_PADSTACKS, EXTRACT_PINS, EXTRACT_REFDES, EXTRACT_TRACES, EXTRACT_VIAS, processCustomPads(), processFootprints(), processGeometry(), processLayers(), processNets(), processPadStackLayers(), processPadStacks(), processPins(), processSimpleLayers(), processTraces(), processVias(), and rows.
|
private |
Definition at line 1089 of file import_fabmaster.cpp.
References ANGLE_0, ANGLE_360, center, FABMASTER::GRAPHIC_ARC::center_x, FABMASTER::GRAPHIC_ARC::center_y, FABMASTER::GRAPHIC_ARC::clockwise, end, FABMASTER::GRAPHIC_ARC::end_x, FABMASTER::GRAPHIC_ARC::end_y, GR_SHAPE_ARC, GR_SHAPE_CIRCLE, FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, FABMASTER::GRAPHIC_DATA::graphic_data6, FABMASTER::GRAPHIC_DATA::graphic_data7, FABMASTER::GRAPHIC_DATA::graphic_data8, FABMASTER::GRAPHIC_DATA::graphic_data9, KiROUND(), EDA_ANGLE::Normalize(), FABMASTER::GRAPHIC_ARC::radius, readDouble(), FABMASTER::GRAPHIC_ARC::result, RotatePoint(), FABMASTER::GRAPHIC_ITEM::shape, FABMASTER::GRAPHIC_ITEM::start_x, FABMASTER::GRAPHIC_ITEM::start_y, and FABMASTER::GRAPHIC_ITEM::width.
Referenced by processGraphic().
|
private |
Definition at line 1140 of file import_fabmaster.cpp.
References _, center, GR_SHAPE_CIRCLE, FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, KiROUND(), readDouble(), reportError(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by processGraphic().
|
private |
Definition at line 1364 of file import_fabmaster.cpp.
References GR_SHAPE_CROSS, FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, KiROUND(), and readDouble().
Referenced by processGraphic().
|
private |
A!SUBCLASS!PAD_SHAPE_NAME!GRAPHIC_DATA_NAME!GRAPHIC_DATA_NUMBER!RECORD_TAG!GRAPHIC_DATA_1!
GRAPHIC_DATA_2!GRAPHIC_DATA_3!GRAPHIC_DATA_4!GRAPHIC_DATA_5!GRAPHIC_DATA_6!GRAPHIC_DATA_7! GRAPHIC_DATA_8!GRAPHIC_DATA_9!PAD_STACK_NAME!REFDES!PIN_NUMBER!
Definition at line 924 of file import_fabmaster.cpp.
References _, getColFromName(), FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, FABMASTER::GRAPHIC_DATA::graphic_data6, FABMASTER::GRAPHIC_DATA::graphic_data7, FABMASTER::GRAPHIC_DATA::graphic_data8, FABMASTER::GRAPHIC_DATA::graphic_data9, FABMASTER::GRAPHIC_DATA::graphic_dataname, FABMASTER::GRAPHIC_DATA::graphic_datanum, name, pad_shapes, processGraphic(), processScaleFactor(), reportError(), and rows.
Referenced by Process().
|
private |
Definition at line 1218 of file import_fabmaster.cpp.
References GR_SHAPE_RECTANGLE, FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, KiROUND(), and readDouble().
Referenced by processGraphic(), and processSquare().
|
private |
A!REFDES!COMP_CLASS!COMP_PART_NUMBER!COMP_HEIGHT!COMP_DEVICE_LABEL!COMP_INSERTION_CODE!SYM_TYPE!
SYM_NAME!SYM_MIRROR!SYM_ROTATE!SYM_X!SYM_Y!COMP_VALUE!COMP_TOL!COMP_VOLTAGE!
Definition at line 1852 of file import_fabmaster.cpp.
References _, components, empty(), getColFromName(), KiROUND(), parseCompClass(), parseSymType(), processScaleFactor(), readDouble(), reportError(), and rows.
Referenced by Process().
|
private |
A!GRAPHIC_DATA_NAME!GRAPHIC_DATA_NUMBER!RECORD_TAG!GRAPHIC_DATA_1!GRAPHIC_DATA_2!GRAPHIC_DATA_3!
GRAPHIC_DATA_4!GRAPHIC_DATA_5!GRAPHIC_DATA_6!GRAPHIC_DATA_7!GRAPHIC_DATA_8!GRAPHIC_DATA_9! SUBCLASS!SYM_NAME!REFDES!
Definition at line 1482 of file import_fabmaster.cpp.
References _, board_graphics, comp_graphics, FABMASTER::GEOM_GRAPHIC::elements, getColFromName(), FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, FABMASTER::GRAPHIC_DATA::graphic_data6, FABMASTER::GRAPHIC_DATA::graphic_data7, FABMASTER::GRAPHIC_DATA::graphic_data8, FABMASTER::GRAPHIC_DATA::graphic_data9, FABMASTER::GRAPHIC_DATA::graphic_dataname, FABMASTER::GRAPHIC_DATA::graphic_datanum, FABMASTER::GEOM_GRAPHIC::id, FABMASTER::GEOM_GRAPHIC::name, processGraphic(), processScaleFactor(), FABMASTER::GEOM_GRAPHIC::refdes, reportError(), rows, and FABMASTER::GEOM_GRAPHIC::subclass.
Referenced by Process().
|
private |
Specialty functions for processing graphical data rows into the internal database.
| aData | Loaded data vector |
| aScale | Prior loaded scale factor |
Definition at line 1430 of file import_fabmaster.cpp.
References GR_TYPE_CONNECT, GR_TYPE_NONE, GR_TYPE_NOTCONNECT, FABMASTER::GRAPHIC_DATA::graphic_data10, FABMASTER::GRAPHIC_DATA::graphic_dataname, processArc(), processCircle(), processCross(), processFigRectangle(), processLine(), processOblong(), processPolygon(), processRectangle(), processSquare(), processText(), and FABMASTER::GRAPHIC_ITEM::type.
Referenced by processCustomPads(), processGeometry(), and processTraces().
|
private |
A!LAYER_SORT!LAYER_SUBCLASS!LAYER_ARTWORK!LAYER_USE!LAYER_CONDUCTOR!LAYER_DIELECTRIC_CONSTANT!
LAYER_ELECTRICAL_CONDUCTIVITY!LAYER_MATERIAL!LAYER_SHIELD_LAYER!LAYER_THERMAL_CONDUCTIVITY! LAYER_THICKNESS!
Definition at line 852 of file import_fabmaster.cpp.
References _, getColFromName(), layers, FABMASTER::FABMASTER_LAYER::name, FABMASTER::FABMASTER_LAYER::positive, processScaleFactor(), reportError(), and rows.
Referenced by Process().
|
private |
Definition at line 1073 of file import_fabmaster.cpp.
References FABMASTER::GRAPHIC_LINE::end_x, FABMASTER::GRAPHIC_LINE::end_y, GR_SHAPE_LINE, FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, KiROUND(), readDouble(), FABMASTER::GRAPHIC_ITEM::shape, FABMASTER::GRAPHIC_ITEM::start_x, FABMASTER::GRAPHIC_ITEM::start_y, and FABMASTER::GRAPHIC_ITEM::width.
Referenced by processGraphic().
|
private |
A!NET_NAME!REFDES!PIN_NUMBER!PIN_NAME!PIN_GROUND!PIN_POWER!
Definition at line 2026 of file import_fabmaster.cpp.
References _, getColFromName(), FABMASTER::NETNAME::name, netnames, FABMASTER::NETNAME::pin_gnd, FABMASTER::NETNAME::pin_name, pin_nets, FABMASTER::NETNAME::pin_num, FABMASTER::NETNAME::pin_pwr, processScaleFactor(), FABMASTER::NETNAME::refdes, reportError(), and rows.
Referenced by Process().
|
private |
Definition at line 1259 of file import_fabmaster.cpp.
References GR_SHAPE_OBLONG, FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, FABMASTER::GRAPHIC_DATA::graphic_dataname, KiROUND(), and readDouble().
Referenced by processGraphic().
|
private |
If the layer ids have not yet been assigned
Definition at line 342 of file import_fabmaster.cpp.
References _, FABMASTER::FABMASTER_LAYER::conductive, getColFromName(), FABMASTER::FABMASTER_LAYER::id, layers, FABMASTER::FABMASTER_LAYER::name, readInt(), reportError(), result, and rows.
Referenced by Process().
|
private |
A!PADNAME!RECNUMBER!LAYER!FIXFLAG!VIAFLAG!PADSHAPE1!PADWIDTH!PADHGHT!
PADXOFF!PADYOFF!PADFLASH!PADSHAPENAME!TRELSHAPE1!TRELWIDTH!TRELHGHT! TRELXOFF!TRELYOFF!TRELFLASH!TRELSHAPENAME!APADSHAPE1!APADWIDTH!APADHGHT! APADXOFF!APADYOFF!APADFLASH!APADSHAPENAME!
Handle the drill layer
All remaining technical layers are not handled
Definition at line 400 of file import_fabmaster.cpp.
References _, B_Cu, CIRCLE, CUSTOM, FABMASTER::FM_PAD_LAYER::custom_name, F_Cu, getColFromName(), FABMASTER::FM_PAD_LAYER::height, FABMASTER::FM_PAD_LAYER::is_octogon, KiROUND(), layers, OVAL, pad, pads, processScaleFactor(), readDouble(), RECTANGLE, reportError(), ROUNDRECT, rows, FABMASTER::FM_PAD_LAYER::shape, FABMASTER::FM_PAD_LAYER::width, FABMASTER::FM_PAD_LAYER::x_offset, and FABMASTER::FM_PAD_LAYER::y_offset.
Referenced by Process().
|
private |
A!SYM_NAME!SYM_MIRROR!PIN_NAME!PIN_NUMBER!PIN_X!PIN_Y!PAD_STACK_NAME!REFDES!PIN_ROTATION!
TEST_POINT!
Definition at line 1948 of file import_fabmaster.cpp.
References _, getColFromName(), KiROUND(), pin, pins, processScaleFactor(), readDouble(), reportError(), and rows.
Referenced by Process().
|
private |
Definition at line 1283 of file import_fabmaster.cpp.
References ANGLE_0, ANGLE_90, FULL_CIRCLE, GR_SHAPE_POLYGON, FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, FABMASTER::GRAPHIC_DATA::graphic_dataname, KiROUND(), KIGEOM::MakeRegularPolygonPoints(), radius, and readDouble().
Referenced by processGraphic().
|
private |
Definition at line 1196 of file import_fabmaster.cpp.
References FABMASTER::GRAPHIC_RECTANGLE::end_x, FABMASTER::GRAPHIC_RECTANGLE::end_y, FABMASTER::GRAPHIC_RECTANGLE::fill, GR_SHAPE_RECTANGLE, FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, KiROUND(), readDouble(), FABMASTER::GRAPHIC_ITEM::shape, FABMASTER::GRAPHIC_ITEM::start_x, FABMASTER::GRAPHIC_ITEM::start_y, and FABMASTER::GRAPHIC_ITEM::width.
Referenced by processGraphic().
|
private |
Processes data from text vectors into internal database for further ordering.
| aRow | vector offset being processed |
Definition at line 269 of file import_fabmaster.cpp.
References _, pcbIUScale, reportError(), and rows.
Referenced by processCustomPads(), processFootprints(), processGeometry(), processLayers(), processNets(), processPadStacks(), processPins(), processSimpleLayers(), processTraces(), and processVias().
|
private |
Definition at line 676 of file import_fabmaster.cpp.
References _, FABMASTER::FABMASTER_LAYER::conductive, getColFromName(), layers, FABMASTER::FABMASTER_LAYER::name, FABMASTER::FABMASTER_LAYER::positive, processScaleFactor(), reportError(), result, and rows.
Referenced by Process().
|
private |
Definition at line 1246 of file import_fabmaster.cpp.
References processFigRectangle().
Referenced by processGraphic().
|
private |
|
private |
Definition at line 1384 of file import_fabmaster.cpp.
References _, GR_SHAPE_TEXT, GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, FABMASTER::GRAPHIC_DATA::graphic_data6, FABMASTER::GRAPHIC_DATA::graphic_data7, FABMASTER::GRAPHIC_TEXT::height, FABMASTER::GRAPHIC_TEXT::ital, KiROUND(), FABMASTER::GRAPHIC_TEXT::mirror, FABMASTER::GRAPHIC_TEXT::orient, readDouble(), reportError(), FABMASTER::GRAPHIC_TEXT::rotation, FABMASTER::GRAPHIC_ITEM::shape, split(), FABMASTER::GRAPHIC_ITEM::start_x, FABMASTER::GRAPHIC_ITEM::start_y, FABMASTER::GRAPHIC_TEXT::text, FABMASTER::GRAPHIC_TEXT::thickness, and FABMASTER::GRAPHIC_ITEM::width.
Referenced by processGraphic().
|
private |
A!CLASS!SUBCLASS!GRAPHIC_DATA_NAME!GRAPHIC_DATA_NUMBER!RECORD_TAG!GRAPHIC_DATA_1!GRAPHIC_DATA_2!
GRAPHIC_DATA_3!GRAPHIC_DATA_4!GRAPHIC_DATA_5!GRAPHIC_DATA_6!GRAPHIC_DATA_7!GRAPHIC_DATA_8! GRAPHIC_DATA_9!NET_NAME!
Definition at line 1669 of file import_fabmaster.cpp.
References _, getColFromName(), FABMASTER::GRAPHIC_DATA::graphic_data1, FABMASTER::GRAPHIC_DATA::graphic_data2, FABMASTER::GRAPHIC_DATA::graphic_data3, FABMASTER::GRAPHIC_DATA::graphic_data4, FABMASTER::GRAPHIC_DATA::graphic_data5, FABMASTER::GRAPHIC_DATA::graphic_data6, FABMASTER::GRAPHIC_DATA::graphic_data7, FABMASTER::GRAPHIC_DATA::graphic_data8, FABMASTER::GRAPHIC_DATA::graphic_data9, FABMASTER::GRAPHIC_DATA::graphic_dataname, FABMASTER::GRAPHIC_DATA::graphic_datanum, processGraphic(), processScaleFactor(), refdes, reportError(), result, rows, traceFabmaster, traces, and zones.
Referenced by Process().
|
private |
A!VIA_X!VIA_Y!PAD_STACK_NAME!NET_NAME!TEST_POINT!
Definition at line 1614 of file import_fabmaster.cpp.
References _, getColFromName(), KiROUND(), processScaleFactor(), readDouble(), reportError(), rows, via, and vias.
Referenced by Process().
| bool FABMASTER::Read | ( | const std::string & | aFile | ) |
Rows end with "!" and we don't want to keep the empty cell
Definition at line 110 of file import_fabmaster.cpp.
References m_filename, and rows.
|
private |
Reads the double/integer value from a std string independent of the user locale.
| aStr | string to generate value from |
Definition at line 82 of file import_fabmaster.cpp.
Referenced by processArc(), processCircle(), processCross(), processFigRectangle(), processFootprints(), processLine(), processOblong(), processPadStacks(), processPins(), processPolygon(), processRectangle(), processText(), and processVias().
|
private |
Definition at line 96 of file import_fabmaster.cpp.
Referenced by processPadStackLayers().
|
inlineprivate |
Definition at line 671 of file import_fabmaster.h.
References m_reporter, and RPT_SEVERITY_ERROR.
|
inlineprivate |
Report a malformed-input issue the user can act on.
Silent when no reporter is attached, which is the case for QA and any other non-interactive caller.
Definition at line 664 of file import_fabmaster.h.
References m_reporter, and RPT_SEVERITY_ERROR.
Referenced by detectType(), loadEtch(), loadFootprints(), loadZone(), processCircle(), processCustomPads(), processFootprints(), processGeometry(), processLayers(), processNets(), processPadStackLayers(), processPadStacks(), processPins(), processScaleFactor(), processSimpleLayers(), processText(), processTraces(), and processVias().
|
inlineprivate |
Definition at line 685 of file import_fabmaster.h.
References m_reporter, and RPT_SEVERITY_INFO.
Referenced by loadZone().
|
inlineprivate |
Definition at line 678 of file import_fabmaster.h.
References m_reporter, and RPT_SEVERITY_WARNING.
Referenced by assignLayers(), and loadFootprints().
|
inline |
Set the reporter used for import diagnostics.
Must be called before Read()/Process(), as that is where the bulk of the parse diagnostics are emitted.
Definition at line 75 of file import_fabmaster.h.
References m_reporter.
|
staticprivate |
Set parameters for graphic text.
Definition at line 2319 of file import_fabmaster.cpp.
References std::abs(), ANGLE_180, ANGLE_90, BOARD::FlipLayer(), GR_TEXT_V_ALIGN_BOTTOM, FABMASTER::GRAPHIC_TEXT::height, FABMASTER::GRAPHIC_TEXT::ital, FABMASTER::GRAPHIC_TEXT::mirror, EDA_ANGLE::Normalize180(), FABMASTER::GRAPHIC_TEXT::orient, FABMASTER::GRAPHIC_TEXT::rotation, EDA_TEXT::SetHorizJustify(), EDA_TEXT::SetItalic(), EDA_TEXT::SetKeepUpright(), BOARD_ITEM::SetLayer(), EDA_TEXT::SetMirrored(), EDA_TEXT::SetText(), PCB_TEXT::SetTextAngle(), EDA_TEXT::SetTextHeight(), EDA_TEXT::SetTextPos(), PCB_TEXT::SetTextThickness(), EDA_TEXT::SetTextWidth(), EDA_TEXT::SetVertJustify(), FABMASTER::GRAPHIC_ITEM::start_x, FABMASTER::GRAPHIC_ITEM::start_y, FABMASTER::GRAPHIC_TEXT::text, FABMASTER::GRAPHIC_TEXT::thickness, and FABMASTER::GRAPHIC_ITEM::width.
Referenced by createBoardItems(), and loadFootprints().
|
staticprivate |
Definition at line 3270 of file import_fabmaster.cpp.
References end, FABMASTER::GRAPHIC_ARC::end_x, FABMASTER::GRAPHIC_LINE::end_x, FABMASTER::GRAPHIC_ARC::end_y, FABMASTER::GRAPHIC_LINE::end_y, GR_SHAPE_ARC, GR_SHAPE_CIRCLE, GR_SHAPE_LINE, FABMASTER::TRACE::segment, FABMASTER::GRAPHIC_ITEM::shape, FABMASTER::GRAPHIC_ITEM::start_x, and FABMASTER::GRAPHIC_ITEM::start_y.
Referenced by loadPolygon().
|
private |
Definition at line 446 of file import_fabmaster.h.
Referenced by LoadBoard(), loadGraphics(), and processGeometry().
|
private |
Definition at line 447 of file import_fabmaster.h.
Referenced by loadFootprints(), and processGeometry().
|
private |
Definition at line 523 of file import_fabmaster.h.
Referenced by createComponentsFromOrphanPins(), LoadBoard(), loadFootprints(), and processFootprints().
|
private |
Definition at line 102 of file import_fabmaster.h.
Referenced by FABMASTER().
|
private |
Definition at line 103 of file import_fabmaster.h.
Referenced by FABMASTER().
|
private |
Definition at line 104 of file import_fabmaster.h.
Referenced by FABMASTER().
|
private |
Definition at line 101 of file import_fabmaster.h.
Referenced by FABMASTER().
|
private |
Definition at line 105 of file import_fabmaster.h.
Referenced by FABMASTER().
|
private |
Definition at line 552 of file import_fabmaster.h.
|
private |
Definition at line 354 of file import_fabmaster.h.
Referenced by assignLayers(), getLayer(), LoadBoard(), loadFootprints(), loadLayers(), loadVias(), processLayers(), processPadStackLayers(), processPadStacks(), and processSimpleLayers().
|
private |
Definition at line 693 of file import_fabmaster.h.
Referenced by checkpoint(), FABMASTER(), and LoadBoard().
|
private |
Definition at line 81 of file import_fabmaster.h.
Referenced by LoadBoard(), loadFootprints(), and Read().
|
private |
Definition at line 694 of file import_fabmaster.h.
Referenced by checkpoint(), and FABMASTER().
|
private |
optional; may be nullptr
Definition at line 692 of file import_fabmaster.h.
Referenced by checkpoint(), FABMASTER(), and LoadBoard().
|
private |
optional; may be nullptr
Definition at line 691 of file import_fabmaster.h.
Referenced by FABMASTER(), reportError(), reportError(), reportInfo(), reportWarning(), and SetReporter().
|
private |
for progress reporting
Definition at line 695 of file import_fabmaster.h.
Referenced by checkpoint(), FABMASTER(), and LoadBoard().
|
private |
Definition at line 199 of file import_fabmaster.h.
Referenced by LoadBoard(), loadNets(), and processNets().
|
private |
Definition at line 378 of file import_fabmaster.h.
Referenced by loadFootprints(), and processCustomPads().
|
private |
Definition at line 157 of file import_fabmaster.h.
Referenced by loadFootprints(), loadVias(), and processPadStacks().
|
private |
Definition at line 198 of file import_fabmaster.h.
Referenced by loadFootprints(), and processNets().
|
private |
Definition at line 550 of file import_fabmaster.h.
Referenced by createComponentsFromOrphanPins(), loadFootprints(), and processPins().
|
private |
Definition at line 488 of file import_fabmaster.h.
|
private |
Definition at line 490 of file import_fabmaster.h.
Referenced by loadFootprints(), and processTraces().
|
private |
Definition at line 99 of file import_fabmaster.h.
Referenced by detectType(), getColFromName(), Process(), processCustomPads(), processFootprints(), processGeometry(), processLayers(), processNets(), processPadStackLayers(), processPadStacks(), processPins(), processScaleFactor(), processSimpleLayers(), processTraces(), processVias(), and Read().
|
private |
Definition at line 421 of file import_fabmaster.h.
|
private |
Definition at line 484 of file import_fabmaster.h.
Referenced by LoadBoard(), and processTraces().
|
private |
Definition at line 461 of file import_fabmaster.h.
Referenced by LoadBoard(), loadVias(), and processVias().
|
private |
Definition at line 486 of file import_fabmaster.h.
Referenced by LoadBoard(), loadZones(), and processTraces().