|
KiCad PCB EDA Suite
|
Writes a board or footprint in the KiCad 9.0 file format. More...
#include <pcb_writer_v9.h>
Public Member Functions | |
| PCB_WRITER_V9 () | |
| void | SaveBoard (const wxString &aFileName, BOARD *aBoard) |
| void | SaveFootprintFile (const wxString &aFileName, FOOTPRINT *aFootprint) |
Static Public Attributes | |
| static constexpr int | FORMAT_VERSION = 20241229 |
Private Member Functions | |
| void | Format (const BOARD_ITEM *aItem) const |
| void | formatSetup (const BOARD *aBoard) const |
| void | formatGeneral (const BOARD *aBoard) const |
| void | formatBoardLayers (const BOARD *aBoard) const |
| void | formatNetInformation (const BOARD *aBoard) const |
| void | formatProperties (const BOARD *aBoard) const |
| void | formatHeader (const BOARD *aBoard) const |
| void | formatTeardropParameters (const TEARDROP_PARAMETERS &tdParams) const |
| void | format (const BOARD *aBoard) const |
| void | format (const PCB_DIMENSION_BASE *aDimension) const |
| void | format (const PCB_REFERENCE_IMAGE *aBitmap) const |
| void | format (const PCB_GROUP *aGroup) const |
| void | format (const PCB_SHAPE *aSegment) const |
| void | format (const PCB_TARGET *aTarget) const |
| void | format (const FOOTPRINT *aFootprint) const |
| void | format (const PAD *aPad) const |
| void | format (const PCB_TEXT *aText) const |
| void | format (const PCB_TEXTBOX *aTextBox) const |
| void | format (const PCB_TABLE *aTable) const |
| void | format (const PCB_GENERATOR *aGenerator) const |
| void | format (const PCB_TRACK *aTrack) const |
| void | format (const ZONE *aZone) const |
| void | formatPolyPts (const SHAPE_LINE_CHAIN &aOutline, const FOOTPRINT *aParentFP=nullptr) const |
| void | formatRenderCache (const EDA_TEXT *aText) const |
| void | formatLayer (PCB_LAYER_ID aLayer, bool aIsKnockout=false) const |
| void | formatLayers (LSET aLayerMask, bool aEnumerateLayers) const |
| void | formatTenting (const PADSTACK &aPadstack) const |
Private Attributes | |
| BOARD * | m_board |
| OUTPUTFORMATTER * | m_out |
| int | m_ctl |
| NET_MAPPING_V9 | m_mapping |
Writes a board or footprint in the KiCad 9.0 file format.
Extracted from the 9.0.0 release, so it can only emit what that release can read back.
Definition at line 74 of file pcb_writer_v9.h.
|
inline |
Definition at line 79 of file pcb_writer_v9.h.
|
private |
Definition at line 247 of file pcb_writer_v9.cpp.
References format(), KIGFX::VIEW_ITEM::GetClass(), PCB_ARC_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_FIELD_T, PCB_FOOTPRINT_T, PCB_GENERATOR_T, PCB_GROUP_T, PCB_PAD_T, PCB_REFERENCE_IMAGE_T, PCB_SHAPE_T, PCB_T, PCB_TABLE_T, PCB_TARGET_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_TRACE_T, PCB_VIA_T, PCB_ZONE_T, and EDA_ITEM::Type().
Referenced by format(), format(), SaveBoard(), and SaveFootprintFile().
|
private |
Definition at line 571 of file pcb_writer_v9.cpp.
References EMBEDDED_FILES::AddFile(), EMBEDDED_FILES::ClearEmbeddedFiles(), CTL_FOR_BOARD, BOARD::Drawings(), EMBEDDED_FILES::EmbeddedFileMap(), BOARD::Footprints(), Format(), KICAD_FORMAT::LEGACY::FormatEmbeddedFilesV9(), formatHeader(), BOARD::Generators(), EMBEDDED_FILES::GetAreFontsEmbedded(), BOARD::GetEmbeddedFiles(), FOOTPRINT::GetEmbeddedFiles(), group, BOARD::Groups(), EMBEDDED_FILES::IsEmpty(), m_ctl, m_out, BOARD::Tracks(), and BOARD::Zones().
|
private |
Definition at line 880 of file pcb_writer_v9.cpp.
References FOOTPRINT::AllowMissingCourtyard(), FOOTPRINT::AllowSolderMaskBridges(), KIID_PATH::AsString(), CTL_FOR_BOARD, CTL_OMIT_AT, CTL_OMIT_FOOTPRINT_VERSION, CTL_OMIT_INITIAL_COMMENTS, CTL_OMIT_LIBNAME, CTL_OMIT_PATH, CTL_OMIT_UUIDS, Format(), format(), FORMAT_VERSION, EDA_UNIT_UTILS::FormatAngle(), KICAD_FORMAT::LEGACY::FormatBool(), FormatDouble2Str(), KICAD_FORMAT::LEGACY::FormatEmbeddedFilesV9(), formatInternalUnits(), formatLayer(), KICAD_FORMAT::LEGACY::FormatLibId(), KICAD_FORMAT::LEGACY::FormatUuid(), FP_BOARD_ONLY, FP_DNP, FP_EXCLUDE_FROM_BOM, FP_EXCLUDE_FROM_POS_FILES, FP_SMD, FP_THROUGH_HOLE, EMBEDDED_FILES::GetAreFontsEmbedded(), FOOTPRINT::GetAttributes(), COMPONENT_CLASS::GetConstituentClasses(), FOOTPRINT::GetEmbeddedFiles(), FOOTPRINT::GetFields(), FOOTPRINT::GetFilters(), FOOTPRINT::GetFPID(), FOOTPRINT::GetInitialComments(), FOOTPRINT::GetKeywords(), FOOTPRINT::GetLayer(), FOOTPRINT::GetLibDescription(), LIB_ID::GetLibItemName(), FOOTPRINT::GetLocalClearance(), FOOTPRINT::GetLocalSolderMaskMargin(), FOOTPRINT::GetLocalSolderPasteMargin(), FOOTPRINT::GetLocalSolderPasteMarginRatio(), FOOTPRINT::GetLocalZoneConnection(), GetMajorMinorVersion(), FOOTPRINT::GetNetTiePadGroups(), FOOTPRINT::GetOrientation(), FOOTPRINT::GetPath(), FOOTPRINT::GetPosition(), FOOTPRINT::GetPrivateLayers(), FOOTPRINT::GetSheetfile(), FOOTPRINT::GetSheetname(), FOOTPRINT::GetStaticComponentClass(), FOOTPRINT::GraphicalItems(), group, FOOTPRINT::Groups(), INHERITED, EMBEDDED_FILES::IsEmpty(), FOOTPRINT::IsLocked(), FOOTPRINT::IsNetTie(), FOOTPRINT::IsPlaced(), EDA_ANGLE::IsZero(), m_ctl, m_out, EDA_ITEM::m_Uuid, FOOTPRINT::Models(), LSET::Name(), pad, FOOTPRINT::Pads(), FOOTPRINT::Reference(), LSET::Seq(), TO_UTF8, FOOTPRINT::Value(), and FOOTPRINT::Zones().
|
private |
Definition at line 1205 of file pcb_writer_v9.cpp.
References _, ANGLE_45, ANGLE_90, ARC, B_Cu, BEZIER, BGA, CASTELLATED, CHAMFERED_RECT, CIRCLE, PADSTACK::Clearance(), CONN, CONVEXHULL, CTL_OMIT_PAD_NETS, LSET::CuStack(), CUSTOM, delta, F_Cu, FIDUCIAL_GLBL, FIDUCIAL_LOCAL, EDA_UNIT_UTILS::FormatAngle(), KICAD_FORMAT::LEGACY::FormatBool(), FormatDouble2Str(), formatInternalUnits(), formatLayers(), formatPolyPts(), formatTeardropParameters(), formatTenting(), KICAD_FORMAT::LEGACY::FormatUuid(), PADSTACK::FRONT_INNER_BACK, PAD::GetAnchorPadShape(), PAD::GetAttribute(), BOARD_ITEM::GetBoard(), PAD::GetChamferPositions(), PAD::GetChamferRectRatio(), BOARD::GetCopperLayerCount(), PAD::GetCustomShapeInZoneOpt(), PAD::GetDelta(), PAD::GetDrillShape(), PAD::GetDrillSize(), BOARD::GetEnabledLayers(), BOARD_ITEM::GetFPRelativePosition(), PAD::GetKeepTopBottom(), PAD::GetLayerSet(), PAD::GetLocalClearance(), PAD::GetLocalSolderMaskMargin(), PAD::GetLocalSolderPasteMargin(), PAD::GetLocalSolderPasteMarginRatio(), PAD::GetLocalThermalGapOverride(), PAD::GetLocalThermalSpokeWidthOverride(), PAD::GetLocalZoneConnection(), BOARD_CONNECTED_ITEM::GetNetCode(), BOARD_CONNECTED_ITEM::GetNetname(), PAD::GetNumber(), PAD::GetOffset(), PAD::GetOrientation(), PAD::GetPadToDieLength(), PAD::GetPinFunction(), PAD::GetPinType(), PAD::GetPrimitives(), PAD::GetProperty(), PAD::GetRemoveUnconnected(), PAD::GetRoundRectRadiusRatio(), PAD::GetShape(), PAD::GetSize(), BOARD_CONNECTED_ITEM::GetTeardropParams(), PAD::GetThermalSpokeAngle(), PAD::GetZoneLayerOverride(), HEATSINK, INHERITED, PADSTACK::INNER_LAYERS, isDefaultTeardropParameters(), EDA_ANGLE::IsZero(), m_ctl, m_mapping, m_out, EDA_ITEM::m_Uuid, MAX_CU_LAYERS, MECHANICAL, PADSTACK::Mode(), LSET::Name(), NONE, PADSTACK::NORMAL, NPTH, OBLONG, SHAPE_POLY_SET::Outline(), OVAL, PAD::Padstack(), POLY, PTH, RECT_CHAMFER_BOTTOM_LEFT, RECT_CHAMFER_BOTTOM_RIGHT, RECT_CHAMFER_TOP_LEFT, RECT_CHAMFER_TOP_RIGHT, RECTANGLE, ROUNDRECT, SEGMENT, SMD, TESTPOINT, PADSTACK::ThermalGap(), PADSTACK::ThermalSpokeAngle(), PADSTACK::ThermalSpokeWidth(), THROW_IO_ERROR, TRAPEZOID, NETINFO_LIST::UNCONNECTED, VECTOR2< T >::x, VECTOR2< T >::y, ZLO_FORCE_FLASHED, and PADSTACK::ZoneConnection().
|
private |
Definition at line 635 of file pcb_writer_v9.cpp.
References center, format(), KICAD_FORMAT::LEGACY::FormatBool(), formatInternalUnits(), formatLayer(), KICAD_FORMAT::LEGACY::FormatUuid(), PCB_DIMENSION_BASE::GetArrowDirection(), PCB_DIMENSION_BASE::GetArrowLength(), PCB_DIMENSION_BASE::GetEnd(), PCB_DIM_ALIGNED::GetExtensionHeight(), PCB_DIMENSION_BASE::GetExtensionOffset(), PCB_DIM_ALIGNED::GetHeight(), PCB_DIMENSION_BASE::GetKeepTextAligned(), BOARD_ITEM::GetLayer(), PCB_DIM_RADIAL::GetLeaderLength(), PCB_DIMENSION_BASE::GetLineThickness(), PCB_DIMENSION_BASE::GetOverrideText(), PCB_DIMENSION_BASE::GetOverrideTextEnabled(), PCB_DIMENSION_BASE::GetPrecision(), PCB_DIMENSION_BASE::GetPrefix(), PCB_DIMENSION_BASE::GetStart(), PCB_DIMENSION_BASE::GetSuffix(), PCB_DIMENSION_BASE::GetSuppressZeroes(), PCB_DIM_LEADER::GetTextBorder(), PCB_DIMENSION_BASE::GetTextPositionMode(), PCB_DIMENSION_BASE::GetUnitsFormat(), PCB_DIMENSION_BASE::GetUnitsMode(), INWARD, BOARD_ITEM::IsLocked(), m_out, EDA_ITEM::m_Uuid, ortho, OUTWARD, VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Definition at line 1910 of file pcb_writer_v9.cpp.
References KICAD_FORMAT::LEGACY::FormatBool(), formatInternalUnits(), formatPolyPts(), KICAD_FORMAT::LEGACY::FormatUuid(), PCB_GENERATOR::GetGeneratorType(), EDA_GROUP::GetItems(), PCB_GENERATOR::GetLayer(), EDA_GROUP::GetName(), BOARD_ITEM::IsLocked(), m_out, EDA_ITEM::m_Uuid, LSET::Name(), TO_UTF8, and KICAD_FORMAT::LEGACY::TuningPropertiesForEra().
|
private |
Definition at line 1880 of file pcb_writer_v9.cpp.
References KICAD_FORMAT::LEGACY::FormatBool(), KICAD_FORMAT::LEGACY::FormatUuid(), EDA_GROUP::GetItems(), EDA_GROUP::GetName(), BOARD_ITEM::IsLocked(), m_out, and EDA_ITEM::m_Uuid.
|
private |
Definition at line 834 of file pcb_writer_v9.cpp.
References KICAD_FORMAT::LEGACY::FormatBool(), formatInternalUnits(), formatLayer(), KICAD_FORMAT::LEGACY::FormatStreamData(), KICAD_FORMAT::LEGACY::FormatUuid(), REFERENCE_IMAGE::GetImage(), BITMAP_BASE::GetImageData(), REFERENCE_IMAGE::GetImageScale(), BOARD_ITEM::GetLayer(), PCB_REFERENCE_IMAGE::GetPosition(), PCB_REFERENCE_IMAGE::GetReferenceImage(), image, BOARD_ITEM::IsLocked(), m_out, EDA_ITEM::m_Uuid, BITMAP_BASE::SaveImageData(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
private |
Definition at line 742 of file pcb_writer_v9.cpp.
References ARC, BEZIER, CIRCLE, KICAD_FORMAT::LEGACY::FormatBool(), formatInternalUnits(), formatLayer(), formatLayers(), formatPolyPts(), KICAD_FORMAT::LEGACY::FormatStroke(), KICAD_FORMAT::LEGACY::FormatUuid(), EDA_SHAPE::GetArcMid(), EDA_SHAPE::GetBezierC1(), EDA_SHAPE::GetBezierC2(), EDA_SHAPE::GetEnd(), PCB_SHAPE::GetLayer(), PCB_SHAPE::GetLayerSet(), PCB_SHAPE::GetLocalSolderMaskMargin(), BOARD_CONNECTED_ITEM::GetNetCode(), BOARD_ITEM::GetParentFootprint(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), PCB_SHAPE::GetStroke(), PCB_SHAPE::HasSolderMask(), EDA_SHAPE::IsAnyFill(), IsExternalCopperLayer(), BOARD_ITEM::IsLocked(), EDA_SHAPE::IsPolyShapeValid(), m_mapping, m_out, EDA_ITEM::m_Uuid, SHAPE_POLY_SET::Outline(), pcbIUScale, POLY, RECTANGLE, SEGMENT, EDA_SHAPE::SHAPE_T_asString(), and UNIMPLEMENTED_FOR.
|
private |
Definition at line 1827 of file pcb_writer_v9.cpp.
References format(), KICAD_FORMAT::LEGACY::FormatBool(), formatInternalUnits(), formatLayer(), KICAD_FORMAT::LEGACY::FormatStroke(), PCB_TABLE::GetBorderStroke(), PCB_TABLE::GetCells(), PCB_TABLE::GetColCount(), PCB_TABLE::GetColWidth(), BOARD_ITEM::GetLayer(), PCB_TABLE::GetRowCount(), PCB_TABLE::GetRowHeight(), PCB_TABLE::GetSeparatorsStroke(), BOARD_ITEM::IsLocked(), m_out, pcbIUScale, PCB_TABLE::StrokeColumns(), PCB_TABLE::StrokeExternal(), PCB_TABLE::StrokeHeaderSeparator(), and PCB_TABLE::StrokeRows().
|
private |
Definition at line 865 of file pcb_writer_v9.cpp.
References formatInternalUnits(), formatLayer(), KICAD_FORMAT::LEGACY::FormatUuid(), BOARD_ITEM::GetLayer(), PCB_TARGET::GetPosition(), PCB_TARGET::GetShape(), PCB_TARGET::GetSize(), PCB_TARGET::GetWidth(), m_out, and EDA_ITEM::m_Uuid.
|
private |
Definition at line 1696 of file pcb_writer_v9.cpp.
References CTL_OMIT_COLOR, CTL_OMIT_HYPERLINK, EDA_UNIT_UTILS::FormatAngle(), KICAD_FORMAT::LEGACY::FormatBool(), formatInternalUnits(), formatLayer(), formatRenderCache(), KICAD_FORMAT::LEGACY::FormatTextV9(), KICAD_FORMAT::LEGACY::FormatUuid(), EDA_TEXT::GetFont(), BOARD_ITEM::GetLayer(), FOOTPRINT::GetOrientation(), BOARD_ITEM::GetParentFootprint(), FOOTPRINT::GetPosition(), EDA_TEXT::GetText(), PCB_TEXT::GetTextAngle(), PCB_TEXT::GetTextPos(), EDA_TEXT::IsKeepUpright(), BOARD_ITEM::IsKnockout(), BOARD_ITEM::IsLocked(), KIFONT::FONT::IsOutline(), EDA_TEXT::IsVisible(), m_ctl, m_out, EDA_ITEM::m_Uuid, KICAD_FORMAT::LEGACY::OMIT_HIDE, PCB_FIELD_T, pcbIUScale, RotatePoint(), and EDA_ITEM::Type().
|
private |
Definition at line 1758 of file pcb_writer_v9.cpp.
References EDA_UNIT_UTILS::FormatAngle(), KICAD_FORMAT::LEGACY::FormatBool(), formatInternalUnits(), formatLayer(), formatPolyPts(), formatRenderCache(), KICAD_FORMAT::LEGACY::FormatStroke(), KICAD_FORMAT::LEGACY::FormatTextV9(), KICAD_FORMAT::LEGACY::FormatUuid(), EDA_SHAPE::GetEnd(), EDA_TEXT::GetFont(), PCB_SHAPE::GetLayer(), PCB_TEXTBOX::GetMarginBottom(), PCB_TEXTBOX::GetMarginLeft(), PCB_TEXTBOX::GetMarginRight(), PCB_TEXTBOX::GetMarginTop(), FOOTPRINT::GetOrientation(), BOARD_ITEM::GetParentFootprint(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), PCB_SHAPE::GetStroke(), EDA_TEXT::GetText(), PCB_TEXTBOX::GetTextAngle(), PCB_TEXTBOX::IsBorderEnabled(), BOARD_ITEM::IsLocked(), KIFONT::FONT::IsOutline(), EDA_ANGLE::IsZero(), m_ctl, m_out, EDA_ITEM::m_Uuid, EDA_ANGLE::Normalize720(), KICAD_FORMAT::LEGACY::OMIT_HIDE, SHAPE_POLY_SET::Outline(), PCB_TABLECELL_T, pcbIUScale, POLY, RECTANGLE, EDA_SHAPE::SHAPE_T_asString(), EDA_ITEM::Type(), and UNIMPLEMENTED_FOR.
|
private |
Definition at line 2004 of file pcb_writer_v9.cpp.
References _, B_Cu, BLIND, BURIED, LSET::CuStack(), F_Cu, KICAD_FORMAT::LEGACY::FormatBool(), formatInternalUnits(), formatLayer(), formatLayers(), formatTeardropParameters(), formatTenting(), KICAD_FORMAT::LEGACY::FormatUuid(), PADSTACK::FRONT_INNER_BACK, BOARD::GetCopperLayerCount(), BOARD::GetEnabledLayers(), PCB_TRACK::GetEnd(), BOARD_CONNECTED_ITEM::GetLayer(), PCB_TRACK::GetLayerSet(), PCB_TRACK::GetLocalSolderMaskMargin(), PCB_ARC::GetMid(), BOARD_CONNECTED_ITEM::GetNetCode(), PCB_TRACK::GetStart(), PCB_TRACK::GetWidth(), PCB_TRACK::HasSolderMask(), PADSTACK::INNER_LAYERS, isDefaultTeardropParameters(), BOARD_ITEM::IsLocked(), PCB_TRACK::IsOnLayer(), KEEP_ALL, m_mapping, m_out, EDA_ITEM::m_Uuid, MICROVIA, PADSTACK::Mode(), LSET::Name(), PADSTACK::NORMAL, PCB_ARC_T, PCB_VIA_T, REMOVE_ALL, REMOVE_EXCEPT_START_AND_END, PADSTACK::Size(), START_END_ONLY, THROUGH, THROW_IO_ERROR, EDA_ITEM::Type(), UNDEFINED_DRILL_DIAMETER, via, VECTOR2< T >::x, and ZLO_FORCE_FLASHED.
|
private |
Definition at line 2165 of file pcb_writer_v9.cpp.
References _, ALWAYS, EDA_ANGLE::AsDegrees(), chain, ZONE_SETTINGS::CHAMFER, COMPONENT_CLASS, DIAGONAL_EDGE, DIAGONAL_FULL, ZONE_SETTINGS::FILLET, KICAD_FORMAT::LEGACY::FormatBool(), FormatDouble2Str(), formatInternalUnits(), formatLayer(), formatLayers(), formatPolyPts(), KICAD_FORMAT::LEGACY::FormatUuid(), FULL, ZONE::GetAssignedPriority(), BOARD_ITEM::GetBoard(), ZONE::GetBoardOutline(), ZONE::GetBorderHatchPitch(), ZONE::GetCornerRadius(), ZONE::GetCornerSmoothingType(), ZONE::GetDoNotAllowFootprints(), ZONE::GetDoNotAllowPads(), ZONE::GetDoNotAllowTracks(), ZONE::GetDoNotAllowVias(), ZONE::GetDoNotAllowZoneFills(), BOARD::GetEnabledLayers(), ZONE::GetFilledPolysList(), ZONE::GetFillMode(), ZONE::GetFirstLayer(), ZONE::GetHatchBorderAlgorithm(), ZONE::GetHatchGap(), ZONE::GetHatchHoleMinArea(), ZONE::GetHatchOrientation(), ZONE::GetHatchSmoothingLevel(), ZONE::GetHatchSmoothingValue(), ZONE::GetHatchStyle(), ZONE::GetHatchThickness(), ZONE::GetIslandRemovalMode(), ZONE::GetIsRuleArea(), ZONE::GetLayerSet(), ZONE::GetLocalClearance(), ZONE::GetMinIslandArea(), ZONE::GetMinThickness(), BOARD_CONNECTED_ITEM::GetNetCode(), BOARD_CONNECTED_ITEM::GetNetname(), ZONE::GetNumCorners(), ZONE::GetPadConnection(), ZONE::GetPlacementAreaEnabled(), ZONE::GetPlacementAreaSource(), ZONE::GetPlacementAreaSourceType(), ZONE::GetTeardropAreaType(), ZONE::GetThermalReliefGap(), ZONE::GetThermalReliefSpokeWidth(), ZONE::GetZoneName(), GROUP_PLACEMENT, HATCH_PATTERN, ZONE::IsFilled(), ZONE::IsIsland(), BOARD_ITEM::IsLocked(), ZONE::IsOnCopperLayer(), ZONE::IsTeardropArea(), m_mapping, m_out, EDA_ITEM::m_Uuid, LSET::Name(), NO_HATCH, ZONE_SETTINGS::NO_SMOOTHING, NONE, pcbIUScale, SHAPE_POLY_SET::Polygon(), LSET::Seq(), SHEETNAME, TD_VIAPAD, THERMAL, THROW_IO_ERROR, and THT_THERMAL.
|
private |
Definition at line 466 of file pcb_writer_v9.cpp.
References LSET::CuStack(), BOARD::GetEnabledLayers(), BOARD::GetLayerType(), IsCopperLayer(), m_board, m_out, LSET::Name(), LSET::TechAndUserUIOrder(), and User_1.
Referenced by formatHeader().
|
private |
Definition at line 449 of file pcb_writer_v9.cpp.
References KICAD_FORMAT::LEGACY::FormatBool(), formatInternalUnits(), KICAD_FORMAT::LEGACY::FormatPageV9(), KICAD_FORMAT::LEGACY::FormatTitle(), BOARD_DESIGN_SETTINGS::GetBoardThickness(), BOARD::GetDesignSettings(), BOARD::GetPageSettings(), BOARD::GetTitleBlock(), BOARD::LegacyTeardrops(), and m_out.
Referenced by formatHeader().
|
private |
Definition at line 520 of file pcb_writer_v9.cpp.
References formatBoardLayers(), formatGeneral(), formatNetInformation(), formatProperties(), and formatSetup().
Referenced by format().
|
private |
|
private |
Definition at line 1124 of file pcb_writer_v9.cpp.
References LSET::AllCuMask(), LSET::AllCuMask(), B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, m_board, m_out, MAX_CU_LAYERS, LSET::Name(), paste, and PCB_LAYER_ID_COUNT.
|
private |
Definition at line 498 of file pcb_writer_v9.cpp.
References m_mapping, and m_out.
Referenced by formatHeader().
|
private |
Definition at line 327 of file pcb_writer_v9.cpp.
References SHAPE_LINE_CHAIN::Arc(), SHAPE_LINE_CHAIN::ArcIndex(), SHAPE_LINE_CHAIN::CPoint(), formatInternalUnits(), SHAPE_ARC::GetArcMid(), SHAPE_ARC::GetP0(), SHAPE_ARC::GetP1(), m_out, and SHAPE_LINE_CHAIN::PointCount().
Referenced by format(), format(), format(), format(), format(), and formatRenderCache().
|
private |
Definition at line 511 of file pcb_writer_v9.cpp.
References BOARD::GetProperties(), and m_out.
Referenced by formatHeader().
|
private |
Definition at line 359 of file pcb_writer_v9.cpp.
References FOR_CANVAS, EDA_UNIT_UTILS::FormatAngle(), formatPolyPts(), EDA_TEXT::GetDrawRotation(), EDA_TEXT::GetFont(), EDA_TEXT::GetRenderCache(), EDA_TEXT::GetShownText(), EDA_TEXT::GetTextThickness(), m_out, and KIGFX::GAL::SetLineWidth().
|
private |
Definition at line 385 of file pcb_writer_v9.cpp.
References formatBoardStackupV9(), KICAD_FORMAT::LEGACY::FormatBool(), FormatDouble2Str(), formatInternalUnits(), KICAD_FORMAT::LEGACY::FormatPlotV9(), BOARD_DESIGN_SETTINGS::GetAuxOrigin(), BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::GetGridOrigin(), BOARD::GetPlotOptions(), BOARD_DESIGN_SETTINGS::m_AllowSoldermaskBridgesInFPs, BOARD_DESIGN_SETTINGS::m_HasStackup, m_out, BOARD_DESIGN_SETTINGS::m_SolderMaskExpansion, BOARD_DESIGN_SETTINGS::m_SolderMaskMinWidth, BOARD_DESIGN_SETTINGS::m_SolderPasteMargin, BOARD_DESIGN_SETTINGS::m_SolderPasteMarginRatio, BOARD_DESIGN_SETTINGS::m_TentViasBack, BOARD_DESIGN_SETTINGS::m_TentViasFront, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by formatHeader().
|
private |
Definition at line 551 of file pcb_writer_v9.cpp.
References KICAD_FORMAT::LEGACY::FormatBool(), FormatDouble2Str(), formatInternalUnits(), TEARDROP_PARAMETERS::m_AllowUseTwoTracks, TEARDROP_PARAMETERS::m_BestLengthRatio, TEARDROP_PARAMETERS::m_BestWidthRatio, TEARDROP_PARAMETERS::m_CurvedEdges, TEARDROP_PARAMETERS::m_Enabled, m_out, TEARDROP_PARAMETERS::m_TdMaxLen, TEARDROP_PARAMETERS::m_TdMaxWidth, TEARDROP_PARAMETERS::m_TdOnPadsInZones, and TEARDROP_PARAMETERS::m_WidthtoSizeFilterRatio.
|
private |
Definition at line 1676 of file pcb_writer_v9.cpp.
References PADSTACK::BackOuterLayers(), PADSTACK::FrontOuterLayers(), PADSTACK::MASK_LAYER_PROPS::has_solder_mask, and m_out.
| void PCB_WRITER_V9::SaveBoard | ( | const wxString & | aFileName, |
| BOARD * | aBoard ) |
Definition at line 217 of file pcb_writer_v9.cpp.
References CTL_FOR_BOARD, PRETTIFIED_FILE_OUTPUTFORMATTER::Finish(), Format(), FORMAT_VERSION, GetMajorMinorVersion(), m_board, m_ctl, m_mapping, and m_out.
Referenced by SaveBoardForTarget().
| void PCB_WRITER_V9::SaveFootprintFile | ( | const wxString & | aFileName, |
| FOOTPRINT * | aFootprint ) |
Definition at line 2376 of file pcb_writer_v9.cpp.
References EMBEDDED_FILES::ClearEmbeddedFonts(), CTL_FOR_LIBRARY, FOOTPRINT::EmbedFonts(), PRETTIFIED_FILE_OUTPUTFORMATTER::Finish(), Format(), EMBEDDED_FILES::GetAreFontsEmbedded(), FOOTPRINT::GetEmbeddedFiles(), m_ctl, and m_out.
Referenced by SaveFootprintForTarget().
|
staticconstexpr |
Definition at line 77 of file pcb_writer_v9.h.
Referenced by format(), planTextItem(), postTargetText(), SaveBoard(), SaveBoardForTarget(), and SaveFootprintForTarget().
|
private |
Definition at line 145 of file pcb_writer_v9.h.
Referenced by formatBoardLayers(), formatLayers(), PCB_WRITER_V9(), and SaveBoard().
|
private |
Definition at line 147 of file pcb_writer_v9.h.
Referenced by format(), format(), format(), format(), format(), PCB_WRITER_V9(), SaveBoard(), and SaveFootprintFile().
|
private |
Definition at line 148 of file pcb_writer_v9.h.
Referenced by format(), format(), format(), format(), formatNetInformation(), and SaveBoard().
|
private |
Definition at line 146 of file pcb_writer_v9.h.
Referenced by format(), format(), format(), format(), format(), format(), format(), format(), format(), format(), format(), format(), format(), format(), formatBoardLayers(), formatGeneral(), formatLayer(), formatLayers(), formatNetInformation(), formatPolyPts(), formatProperties(), formatRenderCache(), formatSetup(), formatTeardropParameters(), formatTenting(), PCB_WRITER_V9(), SaveBoard(), and SaveFootprintFile().