|
KiCad PCB EDA Suite
|
#include <sprint_layout_parser.h>
Public Member Functions | |
| SPRINT_LAYOUT_PARSER () | |
| ~SPRINT_LAYOUT_PARSER () | |
| bool | ParseBoard (const wxString &aFileName) |
| bool | ParseMacroFile (const wxString &aFileName) |
| BOARD * | CreateBoard (std::map< wxString, std::unique_ptr< FOOTPRINT > > &aFootprintMap, size_t aBoardIndex=0) |
| FOOTPRINT * | CreateFootprint () |
| const SPRINT_LAYOUT::FILE_DATA & | GetFileData () const |
Private Member Functions | |
| uint8_t | readUint8 () |
| uint16_t | readUint16 () |
| int16_t | readInt16 () |
| uint32_t | readUint32 () |
| uint32_t | readUnsigned () |
| int32_t | readInt32 () |
| int32_t | readSigned () |
| float | readFloat () |
| double | readDouble () |
| float | readCoord () |
| std::string | readFixedString (size_t aMaxLen) |
| std::string | readVarString () |
| void | skip (size_t aBytes) |
| void | seek (int aBytes) |
| void | parseFileStart (const wxString &aFileName) |
| void | parseBoardHeader (SPRINT_LAYOUT::BOARD_DATA &aBoard) |
| void | parseObjectsList (SPRINT_LAYOUT::BOARD_DATA &aBoard) |
| void | parseGroups (SPRINT_LAYOUT::OBJECT &aObj) |
| void | parsePoints (SPRINT_LAYOUT::OBJECT &aObj) |
| void | parseObject (SPRINT_LAYOUT::OBJECT &aObject, bool aIsTextChild=false) |
| void | parseTrailer () |
| PCB_LAYER_ID | mapLayer (uint8_t aSprintLayer) const |
| int | sprintToKicadCoord (float aValue) const |
| VECTOR2I | sprintToKicadPos (float aX, float aY) const |
| wxString | convertString (const std::string &aStr) const |
| bool | layerHasGroundPlane (PCB_LAYER_ID aLayer, const uint8_t aGroundPlane[7]) const |
| NETINFO_ITEM * | resolveItemNet (BOARD *aBoard, const SPRINT_LAYOUT::OBJECT &aObj, PCB_LAYER_ID aLayer, const uint8_t aGroundPlane[7], NETINFO_ITEM *aGndPlaneNet) const |
| void | processPad (BOARD_ITEM_CONTAINER *aContainer, const SPRINT_LAYOUT::OBJECT &aObj, const uint8_t aGroundPlane[7], NETINFO_ITEM *aGndPlaneNet, std::map< uint32_t, std::set< BOARD_ITEM * > > &aGidToItems) |
| void | processCircle (BOARD_ITEM_CONTAINER *aContainer, const SPRINT_LAYOUT::OBJECT &aObj, std::vector< std::vector< VECTOR2I > > &aOutlineSegments, const uint8_t aGroundPlane[7], NETINFO_ITEM *aGndPlaneNet, std::map< uint32_t, std::set< BOARD_ITEM * > > &aGidToItems) |
| void | processLine (BOARD_ITEM_CONTAINER *aContainer, const SPRINT_LAYOUT::OBJECT &aObj, std::vector< std::vector< VECTOR2I > > &aOutlineSegments, const uint8_t aGroundPlane[7], NETINFO_ITEM *aGndPlaneNet, std::map< uint32_t, std::set< BOARD_ITEM * > > &aGidToItems) |
| void | processSegment (BOARD_ITEM_CONTAINER *aContainer, const SPRINT_LAYOUT::OBJECT &aObj, std::vector< std::vector< VECTOR2I > > &aOutlineSegments, const uint8_t aGroundPlane[7], NETINFO_ITEM *aGndPlaneNet, std::map< uint32_t, std::set< BOARD_ITEM * > > &aGidToItems) |
| void | processPoly (BOARD_ITEM_CONTAINER *aContainer, const SPRINT_LAYOUT::OBJECT &aObj, std::vector< std::vector< VECTOR2I > > &aOutlineSegments, const uint8_t aGroundPlane[7], NETINFO_ITEM *aGndPlaneNet, std::map< uint32_t, std::set< BOARD_ITEM * > > &aGidToItems) |
| void | processText (BOARD_ITEM_CONTAINER *aContainer, const SPRINT_LAYOUT::OBJECT &aObj, std::map< uint32_t, std::set< BOARD_ITEM * > > &aGidToItems) |
| void | processItemGroups (BOARD_ITEM *aItem, const SPRINT_LAYOUT::OBJECT &aObj, std::map< uint32_t, std::set< BOARD_ITEM * > > &aGidToItems) |
| void | buildOutline (BOARD *aBoard, std::vector< std::vector< VECTOR2I > > &aOutlineSegments, const SPRINT_LAYOUT::BOARD_DATA &aBoardData) |
| void | resolveGroups (BOARD_ITEM_CONTAINER *aContainer, std::map< uint32_t, std::set< BOARD_ITEM * > > &aGidToItems) |
Private Attributes | |
| SPRINT_LAYOUT::FILE_DATA | m_fileData |
| const uint8_t * | m_pos = nullptr |
| const uint8_t * | m_start = nullptr |
| const uint8_t * | m_end = nullptr |
| std::vector< uint8_t > | m_buffer |
| bool | m_parsingMacro = false |
Definition at line 165 of file sprint_layout_parser.h.
|
default |
|
default |
|
private |
Definition at line 1932 of file sprint_layout_parser.cpp.
References std::abs(), BOARD::Add(), delta, Edge_Cuts, pcbIUScale, SEGMENT, EDA_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), EDA_SHAPE::SetShape(), EDA_SHAPE::SetStart(), EDA_SHAPE::SetWidth(), SPRINT_LAYOUT::BOARD_DATA::size_x, SPRINT_LAYOUT::BOARD_DATA::size_y, sprintToKicadCoord(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by CreateBoard().
|
private |
Definition at line 730 of file sprint_layout_parser.cpp.
Referenced by CreateBoard(), CreateFootprint(), and processText().
| BOARD * SPRINT_LAYOUT_PARSER::CreateBoard | ( | std::map< wxString, std::unique_ptr< FOOTPRINT > > & | aFootprintMap, |
| size_t | aBoardIndex = 0 ) |
Definition at line 844 of file sprint_layout_parser.cpp.
References ZONE::AddPolygon(), anchor, B_Cu, B_SilkS, buildOutline(), SPRINT_LAYOUT::OBJECT::component, SPRINT_LAYOUT::OBJECT::component_id, convertString(), SHAPE_POLY_SET::COutline(), DESCRIPTION, DIAGONAL_EDGE, F_Cu, FOOTPRINT, BOX2< Vec >::GetCenter(), ZONE::GetDefaultHatchPitch(), FOOTPRINT::GetField(), FOOTPRINT::GetFields(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetWidth(), SPRINT_LAYOUT::BOARD_DATA::ground_plane, In1_Cu, In2_Cu, index, SPRINT_LAYOUT::BOARD_DATA::is_multilayer, SPRINT_LAYOUT::OBJECT::layer, SPRINT_LAYOUT::LAYER_I1, SPRINT_LAYOUT::LAYER_I2, m_fileData, mapLayer(), NEVER, SPRINT_LAYOUT::OBJ_CIRCLE, SPRINT_LAYOUT::OBJ_LINE, SPRINT_LAYOUT::OBJ_OUTLINE_TEXT, SPRINT_LAYOUT::OBJ_POLY, SPRINT_LAYOUT::OBJ_SEGMENT, SPRINT_LAYOUT::OBJ_SMD_PAD, SPRINT_LAYOUT::OBJ_STROKE_TEXT, SPRINT_LAYOUT::OBJ_THT_PAD, SPRINT_LAYOUT::BOARD_DATA::objects, pcbIUScale, processCircle(), processLine(), processPad(), processPoly(), processSegment(), processText(), resolveGroups(), RotatePoint(), BASE_SET::set(), ZONE::SetAssignedPriority(), ZONE::SetBorderDisplayStyle(), ZONE::SetIslandRemovalMode(), ZONE::SetIsRuleArea(), BOARD_ITEM::SetLayer(), ZONE::SetLayerSet(), FOOTPRINT::SetLibDescription(), ZONE::SetLocalClearance(), ZONE::SetNet(), FOOTPRINT::SetOrientationDegrees(), EDA_ITEM::SetParent(), FOOTPRINT::SetReference(), EDA_TEXT::SetText(), ZONE::SetThermalReliefGap(), ZONE::SetThermalReliefSpokeWidth(), FOOTPRINT::SetValue(), ZONE::SetZoneName(), SPRINT_LAYOUT::BOARD_DATA::size_x, SPRINT_LAYOUT::BOARD_DATA::size_y, sprintToKicadCoord(), SPRINT_LAYOUT::OBJECT::type, SPRINT_LAYOUT::COMPONENT_DATA::valid, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PCB_IO_SPRINT_LAYOUT::LoadBoard().
| FOOTPRINT * SPRINT_LAYOUT_PARSER::CreateFootprint | ( | ) |
Definition at line 1081 of file sprint_layout_parser.cpp.
References APPEND, convertString(), DEFAULT_COURTYARD_WIDTH, F_CrtYd, BOX2< Vec >::GetEnd(), BOX2< Vec >::GetOrigin(), BOX2< Vec >::Inflate(), m_fileData, SPRINT_LAYOUT::BOARD_DATA::name, SPRINT_LAYOUT::OBJ_CIRCLE, SPRINT_LAYOUT::OBJ_LINE, SPRINT_LAYOUT::OBJ_OUTLINE_TEXT, SPRINT_LAYOUT::OBJ_POLY, SPRINT_LAYOUT::OBJ_SEGMENT, SPRINT_LAYOUT::OBJ_SMD_PAD, SPRINT_LAYOUT::OBJ_STROKE_TEXT, SPRINT_LAYOUT::OBJ_THT_PAD, SPRINT_LAYOUT::BOARD_DATA::objects, pcbIUScale, processCircle(), processLine(), processPad(), processPoly(), processSegment(), processText(), RECTANGLE, resolveGroups(), and SPRINT_LAYOUT::OBJECT::type.
Referenced by PCB_IO_SPRINT_LAYOUT::FootprintLoad().
|
inline |
Definition at line 183 of file sprint_layout_parser.h.
References m_fileData.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_SPRINT_LAYOUT::LoadBoard().
|
private |
Definition at line 776 of file sprint_layout_parser.cpp.
References B_Cu, F_Cu, In1_Cu, In2_Cu, and m_fileData.
Referenced by processPad(), and resolveItemNet().
|
private |
Definition at line 669 of file sprint_layout_parser.cpp.
References B_Cu, B_SilkS, Edge_Cuts, F_Cu, F_SilkS, In1_Cu, In2_Cu, SPRINT_LAYOUT::LAYER_C1, SPRINT_LAYOUT::LAYER_C2, SPRINT_LAYOUT::LAYER_I1, SPRINT_LAYOUT::LAYER_I2, SPRINT_LAYOUT::LAYER_O, SPRINT_LAYOUT::LAYER_S1, SPRINT_LAYOUT::LAYER_S2, and m_fileData.
Referenced by CreateBoard(), processCircle(), processLine(), processPad(), processPoly(), processSegment(), and processText().
| bool SPRINT_LAYOUT_PARSER::ParseBoard | ( | const wxString & | aFileName | ) |
Definition at line 236 of file sprint_layout_parser.cpp.
References _, m_fileData, m_parsingMacro, MAX_OBJECTS, SPRINT_LAYOUT::OBJ_SMD_PAD, SPRINT_LAYOUT::OBJ_THT_PAD, SPRINT_LAYOUT::BOARD_DATA::objects, parseBoardHeader(), parseFileStart(), parseObject(), parseTrailer(), readUnsigned(), and THROW_IO_ERROR.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PCB_IO_SPRINT_LAYOUT::LoadBoard().
|
private |
Definition at line 347 of file sprint_layout_parser.cpp.
References SPRINT_LAYOUT::BOARD_DATA::center_x, SPRINT_LAYOUT::BOARD_DATA::center_y, SPRINT_LAYOUT::BOARD_DATA::ground_plane, SPRINT_LAYOUT::BOARD_DATA::is_multilayer, m_fileData, SPRINT_LAYOUT::BOARD_DATA::name, readDouble(), readFixedString(), readInt32(), readUint32(), readUint8(), SPRINT_LAYOUT::BOARD_DATA::size_x, SPRINT_LAYOUT::BOARD_DATA::size_y, and skip().
Referenced by ParseBoard().
|
private |
Definition at line 314 of file sprint_layout_parser.cpp.
References _, m_buffer, m_end, m_fileData, m_pos, m_start, readUint8(), and THROW_IO_ERROR.
Referenced by ParseBoard(), and ParseMacroFile().
|
private |
Definition at line 437 of file sprint_layout_parser.cpp.
References _, SPRINT_LAYOUT::OBJECT::groups, MAX_GROUPS, readUnsigned(), and THROW_IO_ERROR.
Referenced by parseObject().
| bool SPRINT_LAYOUT_PARSER::ParseMacroFile | ( | const wxString & | aFileName | ) |
Definition at line 298 of file sprint_layout_parser.cpp.
References m_fileData, m_parsingMacro, SPRINT_LAYOUT::BOARD_DATA::name, parseFileStart(), and parseObjectsList().
Referenced by PCB_IO_SPRINT_LAYOUT::FootprintLoad().
|
private |
Definition at line 476 of file sprint_layout_parser.cpp.
References _, SPRINT_LAYOUT::COMPONENT_DATA::center_mode, SPRINT_LAYOUT::OBJECT::clearance, SPRINT_LAYOUT::COMPONENT_DATA::comment, SPRINT_LAYOUT::OBJECT::component, SPRINT_LAYOUT::OBJECT::component_id, SPRINT_LAYOUT::OBJECT::filled, SPRINT_LAYOUT::OBJECT::identifier, SPRINT_LAYOUT::OBJECT::inner, SPRINT_LAYOUT::OBJECT::keepout, SPRINT_LAYOUT::OBJECT::layer, SPRINT_LAYOUT::OBJECT::line_width, m_fileData, MAX_CHILDREN, SPRINT_LAYOUT::OBJECT::mirror_h, SPRINT_LAYOUT::OBJECT::mirror_v, SPRINT_LAYOUT::OBJ_CIRCLE, SPRINT_LAYOUT::OBJ_LINE, SPRINT_LAYOUT::OBJ_OUTLINE_TEXT, SPRINT_LAYOUT::OBJ_POLY, SPRINT_LAYOUT::OBJ_SEGMENT, SPRINT_LAYOUT::OBJ_SMD_PAD, SPRINT_LAYOUT::OBJ_STROKE_TEXT, SPRINT_LAYOUT::OBJ_THT_PAD, SPRINT_LAYOUT::COMPONENT_DATA::off_x, SPRINT_LAYOUT::COMPONENT_DATA::off_y, SPRINT_LAYOUT::OBJECT::outer, SPRINT_LAYOUT::COMPONENT_DATA::package, parseGroups(), parseObject(), parsePoints(), SPRINT_LAYOUT::OBJECT::plated, readCoord(), readDouble(), readFixedString(), readInt16(), readInt32(), readSigned(), readUint16(), readUint32(), readUint8(), readVarString(), SPRINT_LAYOUT::COMPONENT_DATA::rotation, SPRINT_LAYOUT::OBJECT::rotation, skip(), SPRINT_LAYOUT::OBJECT::soldermask, SPRINT_LAYOUT::OBJECT::start_angle, SPRINT_LAYOUT::OBJECT::text, SPRINT_LAYOUT::OBJECT::text_children, THROW_IO_ERROR, SPRINT_LAYOUT::OBJECT::tht_shape, SPRINT_LAYOUT::OBJECT::type, SPRINT_LAYOUT::COMPONENT_DATA::use, SPRINT_LAYOUT::COMPONENT_DATA::valid, SPRINT_LAYOUT::OBJECT::x, and SPRINT_LAYOUT::OBJECT::y.
Referenced by ParseBoard(), parseObject(), and parseObjectsList().
|
private |
Definition at line 423 of file sprint_layout_parser.cpp.
References _, MAX_OBJECTS, SPRINT_LAYOUT::BOARD_DATA::objects, parseObject(), readUnsigned(), and THROW_IO_ERROR.
Referenced by ParseMacroFile().
|
private |
Definition at line 451 of file sprint_layout_parser.cpp.
References _, MAX_POINTS, SPRINT_LAYOUT::OBJECT::points, readCoord(), readUnsigned(), seek(), THROW_IO_ERROR, SPRINT_LAYOUT::POINT::x, and SPRINT_LAYOUT::POINT::y.
Referenced by parseObject().
|
private |
Definition at line 652 of file sprint_layout_parser.cpp.
References m_fileData, readFixedString(), readUint32(), and readVarString().
Referenced by ParseBoard().
|
private |
Definition at line 1597 of file sprint_layout_parser.cpp.
References BOARD_ITEM_CONTAINER::Add(), ARC, center, CIRCLE, DEGREES_T, Edge_Cuts, BOARD_ITEM::GetBoard(), SPRINT_LAYOUT::OBJECT::inner, IsCopperLayer(), SPRINT_LAYOUT::OBJECT::layer, SPRINT_LAYOUT::OBJECT::line_width, m_fileData, M_PI, mapLayer(), SPRINT_LAYOUT::OBJECT::outer, pcbIUScale, processItemGroups(), radius, resolveItemNet(), EDA_SHAPE::SetArcAngleAndEnd(), EDA_SHAPE::SetCenter(), EDA_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), BOARD_CONNECTED_ITEM::SetNet(), EDA_SHAPE::SetShape(), EDA_SHAPE::SetStart(), EDA_SHAPE::SetWidth(), sprintToKicadCoord(), sprintToKicadPos(), SPRINT_LAYOUT::OBJECT::start_angle, SPRINT_LAYOUT::OBJECT::x, and SPRINT_LAYOUT::OBJECT::y.
Referenced by CreateBoard(), and CreateFootprint().
|
private |
Definition at line 1871 of file sprint_layout_parser.cpp.
References SPRINT_LAYOUT::OBJECT::groups.
Referenced by processCircle(), processLine(), processPad(), processPoly(), processSegment(), and processText().
|
private |
Definition at line 1435 of file sprint_layout_parser.cpp.
References BOARD_ITEM_CONTAINER::Add(), Edge_Cuts, BOARD_ITEM::GetBoard(), IsCopperLayer(), SPRINT_LAYOUT::OBJECT::layer, SPRINT_LAYOUT::OBJECT::line_width, mapLayer(), pcbIUScale, SPRINT_LAYOUT::OBJECT::points, processItemGroups(), resolveItemNet(), SEGMENT, EDA_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), BOARD_CONNECTED_ITEM::SetNet(), EDA_SHAPE::SetShape(), EDA_SHAPE::SetStart(), EDA_SHAPE::SetWidth(), sprintToKicadCoord(), and sprintToKicadPos().
Referenced by CreateBoard(), and CreateFootprint().
|
private |
Definition at line 1161 of file sprint_layout_parser.cpp.
References BOARD_ITEM_CONTAINER::Add(), FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, ANGLE_45, ANGLE_90, B_Cu, B_Mask, B_Paste, CHAMFERED_RECT, CIRCLE, clearance, SPRINT_LAYOUT::OBJECT::clearance, F_Cu, F_Mask, F_Paste, FOOTPRINT, BOARD::Footprints(), FULL, BOARD_ITEM::GetBoard(), FOOTPRINT::GetFields(), In1_Cu, In2_Cu, SPRINT_LAYOUT::OBJECT::inner, IsBackLayer(), SPRINT_LAYOUT::OBJECT::layer, layerHasGroundPlane(), m_fileData, mapLayer(), SPRINT_LAYOUT::OBJECT::mirror_h, NONE, SPRINT_LAYOUT::OBJ_THT_PAD, SPRINT_LAYOUT::OBJECT::outer, OVAL, PAD, pad, FOOTPRINT::Pads(), SPRINT_LAYOUT::OBJECT::plated, SPRINT_LAYOUT::OBJECT::points, processItemGroups(), PTH, PAD::PTHMask(), RECT_CHAMFER_ALL, RECTANGLE, FOOTPRINT::Reference(), resolveItemNet(), SPRINT_LAYOUT::OBJECT::rotation, EDA_ANGLE::Round(), BOARD_ITEM::SetLayer(), FOOTPRINT::SetReference(), EDA_TEXT::SetVisible(), SMD, SPRINT_LAYOUT::OBJECT::soldermask, sprintToKicadCoord(), sprintToKicadPos(), SPRINT_LAYOUT::OBJECT::start_angle, THERMAL, SPRINT_LAYOUT::OBJECT::tht_shape, SPRINT_LAYOUT::THT_SHAPE_CIRCLE, SPRINT_LAYOUT::THT_SHAPE_H_CHAMFER, SPRINT_LAYOUT::THT_SHAPE_H_RECT, SPRINT_LAYOUT::THT_SHAPE_H_ROUND, SPRINT_LAYOUT::THT_SHAPE_OCT, SPRINT_LAYOUT::THT_SHAPE_SQUARE, SPRINT_LAYOUT::THT_SHAPE_V_CHAMFER, SPRINT_LAYOUT::THT_SHAPE_V_RECT, SPRINT_LAYOUT::THT_SHAPE_V_ROUND, SPRINT_LAYOUT::OBJECT::type, SPRINT_LAYOUT::OBJECT::x, SPRINT_LAYOUT::POINT::x, VECTOR2< T >::x, SPRINT_LAYOUT::OBJECT::y, SPRINT_LAYOUT::POINT::y, and VECTOR2< T >::y.
Referenced by CreateBoard(), and CreateFootprint().
|
private |
Definition at line 1519 of file sprint_layout_parser.cpp.
References BOARD_ITEM_CONTAINER::Add(), ZONE::AddPolygon(), SHAPE_LINE_CHAIN::Append(), Edge_Cuts, BOARD_ITEM::GetBoard(), IsCopperLayer(), SPRINT_LAYOUT::OBJECT::keepout, SPRINT_LAYOUT::OBJECT::layer, SPRINT_LAYOUT::OBJECT::line_width, mapLayer(), pcbIUScale, SPRINT_LAYOUT::OBJECT::points, POLY, processItemGroups(), resolveItemNet(), SHAPE_LINE_CHAIN::SetClosed(), ZONE::SetDoNotAllowFootprints(), ZONE::SetDoNotAllowPads(), ZONE::SetDoNotAllowTracks(), ZONE::SetDoNotAllowVias(), ZONE::SetDoNotAllowZoneFills(), EDA_SHAPE::SetFilled(), ZONE::SetIsRuleArea(), PCB_SHAPE::SetLayer(), ZONE::SetLayer(), BOARD_CONNECTED_ITEM::SetNet(), EDA_SHAPE::SetPolyShape(), EDA_SHAPE::SetShape(), EDA_SHAPE::SetWidth(), sprintToKicadCoord(), sprintToKicadPos(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by CreateBoard(), and CreateFootprint().
|
private |
Definition at line 1483 of file sprint_layout_parser.cpp.
References BOARD_ITEM_CONTAINER::Add(), Edge_Cuts, end, SPRINT_LAYOUT::OBJECT::inner, SPRINT_LAYOUT::OBJECT::layer, SPRINT_LAYOUT::OBJECT::line_width, mapLayer(), SPRINT_LAYOUT::OBJECT::outer, processItemGroups(), SEGMENT, EDA_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), EDA_SHAPE::SetShape(), EDA_SHAPE::SetStart(), EDA_SHAPE::SetWidth(), sprintToKicadCoord(), sprintToKicadPos(), SPRINT_LAYOUT::OBJECT::x, and SPRINT_LAYOUT::OBJECT::y.
Referenced by CreateBoard(), and CreateFootprint().
|
private |
Definition at line 1721 of file sprint_layout_parser.cpp.
References std::abs(), BOARD_ITEM_CONTAINER::Add(), ANGLE_180, SPRINT_LAYOUT::OBJECT::component_id, convertString(), DEGREES_T, Edge_Cuts, SPRINT_LAYOUT::OBJECT::filled, GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_TOP, SPRINT_LAYOUT::OBJECT::inner, SPRINT_LAYOUT::OBJECT::layer, SPRINT_LAYOUT::OBJECT::line_width, m_fileData, mapLayer(), SPRINT_LAYOUT::OBJECT::mirror_h, SPRINT_LAYOUT::OBJECT::mirror_v, SPRINT_LAYOUT::OBJ_LINE, SPRINT_LAYOUT::OBJ_SEGMENT, SPRINT_LAYOUT::OBJ_STROKE_TEXT, SPRINT_LAYOUT::OBJECT::outer, pcbIUScale, SPRINT_LAYOUT::OBJECT::points, processItemGroups(), FOOTPRINT::Reference(), SPRINT_LAYOUT::OBJECT::rotation, sprintToKicadCoord(), sprintToKicadPos(), SPRINT_LAYOUT::OBJECT::start_angle, text, SPRINT_LAYOUT::OBJECT::text, SPRINT_LAYOUT::OBJECT::text_children, SPRINT_LAYOUT::OBJECT::tht_shape, SPRINT_LAYOUT::OBJECT::type, FOOTPRINT::Value(), SPRINT_LAYOUT::OBJECT::x, SPRINT_LAYOUT::POINT::x, SPRINT_LAYOUT::OBJECT::y, and SPRINT_LAYOUT::POINT::y.
Referenced by CreateBoard(), and CreateFootprint().
|
private |
Definition at line 170 of file sprint_layout_parser.cpp.
References m_fileData, readFloat(), readInt16(), and readInt32().
Referenced by parseObject(), and parsePoints().
|
private |
Definition at line 149 of file sprint_layout_parser.cpp.
References _, m_end, m_pos, and THROW_IO_ERROR.
Referenced by parseBoardHeader(), and parseObject().
|
private |
Definition at line 181 of file sprint_layout_parser.cpp.
References _, m_end, m_pos, readUint8(), and THROW_IO_ERROR.
Referenced by parseBoardHeader(), parseObject(), and parseTrailer().
|
private |
Definition at line 140 of file sprint_layout_parser.cpp.
References readUint32().
Referenced by readCoord().
|
private |
Definition at line 96 of file sprint_layout_parser.cpp.
References readUint16().
Referenced by parseObject(), readCoord(), and readSigned().
|
private |
Definition at line 134 of file sprint_layout_parser.cpp.
References readUint32().
Referenced by parseBoardHeader(), parseObject(), readCoord(), and readSigned().
|
private |
Definition at line 111 of file sprint_layout_parser.cpp.
References m_fileData, readInt16(), and readInt32().
Referenced by parseObject().
|
private |
Definition at line 84 of file sprint_layout_parser.cpp.
References _, m_end, m_pos, and THROW_IO_ERROR.
Referenced by parseObject(), readInt16(), and readUnsigned().
|
private |
Definition at line 120 of file sprint_layout_parser.cpp.
References _, m_end, m_pos, and THROW_IO_ERROR.
Referenced by parseBoardHeader(), parseObject(), parseTrailer(), readFloat(), readInt32(), readUnsigned(), and readVarString().
|
private |
Definition at line 75 of file sprint_layout_parser.cpp.
References _, m_end, m_pos, and THROW_IO_ERROR.
Referenced by parseBoardHeader(), parseFileStart(), parseObject(), and readFixedString().
|
private |
Definition at line 102 of file sprint_layout_parser.cpp.
References m_fileData, readUint16(), and readUint32().
Referenced by ParseBoard(), parseGroups(), parseObjectsList(), and parsePoints().
|
private |
Definition at line 195 of file sprint_layout_parser.cpp.
References _, m_end, m_pos, readUint32(), and THROW_IO_ERROR.
Referenced by parseObject(), and parseTrailer().
|
private |
Definition at line 1879 of file sprint_layout_parser.cpp.
References _, BOARD_ITEM_CONTAINER::Add(), EDA_GROUP::AddItem(), BOARD_ITEM::GetParent(), and group.
Referenced by CreateBoard(), and CreateFootprint().
|
private |
Definition at line 802 of file sprint_layout_parser.cpp.
References SPRINT_LAYOUT::OBJECT::clearance, layerHasGroundPlane(), m_fileData, SPRINT_LAYOUT::OBJECT::mirror_h, SPRINT_LAYOUT::OBJ_SMD_PAD, SPRINT_LAYOUT::OBJ_THT_PAD, and SPRINT_LAYOUT::OBJECT::type.
Referenced by processCircle(), processLine(), processPad(), and processPoly().
|
private |
Definition at line 220 of file sprint_layout_parser.cpp.
References _, m_end, m_pos, m_start, and THROW_IO_ERROR.
Referenced by parsePoints().
|
private |
Definition at line 211 of file sprint_layout_parser.cpp.
References _, m_end, m_pos, and THROW_IO_ERROR.
Referenced by parseBoardHeader(), and parseObject().
|
private |
Definition at line 704 of file sprint_layout_parser.cpp.
References KiROUND(), m_fileData, and pcbIUScale.
Referenced by buildOutline(), CreateBoard(), processCircle(), processLine(), processPad(), processPoly(), processSegment(), processText(), and sprintToKicadPos().
|
private |
Definition at line 723 of file sprint_layout_parser.cpp.
References sprintToKicadCoord().
Referenced by processCircle(), processLine(), processPad(), processPoly(), processSegment(), and processText().
|
private |
Definition at line 255 of file sprint_layout_parser.h.
Referenced by parseFileStart().
|
private |
Definition at line 254 of file sprint_layout_parser.h.
Referenced by parseFileStart(), readDouble(), readFixedString(), readUint16(), readUint32(), readUint8(), readVarString(), seek(), and skip().
|
private |
Definition at line 251 of file sprint_layout_parser.h.
Referenced by CreateBoard(), CreateFootprint(), GetFileData(), layerHasGroundPlane(), mapLayer(), ParseBoard(), parseBoardHeader(), parseFileStart(), ParseMacroFile(), parseObject(), parseTrailer(), processCircle(), processPad(), processText(), readCoord(), readSigned(), readUnsigned(), resolveItemNet(), and sprintToKicadCoord().
|
private |
Definition at line 256 of file sprint_layout_parser.h.
Referenced by ParseBoard(), and ParseMacroFile().
|
private |
Definition at line 252 of file sprint_layout_parser.h.
Referenced by parseFileStart(), readDouble(), readFixedString(), readUint16(), readUint32(), readUint8(), readVarString(), seek(), and skip().
|
private |
Definition at line 253 of file sprint_layout_parser.h.
Referenced by parseFileStart(), and seek().