|
KiCad PCB EDA Suite
|
Builds a KiCad board from a parsed TARGET 3001! More...
#include <target3001_pcb_builder.h>
Classes | |
| struct | POUR_AREA |
Public Member Functions | |
| TARGET3001_PCB_BUILDER (BOARD *aBoard, const TARGET3001::PROJECT &aProject, REPORTER *aReporter) | |
| void | Build () |
| const wxString & | DesignRules () const |
| Custom rules that carry what KiCad cannot store on the items themselves, empty when none apply. | |
| TARGET3001::LAYER_FUNCTION | LayerFunction (int aLayer) const |
| Function of a TARGET 3001! board layer in this project. | |
Private Member Functions | |
| void | buildLayerMap () |
| void | buildNets () |
| void | buildComponents () |
| void | buildSignalCopper () |
| void | buildAreaSpokes (const std::vector< const TARGET3001::ELEMENT * > &aSpokes) |
| Turn the spokes an old style area stores into thermal reliefs on the pads they start in. | |
| void | buildFreeItems () |
| void | buildPourAreas () |
| void | buildPolygonPours () |
| void | buildThermalGaps () |
| Thermal gaps the stored fill leaves around spoked pads, as zone defaults and pad or footprint overrides. | |
| void | addFootprint (const TARGET3001::ELEMENT &aComponent) |
| void | addItem (const TARGET3001::ELEMENT &aElem, BOARD_ITEM_CONTAINER *aParent, FOOTPRINT *aFootprint, bool aIsTrack) |
| Add one board element to aParent; footprint items are passed with their footprint. | |
| void | addShape (const TARGET3001::ELEMENT &aElem, BOARD_ITEM_CONTAINER *aParent, FOOTPRINT *aFootprint, bool aIsTrack, PCB_LAYER_ID aLayer) |
| Add the graphic or track form of aElem on one KiCad layer. | |
| std::vector< std::unique_ptr< PCB_SHAPE > > | fiducialShapes (const TARGET3001::ELEMENT &aElem, BOARD_ITEM_CONTAINER *aParent) const |
| Strokes and discs that draw a fiducial mark, not yet assigned a layer. | |
| void | addPad (const TARGET3001::ELEMENT &aElem, FOOTPRINT *aFootprint) |
| void | addVia (const TARGET3001::ELEMENT &aElem) |
| void | addText (const TARGET3001::ELEMENT &aElem, BOARD_ITEM_CONTAINER *aParent, FOOTPRINT *aFootprint, PCB_LAYER_ID aLayer) |
| void | configureText (PCB_TEXT *aText, const TARGET3001::ELEMENT &aElem, PCB_LAYER_ID aLayer) |
| std::optional< PCB_LAYER_ID > | mapLayer (int aLayer) const |
| Copper or graphic layer for a board element, if KiCad has a place for it. | |
| std::optional< PCB_LAYER_ID > | pourCopperLayer (int aLayer) const |
| Copper layer that an area or deletion layer applies to. | |
| std::optional< PCB_LAYER_ID > | polygonLayer (const TARGET3001::POLYGON_POUR &aPoly) const |
| Copper layer of a signal polygon that can become a zone. | |
| bool | isCopper (int aLayer) const |
| void | buildAreaClearanceRules () |
| Clearance rules between copper areas and each signal's tracks and vias. | |
| void | buildAuraRules () |
| Rules that keep areas the aura distance from pads and vias, except on their NO_AURA layers. | |
| void | buildPolygonRules () |
| Rules for the board contour and foreign polygon distances each signal polygon keeps. | |
| void | tagAura (BOARD_CONNECTED_ITEM &aItem, const TARGET3001::ELEMENT_BASE &aBase, int aAura) |
| Tag a pad or via with its aura so the aura rules can match it. | |
| NETINFO_ITEM * | net (uint16_t aSignal) const |
| VECTOR2I | toKi (int32_t aX, int32_t aY) const |
| bool | elementOutline (const TARGET3001::ELEMENT &aElem, SHAPE_POLY_SET &aOut) const |
| Outline of a filled element (rectangle, triangle, disc, stroked line or arc) in KiCad coordinates. | |
| void | noteContour (const TARGET3001::ELEMENT &aElem) |
| Record whether a board contour stroke carries a clearance. | |
| std::optional< LSET > | padstackLayers (int aLayer) const |
| Copper, mask and paste layers of the padstack a pad layer >= 101 selects. | |
| void | addPadstackCuts (const BOARD_ITEM &aItem, int aPadstack) |
| Cut aItem, grown per layer, from the pours of the deletion layers padstack aPadstack lists. | |
Private Attributes | |
| BOARD * | m_board |
| const TARGET3001::PROJECT & | m_project |
| REPORTER * | m_reporter |
| std::map< int, PCB_LAYER_ID > | m_layerMap |
| std::vector< int > | m_copperStack |
| TARGET layers, top to bottom. | |
| std::map< uint16_t, NETINFO_ITEM * > | m_nets |
| by signal ID | |
| int | m_freePadCount = 0 |
| std::map< std::pair< int, int >, SHAPE_POLY_SET > | m_copperFills |
| (net, KiCad layer) -> filled copper | |
| std::vector< POUR_AREA > | m_pourAreas |
| std::optional< int > | m_contourLayer |
| first TARGET layer holding the contour | |
| bool | m_contourCarvesNothing = false |
| a contour stroke has no clearance | |
| std::map< int, SHAPE_POLY_SET > | m_pourKeepouts |
| KiCad layer -> pour keepout. | |
| std::map< int64_t, SHAPE_POLY_SET > | m_polygonFills |
| POLYGONID -> stored fill without spokes. | |
| std::map< int64_t, SHAPE_POLY_SET > | m_polygonSpokes |
| POLYGONID -> stored thermal spokes. | |
| std::vector< std::pair< ZONE *, int64_t > > | m_polygonZones |
| thermal polygon zones and their POLYGONID | |
| std::set< int > | m_polygonEdgeClearances |
| std::set< int > | m_polygonAuras |
| bool | m_hasPolygonPours = false |
| std::map< uint16_t, std::map< int, int > > | m_signalClearances |
| Track and via clearances counted per signal, then per clearance value. | |
| std::set< int > | m_auraValues |
| distinct aura distances above zero | |
| std::set< PCB_LAYER_ID > | m_noAuraLayers |
| copper layers some NO_AURA list names | |
| std::set< std::pair< uint16_t, PCB_LAYER_ID > > | m_pourLayers |
| (signal, KiCad layer) holding an area | |
| wxString | m_designRules |
| TARGET3001::FONTS | m_fonts |
Builds a KiCad board from a parsed TARGET 3001!
project.
Board items are stored in absolute board coordinates in the project, including the pads and graphics that belong to a footprint, so footprints are placed first and their items added at their stored positions.
Definition at line 59 of file target3001_pcb_builder.h.
| TARGET3001_PCB_BUILDER::TARGET3001_PCB_BUILDER | ( | BOARD * | aBoard, |
| const TARGET3001::PROJECT & | aProject, | ||
| REPORTER * | aReporter ) |
Definition at line 156 of file target3001_pcb_builder.cpp.
References m_board, m_project, and m_reporter.
|
private |
Definition at line 590 of file target3001_pcb_builder.cpp.
References addItem(), APPEND, B_Cu, TARGET3001::ELEMENT::base, TARGET3001::PACKAGE::bottomSide, comp, TARGET3001::ELEMENT::component, TARGET3001::PACKAGE::direction, FOOTPRINT, TARGET3001::ELEMENT_BASE::layer, LayerFunction(), m_board, TARGET3001::ELEMENT::package, TARGET3001::PACKAGE::package, FOOTPRINT::Reference(), FOOTPRINT::SetFPIDAsString(), FOOTPRINT::SetLayer(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), FOOTPRINT::SetReference(), FOOTPRINT::SetValue(), EDA_TEXT::SetVisible(), toKi(), ToWx(), TARGET3001::ELEMENT::type, FOOTPRINT::Value(), TARGET3001::ELEMENT_BASE::x, and TARGET3001::ELEMENT_BASE::y.
Referenced by buildComponents().
|
private |
Add one board element to aParent; footprint items are passed with their footprint.
Definition at line 1179 of file target3001_pcb_builder.cpp.
References addPad(), addShape(), addText(), addVia(), ALL_COPPER_LAYER, ARC_HIGH_DEF, TARGET3001::ELEMENT::base, configureText(), elementOutline(), ERROR_INSIDE, TARGET3001::ELEMENT_BASE::flags, TARGET3001::ELEMENT_BASE::layer, LayerFunction(), m_board, m_contourLayer, m_pourAreas, m_pourKeepouts, m_project, mapLayer(), noteContour(), pourCopperLayer(), EDA_TEXT::SetText(), TARGET3001::ELEMENT_BASE::signal, TARGET3001::ELEMENT::text, TARGET3001::TEXT::text, ToWx(), PCB_TEXT::TransformTextToPolySet(), TARGET3001::ELEMENT::type, and TARGET3001::TEXT::weight.
Referenced by addFootprint(), buildAreaSpokes(), buildFreeItems(), and buildSignalCopper().
|
private |
Definition at line 1501 of file target3001_pcb_builder.cpp.
References FOOTPRINT::Add(), addPadstackCuts(), PADSTACK::ALL_LAYERS, anchor, ANGLE_0, ANGLE_90, APPEND, B_Cu, B_Mask, B_Paste, TARGET3001::ELEMENT::base, CHAMFERED_RECT, CIRCLE, TARGET3001::PAD::clearance, SHAPE_ELLIPSE::ConvertToPolyline(), CUSTOM, TARGET3001::PAD::direction, TARGET3001::PAD::drill, F_Cu, F_Mask, F_Paste, TARGET3001::ELEMENT_BASE::FindProp(), TARGET3001::FIRST_PADSTACK_LAYER, FOOTPRINT, FP_BOARD_ONLY, FP_EXCLUDE_FROM_BOM, FP_EXCLUDE_FROM_POS_FILES, TARGET3001::PAD::height, IsCopperLayer(), KI_FALLTHROUGH, TARGET3001::ELEMENT_BASE::layer, m_board, m_freePadCount, mapLayer(), net(), NPTH, OBLONG, TARGET3001::OCTAGON, OVAL, TARGET3001::OVAL, pad, TARGET3001::ELEMENT::pad, TARGET3001::PadNumber(), padstackLayers(), pcbIUScale, TARGET3001::POLYGON, PTH, PAD::PTHMask(), RECT_CHAMFER_ALL, RECTANGLE, TARGET3001::RECTANGLE, FOOTPRINT::Reference(), TARGET3001::ROUND, ROUNDRECT, FOOTPRINT::SetAttributes(), FOOTPRINT::SetPosition(), FOOTPRINT::SetReference(), EDA_TEXT::SetVisible(), TARGET3001::PAD::shape, TARGET3001::ELEMENT_BASE::signal, SMD, tagAura(), toKi(), PAD::UnplatedHoleMask(), FOOTPRINT::Value(), TARGET3001::PAD::width, TARGET3001::ELEMENT_BASE::x, VECTOR2< T >::x, TARGET3001::ELEMENT_BASE::y, and VECTOR2< T >::y.
|
private |
Cut aItem, grown per layer, from the pours of the deletion layers padstack aPadstack lists.
Definition at line 1687 of file target3001_pcb_builder.cpp.
References ARC_HIGH_DEF, TARGET3001::BOARD_LAYER_COUNT, ERROR_OUTSIDE, LayerFunction(), m_pourKeepouts, m_project, TARGET3001::PADSTACK_DEF::onLayer, TARGET3001::PADSTACK_DEF::oversize, pourCopperLayer(), and BOARD_ITEM::TransformShapeToPolygon().
|
private |
Add the graphic or track form of aElem on one KiCad layer.
Definition at line 1260 of file target3001_pcb_builder.cpp.
References BOARD_ITEM_CONTAINER::Add(), APPEND, ARC, TARGET3001::ELEMENT::arc, ARC_HIGH_DEF, TARGET3001::ELEMENT::base, BEZIER, center, TARGET3001::ARC::centerX, TARGET3001::ARC::centerY, CIRCLE, clearance, TARGET3001::ARC::clearance, TARGET3001::LINE::clearance, TARGET3001::SPLINE::clearance, TARGET3001::SPLINE::controlX, TARGET3001::SPLINE::controlY, TARGET3001::LINE::dashStyle, DEG2RAD(), TARGET3001::ELEMENT::disc, elementOutline(), end, TARGET3001::SPLINE::endX, TARGET3001::SPLINE::endY, fiducialShapes(), IsCopperLayer(), KiROUND(), TARGET3001::ELEMENT::line, m_board, m_copperFills, m_signalClearances, net(), POLY, TARGET3001::ARC::radius, TARGET3001::DISC::radius, EDA_SHAPE::RebuildBezierToSegmentsPointsList(), SEGMENT, PCB_SHAPE::SetArcGeometry(), PCB_SHAPE::SetBezierC1(), PCB_SHAPE::SetBezierC2(), PCB_SHAPE::SetCenter(), PCB_SHAPE::SetEnd(), PCB_TRACK::SetEnd(), EDA_SHAPE::SetFilled(), BOARD_CONNECTED_ITEM::SetLayer(), PCB_SHAPE::SetLayer(), PCB_ARC::SetMid(), BOARD_CONNECTED_ITEM::SetNet(), PCB_SHAPE::SetPolyShape(), EDA_SHAPE::SetRadius(), PCB_SHAPE::SetStart(), PCB_TRACK::SetStart(), PCB_SHAPE::SetStroke(), PCB_TRACK::SetWidth(), TARGET3001::ELEMENT_BASE::signal, SOLID, TARGET3001::ELEMENT::spline, TARGET3001::ARC::startAngle, TARGET3001::ARC::Sweep(), sweep(), toKi(), TARGET3001::ELEMENT::type, TARGET3001::ARC::width, TARGET3001::LINE::width, TARGET3001::SPLINE::width, TARGET3001::ELEMENT_BASE::x, TARGET3001::LINE::x2, TARGET3001::ELEMENT_BASE::y, and TARGET3001::LINE::y2.
Referenced by addItem().
|
private |
Definition at line 1807 of file target3001_pcb_builder.cpp.
References BOARD_ITEM_CONTAINER::Add(), APPEND, configureText(), TARGET3001::TEXT::function, m_project, FOOTPRINT::Reference(), EDA_TEXT::SetText(), text, TARGET3001::ELEMENT::text, TARGET3001::TEXT::text, ToWx(), and FOOTPRINT::Value().
Referenced by addItem().
|
private |
Definition at line 1740 of file target3001_pcb_builder.cpp.
References addPad(), addPadstackCuts(), PADSTACK::ALL_LAYERS, LSET::AllCuMask(), APPEND, B_Cu, TARGET3001::ELEMENT::base, TARGET3001::PAD::clearance, TARGET3001::PAD::drill, F_Cu, TARGET3001::ELEMENT_BASE::FindProp(), TARGET3001::FIRST_PADSTACK_LAYER, TARGET3001::PAD::height, TARGET3001::ELEMENT_BASE::layer, m_board, m_signalClearances, net(), TARGET3001::OVAL, TARGET3001::ELEMENT::pad, padstackLayers(), TARGET3001::RECTANGLE, TARGET3001::PAD::shape, TARGET3001::ELEMENT_BASE::signal, tagAura(), THROUGH, toKi(), via, TARGET3001::PAD::width, TARGET3001::ELEMENT_BASE::x, and TARGET3001::ELEMENT_BASE::y.
Referenced by addItem().
| void TARGET3001_PCB_BUILDER::Build | ( | ) |
Definition at line 165 of file target3001_pcb_builder.cpp.
References buildAreaClearanceRules(), buildAuraRules(), buildComponents(), buildFreeItems(), buildLayerMap(), buildNets(), buildPolygonPours(), buildPolygonRules(), buildPourAreas(), buildSignalCopper(), buildThermalGaps(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetWidth(), BOX2< Vec >::GetX(), BOX2< Vec >::GetY(), m_board, m_contourCarvesNothing, and pcbIUScale.
Referenced by PCB_IO_TARGET3001::loadBoard().
|
private |
Clearance rules between copper areas and each signal's tracks and vias.
Definition at line 232 of file target3001_pcb_builder.cpp.
References clearance, NETINFO_ITEM::GetNetCode(), NETINFO_ITEM::GetNetname(), m_designRules, m_hasPolygonPours, m_pourLayers, m_signalClearances, name, net(), ruleLiteral(), and ruleMm().
Referenced by Build().
|
private |
Turn the spokes an old style area stores into thermal reliefs on the pads they start in.
Definition at line 706 of file target3001_pcb_builder.cpp.
References addItem(), DEGREES_T, NETINFO_ITEM::GetNetCode(), IsCopperLayer(), TARGET3001::ELEMENT_BASE::layer, TARGET3001::ELEMENT::line, m_board, m_pourAreas, mapLayer(), net(), pad, PCB_VIA_T, RotatePoint(), TARGET3001::ELEMENT_BASE::signal, THERMAL, toKi(), via, TARGET3001::LINE::width, TARGET3001::ELEMENT_BASE::x, and TARGET3001::ELEMENT_BASE::y.
Referenced by buildSignalCopper().
|
private |
Rules that keep areas the aura distance from pads and vias, except on their NO_AURA layers.
Definition at line 289 of file target3001_pcb_builder.cpp.
References m_auraValues, m_designRules, m_noAuraLayers, m_pourLayers, LSET::Name(), name, and ruleMm().
Referenced by Build().
|
private |
Definition at line 580 of file target3001_pcb_builder.cpp.
References addFootprint(), TARGET3001::ELEMENT::component, m_project, and TARGET3001::ELEMENT::type.
Referenced by Build().
|
private |
|
private |
Definition at line 369 of file target3001_pcb_builder.cpp.
References _, B_Adhes, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, BOARD_LAYER_COUNT, BoardLayerFromLegacyId(), Cmts_User, Dwgs_User, Edge_Cuts, F_Adhes, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, LayerFunction(), m_board, m_contourLayer, m_copperStack, m_layerMap, MAX_CU_LAYERS, BASE_SET::set(), THROW_IO_ERROR, top(), User_1, and User_9.
Referenced by Build().
|
private |
Definition at line 550 of file target3001_pcb_builder.cpp.
References APPEND, TARGET3001::ELEMENT::base, m_board, m_nets, m_project, name, TARGET3001::ELEMENT::signal, TARGET3001::ELEMENT_BASE::signal, ToWx(), and TARGET3001::ELEMENT::type.
Referenced by Build().
|
private |
Definition at line 852 of file target3001_pcb_builder.cpp.
References ALWAYS, APPEND, SHAPE_POLY_SET::Append(), TARGET3001::POLYGON_POUR::aura, TARGET3001::ELEMENT::base, SHAPE_POLY_SET::BooleanAdd(), TARGET3001::POLYGON_POUR::edgeClearance, SHAPE_POLY_SET::Fracture(), FULL, TARGET3001::POLYGON_POUR::id, SHAPE_POLY_SET::IsEmpty(), m_board, m_hasPolygonPours, m_polygonAuras, m_polygonEdgeClearances, m_polygonFills, m_polygonSpokes, m_polygonZones, m_project, net(), NEVER, SHAPE_POLY_SET::NewOutline(), ZONE::Outline(), TARGET3001::POLYGON_POUR::outline, pcbIUScale, polygonLayer(), TARGET3001::POLYGON_POUR::rank, TARGET3001::POLYGON_POUR::removeIslands, ZONE::SetAssignedPriority(), EDA_ITEM::SetCustomProperty(), ZONE::SetFilledPolysList(), ZONE::SetIsFilled(), ZONE::SetIslandRemovalMode(), ZONE::SetLayer(), ZONE::SetLocalClearance(), ZONE::SetMinThickness(), ZONE::SetNeedRefill(), ZONE::SetNet(), ZONE::SetPadConnection(), ZONE::SetThermalReliefSpokeWidth(), TARGET3001::ELEMENT::signal, TARGET3001::ELEMENT_BASE::signal, SHAPE_POLY_SET::Simplify(), THERMAL, TARGET3001::POLYGON_POUR::thermals, toKi(), TARGET3001::ELEMENT::type, and TARGET3001::POLYGON_POUR::width.
Referenced by Build().
|
private |
Rules for the board contour and foreign polygon distances each signal polygon keeps.
Definition at line 1058 of file target3001_pcb_builder.cpp.
References clearance, m_designRules, m_polygonAuras, m_polygonEdgeClearances, and ruleMm().
Referenced by Build().
|
private |
Definition at line 799 of file target3001_pcb_builder.cpp.
References APPEND, m_board, m_pourAreas, m_pourKeepouts, m_pourLayers, net(), NEVER, ZONE::Outline(), EDA_ITEM::SetCustomProperty(), ZONE::SetDoNotAllowFootprints(), ZONE::SetDoNotAllowPads(), ZONE::SetDoNotAllowTracks(), ZONE::SetDoNotAllowVias(), ZONE::SetDoNotAllowZoneFills(), ZONE::SetIslandRemovalMode(), ZONE::SetIsRuleArea(), ZONE::SetLayer(), ZONE::SetLocalClearance(), and ZONE::SetNet().
Referenced by Build().
|
private |
Definition at line 641 of file target3001_pcb_builder.cpp.
References addItem(), APPEND, TARGET3001::ELEMENT::base, buildAreaSpokes(), elementOutline(), TARGET3001::ELEMENT_BASE::FlagProp(), TARGET3001::ELEMENT_BASE::flags, TARGET3001::POLYGON_POUR::id, TARGET3001::ELEMENT::line, m_board, m_copperFills, m_polygonFills, m_polygonSpokes, m_project, net(), POLY, TARGET3001::ELEMENT_BASE::PolygonId(), polygonLayer(), TARGET3001::LINE::roundEnds, EDA_SHAPE::SetFilled(), PCB_SHAPE::SetLayer(), BOARD_CONNECTED_ITEM::SetNet(), PCB_SHAPE::SetPolyShape(), PCB_SHAPE::SetStroke(), TARGET3001::ELEMENT::signal, SOLID, TARGET3001::ELEMENT_BASE::status, and TARGET3001::ELEMENT::type.
Referenced by Build().
|
private |
Thermal gaps the stored fill leaves around spoked pads, as zone defaults and pad or footprint overrides.
Definition at line 930 of file target3001_pcb_builder.cpp.
References SHAPE_POLY_SET::Collide(), KiROUND(), m_board, m_designRules, m_polygonFills, m_polygonSpokes, m_polygonZones, pad, pcbIUScale, ruleLiteral(), and ruleMm().
Referenced by Build().
|
private |
Definition at line 1781 of file target3001_pcb_builder.cpp.
References TARGET3001::ELEMENT::base, TARGET3001::FONTS::BaselineShift(), TARGET3001::TEXT::direction, end, TARGET3001::ELEMENT_BASE::flags, PCB_TEXT::GetTextPos(), GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, m_fonts, TARGET3001::TEXT::mirrored, EDA_TEXT::SetHorizJustify(), BOARD_ITEM::SetLayer(), EDA_TEXT::SetMirrored(), PCB_TEXT::SetTextAngle(), EDA_TEXT::SetTextPos(), EDA_TEXT::SetVertJustify(), EDA_TEXT::SetVisible(), TARGET3001::ELEMENT::text, TARGET3001::ELEMENT_BASE::TextRightEnd(), toKi(), TARGET3001::TEXT::weight, TARGET3001::ELEMENT_BASE::x, and TARGET3001::ELEMENT_BASE::y.
|
inline |
Custom rules that carry what KiCad cannot store on the items themselves, empty when none apply.
Definition at line 67 of file target3001_pcb_builder.h.
References m_designRules.
Referenced by PCB_IO_TARGET3001::loadBoard().
|
private |
Outline of a filled element (rectangle, triangle, disc, stroked line or arc) in KiCad coordinates.
Definition at line 1087 of file target3001_pcb_builder.cpp.
References SHAPE_POLY_SET::Append(), TARGET3001::ELEMENT::arc, ARC_HIGH_DEF, TARGET3001::ELEMENT::base, center, TARGET3001::ARC::centerX, TARGET3001::ARC::centerY, DEG2RAD(), TARGET3001::RECTANGLE::direction, TARGET3001::ELEMENT::disc, ERROR_INSIDE, F_Cu, fiducialShapes(), TARGET3001::RECTANGLE::height, KiROUND(), TARGET3001::ELEMENT::line, m_board, SHAPE_POLY_SET::NewOutline(), TARGET3001::ARC::radius, TARGET3001::DISC::radius, TARGET3001::ELEMENT::rectangle, RotatePoint(), TARGET3001::ARC::startAngle, TARGET3001::ARC::Sweep(), sweep(), toKi(), TransformArcToPolygon(), TransformCircleToPolygon(), TransformOvalToPolygon(), TransformRingToPolygon(), TARGET3001::ELEMENT::triangle, TARGET3001::ELEMENT::type, TARGET3001::ARC::width, TARGET3001::LINE::width, TARGET3001::RECTANGLE::width, TARGET3001::ELEMENT_BASE::x, VECTOR2< T >::x, TARGET3001::LINE::x2, TARGET3001::ELEMENT_BASE::y, VECTOR2< T >::y, and TARGET3001::LINE::y2.
Referenced by addItem(), addShape(), and buildSignalCopper().
|
private |
Strokes and discs that draw a fiducial mark, not yet assigned a layer.
Definition at line 1451 of file target3001_pcb_builder.cpp.
References TARGET3001::ELEMENT::base, CIRCLE, circle(), TARGET3001::CROSSHAIR_RINGS, DEG2RAD(), TARGET3001::FIDUCIAL::direction, TARGET3001::ELEMENT::fiducial, TARGET3001::FILLED_CIRCLE, TARGET3001::FIDUCIAL::kind, KiROUND(), TARGET3001::FIDUCIAL::radius, SEGMENT, SOLID, toKi(), TARGET3001::FIDUCIAL::width, TARGET3001::ELEMENT_BASE::x, and TARGET3001::ELEMENT_BASE::y.
Referenced by addShape(), and elementOutline().
|
private |
Definition at line 206 of file target3001_pcb_builder.cpp.
References LayerFunction().
Referenced by pourCopperLayer(), and tagAura().
| LAYER_FUNCTION TARGET3001_PCB_BUILDER::LayerFunction | ( | int | aLayer | ) | const |
Function of a TARGET 3001! board layer in this project.
Definition at line 197 of file target3001_pcb_builder.cpp.
References BOARD_LAYER_COUNT, and m_project.
Referenced by addFootprint(), addItem(), addPadstackCuts(), buildLayerMap(), isCopper(), and pourCopperLayer().
|
private |
Copper or graphic layer for a board element, if KiCad has a place for it.
Definition at line 493 of file target3001_pcb_builder.cpp.
References m_layerMap.
Referenced by addItem(), addPad(), buildAreaSpokes(), padstackLayers(), polygonLayer(), pourCopperLayer(), and tagAura().
|
private |
Definition at line 573 of file target3001_pcb_builder.cpp.
References m_nets.
Referenced by addPad(), addShape(), addVia(), buildAreaClearanceRules(), buildAreaSpokes(), buildPolygonPours(), buildPourAreas(), and buildSignalCopper().
|
private |
Record whether a board contour stroke carries a clearance.
Definition at line 1168 of file target3001_pcb_builder.cpp.
References TARGET3001::ELEMENT::arc, TARGET3001::ARC::clearance, TARGET3001::LINE::clearance, TARGET3001::SPLINE::clearance, TARGET3001::ELEMENT::line, m_contourCarvesNothing, TARGET3001::ELEMENT::spline, and TARGET3001::ELEMENT::type.
Referenced by addItem().
|
private |
Copper, mask and paste layers of the padstack a pad layer >= 101 selects.
Definition at line 1712 of file target3001_pcb_builder.cpp.
References B_Paste, TARGET3001::BOARD_LAYER_COUNT, F_Paste, TARGET3001::FIRST_PADSTACK_LAYER, index, IsCopperLayer(), IsSolderMaskLayer(), m_project, mapLayer(), and BASE_SET::set().
|
private |
Copper layer of a signal polygon that can become a zone.
Definition at line 539 of file target3001_pcb_builder.cpp.
References IsCopperLayer(), TARGET3001::POLYGON_POUR::layer, mapLayer(), and TARGET3001::POLYGON_POUR::outline.
Referenced by buildPolygonPours(), and buildSignalCopper().
|
private |
Copper layer that an area or deletion layer applies to.
Definition at line 504 of file target3001_pcb_builder.cpp.
References BOARD_LAYER_COUNT, isCopper(), LayerFunction(), m_project, mapLayer(), and NO_ASSOCIATION.
Referenced by addItem(), and addPadstackCuts().
|
private |
Tag a pad or via with its aura so the aura rules can match it.
Definition at line 333 of file target3001_pcb_builder.cpp.
References TARGET3001::ELEMENT_BASE::FindProp(), isCopper(), m_auraValues, m_noAuraLayers, mapLayer(), LSET::Name(), and EDA_ITEM::SetCustomProperty().
|
inlineprivate |
Definition at line 133 of file target3001_pcb_builder.h.
Referenced by addFootprint(), addPad(), addShape(), addVia(), buildAreaSpokes(), buildPolygonPours(), configureText(), elementOutline(), and fiducialShapes().
|
private |
distinct aura distances above zero
Definition at line 176 of file target3001_pcb_builder.h.
Referenced by buildAuraRules(), and tagAura().
|
private |
Definition at line 154 of file target3001_pcb_builder.h.
Referenced by addFootprint(), addItem(), addPad(), addShape(), addVia(), Build(), buildAreaSpokes(), buildFreeItems(), buildLayerMap(), buildNets(), buildPolygonPours(), buildPourAreas(), buildSignalCopper(), buildThermalGaps(), elementOutline(), and TARGET3001_PCB_BUILDER().
|
private |
a contour stroke has no clearance
Definition at line 165 of file target3001_pcb_builder.h.
Referenced by Build(), and noteContour().
|
private |
first TARGET layer holding the contour
Definition at line 164 of file target3001_pcb_builder.h.
Referenced by addItem(), and buildLayerMap().
|
private |
(net, KiCad layer) -> filled copper
Definition at line 162 of file target3001_pcb_builder.h.
Referenced by addShape(), and buildSignalCopper().
|
private |
TARGET layers, top to bottom.
Definition at line 159 of file target3001_pcb_builder.h.
Referenced by buildLayerMap().
|
private |
Definition at line 179 of file target3001_pcb_builder.h.
Referenced by buildAreaClearanceRules(), buildAuraRules(), buildPolygonRules(), buildThermalGaps(), and DesignRules().
|
private |
Definition at line 180 of file target3001_pcb_builder.h.
Referenced by configureText().
|
private |
Definition at line 161 of file target3001_pcb_builder.h.
Referenced by addPad().
|
private |
Definition at line 172 of file target3001_pcb_builder.h.
Referenced by buildAreaClearanceRules(), and buildPolygonPours().
|
private |
Definition at line 158 of file target3001_pcb_builder.h.
Referenced by buildLayerMap(), and mapLayer().
|
private |
by signal ID
Definition at line 160 of file target3001_pcb_builder.h.
Referenced by buildNets(), and net().
|
private |
copper layers some NO_AURA list names
Definition at line 177 of file target3001_pcb_builder.h.
Referenced by buildAuraRules(), and tagAura().
|
private |
Definition at line 171 of file target3001_pcb_builder.h.
Referenced by buildPolygonPours(), and buildPolygonRules().
|
private |
Definition at line 170 of file target3001_pcb_builder.h.
Referenced by buildPolygonPours(), and buildPolygonRules().
|
private |
POLYGONID -> stored fill without spokes.
Definition at line 167 of file target3001_pcb_builder.h.
Referenced by buildPolygonPours(), buildSignalCopper(), and buildThermalGaps().
|
private |
POLYGONID -> stored thermal spokes.
Definition at line 168 of file target3001_pcb_builder.h.
Referenced by buildPolygonPours(), buildSignalCopper(), and buildThermalGaps().
|
private |
thermal polygon zones and their POLYGONID
Definition at line 169 of file target3001_pcb_builder.h.
Referenced by buildPolygonPours(), and buildThermalGaps().
|
private |
Definition at line 163 of file target3001_pcb_builder.h.
Referenced by addItem(), buildAreaSpokes(), and buildPourAreas().
|
private |
KiCad layer -> pour keepout.
Definition at line 166 of file target3001_pcb_builder.h.
Referenced by addItem(), addPadstackCuts(), and buildPourAreas().
|
private |
(signal, KiCad layer) holding an area
Definition at line 178 of file target3001_pcb_builder.h.
Referenced by buildAreaClearanceRules(), buildAuraRules(), and buildPourAreas().
|
private |
Definition at line 155 of file target3001_pcb_builder.h.
Referenced by addItem(), addPadstackCuts(), addText(), buildComponents(), buildFreeItems(), buildNets(), buildPolygonPours(), buildSignalCopper(), LayerFunction(), padstackLayers(), pourCopperLayer(), and TARGET3001_PCB_BUILDER().
|
private |
Definition at line 156 of file target3001_pcb_builder.h.
Referenced by TARGET3001_PCB_BUILDER().
|
private |
Track and via clearances counted per signal, then per clearance value.
Definition at line 175 of file target3001_pcb_builder.h.
Referenced by addShape(), addVia(), and buildAreaClearanceRules().