|
KiCad PCB EDA Suite
|
Classes | |
| struct | FP_DRAWING_ORDER |
| Every branch falls through to the uuid. More... | |
| struct | TUNING_PROPERTY |
Typedefs | |
| using | FP_DRAWING_ORDER_V9 = FP_DRAWING_ORDER<false> |
| KiCad 9 ordered only shapes by geometry. KiCad 10 also ordered text by position. | |
| using | FP_DRAWING_ORDER_V10 = FP_DRAWING_ORDER<true> |
Enumerations | |
| enum class | TUNING_PROPERTY_TYPE { NUMBER , BOOL , TEXT , POINT , LINE_CHAIN } |
Functions | |
| bool | IsDefaultTextV10 (const EDA_TEXT &aText) |
| void | FormatBool (OUTPUTFORMATTER *aOut, const wxString &aKey, bool aValue) |
| void | FormatOptBool (OUTPUTFORMATTER *aOut, const wxString &aKey, std::optional< bool > aValue) |
| void | FormatUuid (OUTPUTFORMATTER *aOut, const KIID &aUuid) |
| UTF8 | FormatLibId (const LIB_ID &aId) |
| void | FormatStreamData (OUTPUTFORMATTER &aOut, const wxStreamBuffer &aStream) |
| const char * | LineStyleToken (LINE_STYLE aStyle) |
| void | FormatStroke (OUTPUTFORMATTER *aOut, const STROKE_PARAMS &aStroke, const EDA_IU_SCALE &aScale) |
| const char * | PageTypeToken (PAGE_SIZE_TYPE aType) |
| void | FormatPageV9 (OUTPUTFORMATTER *aOut, const PAGE_INFO &aPage) |
| void | FormatPageV10 (OUTPUTFORMATTER *aOut, const PAGE_INFO &aPage) |
| void | FormatTitle (OUTPUTFORMATTER *aOut, const TITLE_BLOCK &aTitle) |
| void | FormatText (OUTPUTFORMATTER *aOut, const EDA_TEXT &aText, const EDA_IU_SCALE &aScale, int aControlBits, bool aV9) |
| void | FormatTextV9 (OUTPUTFORMATTER *aOut, const EDA_TEXT &aText, const EDA_IU_SCALE &aScale, int aControlBits) |
| void | FormatTextV10 (OUTPUTFORMATTER *aOut, const EDA_TEXT &aText, const EDA_IU_SCALE &aScale, int aControlBits) |
| std::string | EmbeddedFileChecksum (const EMBEDDED_FILES::EMBEDDED_FILE &aFile) |
| void | FormatEmbeddedFiles (OUTPUTFORMATTER &aOut, const EMBEDDED_FILES &aFiles, bool aWriteData, bool aV9) |
| void | FormatEmbeddedFilesV9 (OUTPUTFORMATTER &aOut, const EMBEDDED_FILES &aFiles, bool aWriteData) |
| void | FormatEmbeddedFilesV10 (OUTPUTFORMATTER &aOut, const EMBEDDED_FILES &aFiles, bool aWriteData) |
| std::string | FormatLayerSet (const LSET &aLayers) |
| int | PlotFormatValue (PLOT_FORMAT aFormat) |
| void | FormatPlot (OUTPUTFORMATTER *aOut, const PCB_PLOT_PARAMS &aPlot, bool aV9) |
| void | FormatPlotV9 (OUTPUTFORMATTER *aOut, const PCB_PLOT_PARAMS &aPlot) |
| void | FormatPlotV10 (OUTPUTFORMATTER *aOut, const PCB_PLOT_PARAMS &aPlot) |
| bool | IsReviewedTuningValue (const wxAny &aValue, TUNING_PROPERTY_TYPE aType) |
| bool | AreTuningPropertiesReviewed (const STRING_ANY_MAP &aProperties) |
| STRING_ANY_MAP | TuningPropertiesForEra (const PCB_GENERATOR &aGenerator, bool aV9) |
| std::optional< bool > | orderPoints (const VECTOR2I &aFirst, const VECTOR2I &aSecond) |
| The released comparators ordered footprint graphics in board coordinates. | |
| std::optional< bool > | orderFpShapes (const PCB_SHAPE *aFirst, const PCB_SHAPE *aSecond) |
| std::optional< bool > | orderFpTexts (const PCB_TEXT *aFirst, const PCB_TEXT *aSecond) |
Variables | |
| constexpr int | OMIT_HIDE = 1 << 6 |
| constexpr TUNING_PROPERTY | TUNING_PROPERTIES [] |
| using KICAD_FORMAT::LEGACY::FP_DRAWING_ORDER_V10 = FP_DRAWING_ORDER<true> |
Definition at line 157 of file legacy_item_order.h.
| using KICAD_FORMAT::LEGACY::FP_DRAWING_ORDER_V9 = FP_DRAWING_ORDER<false> |
KiCad 9 ordered only shapes by geometry. KiCad 10 also ordered text by position.
Definition at line 156 of file legacy_item_order.h.
|
strong |
| Enumerator | |
|---|---|
| NUMBER | |
| BOOL | |
| TEXT | |
| POINT | |
| LINE_CHAIN | |
Definition at line 33 of file legacy_tuning_pattern.h.
|
inline |
Definition at line 108 of file legacy_tuning_pattern.h.
References IsReviewedTuningValue(), KICAD_FORMAT::LEGACY::TUNING_PROPERTY::m_key, KICAD_FORMAT::LEGACY::TUNING_PROPERTY::m_v10, and TUNING_PROPERTIES.
Referenced by TuningPropertiesForEra().
|
inline |
Definition at line 310 of file legacy_format.h.
References MMH3_HASH::addDataV1(), EMBEDDED_FILES::EMBEDDED_FILE::compressedEncodedData, EMBEDDED_FILES::EMBEDDED_FILE::data_hash, EMBEDDED_FILES::DecompressAndDecode(), EMBEDDED_FILES::EMBEDDED_FILE::decompressedData, MMH3_HASH::digest(), EMBEDDED_FILES::EMBEDDED_FILE::name, EMBEDDED_FILES::OK, EMBEDDED_FILES::Seed(), THROW_IO_ERROR, and HASH_128::ToString().
Referenced by FormatEmbeddedFiles().
|
inline |
Definition at line 60 of file legacy_format.h.
References OUTPUTFORMATTER::Print().
Referenced by SCH_WRITER_V10::Format(), SCH_WRITER_V9::Format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), formatBoardStackupV10(), formatBoardStackupV9(), PCB_WRITER_V10::formatGeneral(), PCB_WRITER_V9::formatGeneral(), FormatOptBool(), FormatPlot(), PCB_WRITER_V10::formatSetup(), PCB_WRITER_V9::formatSetup(), PCB_WRITER_V10::formatTeardropParameters(), PCB_WRITER_V9::formatTeardropParameters(), FormatText(), libSaveField(), libSavePin(), libSavePin(), libSaveSymbol(), libSaveSymbol(), SCH_WRITER_V10::saveField(), SCH_WRITER_V9::saveField(), SCH_WRITER_V10::saveGroup(), SCH_WRITER_V10::saveRuleArea(), SCH_WRITER_V10::saveSheet(), SCH_WRITER_V9::saveSheet(), SCH_WRITER_V10::saveSymbol(), SCH_WRITER_V9::saveSymbol(), SCH_WRITER_V10::saveTable(), SCH_WRITER_V9::saveTable(), SCH_WRITER_V10::saveText(), SCH_WRITER_V9::saveText(), SCH_WRITER_V10::saveTextBox(), and SCH_WRITER_V9::saveTextBox().
|
inline |
Definition at line 336 of file legacy_format.h.
References EMBEDDED_FILES::EMBEDDED_FILE::DATASHEET, EmbeddedFileChecksum(), EMBEDDED_FILES::EmbeddedFileMap(), EMBEDDED_FILES::EMBEDDED_FILE::FONT, EMBEDDED_FILES::EMBEDDED_FILE::MODEL, name, EMBEDDED_FILES::EMBEDDED_FILE::OTHER, OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), THROW_IO_ERROR, and EMBEDDED_FILES::EMBEDDED_FILE::WORKSHEET.
Referenced by FormatEmbeddedFilesV10(), and FormatEmbeddedFilesV9().
|
inline |
Definition at line 394 of file legacy_format.h.
References FormatEmbeddedFiles().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_WRITER_V10::Format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), historicalEmbeddedFiles(), and libSaveSymbol().
|
inline |
Definition at line 388 of file legacy_format.h.
References FormatEmbeddedFiles().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_WRITER_V9::Format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), historicalEmbeddedFiles(), and libSaveSymbol().
|
inline |
Definition at line 30 of file legacy_pcb_plot_format.h.
References index, result, and THROW_IO_ERROR.
Referenced by FormatPlot().
Definition at line 81 of file legacy_format.h.
References UTF8::empty(), LIB_ID::GetLibItemName(), LIB_ID::GetLibNickname(), and result.
Referenced by PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V9::format(), SCH_WRITER_V10::saveGroup(), SCH_WRITER_V10::saveSymbol(), and SCH_WRITER_V9::saveSymbol().
|
inline |
Definition at line 66 of file legacy_format.h.
References FormatBool(), and OUTPUTFORMATTER::Print().
Referenced by PCB_WRITER_V10::format(), and PCB_WRITER_V10::format().
|
inline |
Definition at line 185 of file legacy_format.h.
References FormatDouble2Str(), PAGE_INFO::GetHeightMils(), PAGE_INFO::GetType(), PAGE_INFO::GetWidthMils(), PAGE_INFO::IsPortrait(), PageTypeToken(), OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), and User.
Referenced by SCH_WRITER_V10::Format(), and PCB_WRITER_V10::formatGeneral().
|
inline |
Definition at line 171 of file legacy_format.h.
References PAGE_INFO::GetHeightMils(), PAGE_INFO::GetType(), PAGE_INFO::GetWidthMils(), PAGE_INFO::IsPortrait(), PageTypeToken(), OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), and User.
Referenced by SCH_WRITER_V9::Format(), and PCB_WRITER_V9::formatGeneral().
|
inline |
Definition at line 79 of file legacy_pcb_plot_format.h.
References FormatBool(), FormatDouble2Str(), FormatLayerSet(), PCB_PLOT_PARAMS::GetA4Output(), PCB_PLOT_PARAMS::GetBlackAndWhite(), PCB_PLOT_PARAMS::GetCreateGerberJobFile(), PCB_PLOT_PARAMS::GetCrossoutDNPFPsOnFabLayers(), PCB_PLOT_PARAMS::GetDashedLineDashRatio(), PCB_PLOT_PARAMS::GetDashedLineGapRatio(), PCB_PLOT_PARAMS::GetDisableGerberMacros(), PCB_PLOT_PARAMS::GetDrillMarksType(), PCB_PLOT_PARAMS::GetDXFPlotMode(), PCB_PLOT_PARAMS::GetDXFPlotPolygonMode(), PCB_PLOT_PARAMS::GetDXFPlotUnits(), PCB_PLOT_PARAMS::GetFormat(), PCB_PLOT_PARAMS::GetGerberPrecision(), PCB_PLOT_PARAMS::GetHideDNPFPsOnFabLayers(), PCB_PLOT_PARAMS::GetIncludeGerberNetlistInfo(), PCB_PLOT_PARAMS::GetLayerSelection(), PCB_PLOT_PARAMS::GetMirror(), PCB_PLOT_PARAMS::GetNegative(), PCB_PLOT_PARAMS::GetOutputDirectory(), PCB_PLOT_PARAMS::GetPlotFrameRef(), PCB_PLOT_PARAMS::GetPlotOnAllLayersSequence(), PCB_PLOT_PARAMS::GetPlotPadNumbers(), PCB_PLOT_PARAMS::GetScaleSelection(), PCB_PLOT_PARAMS::GetSketchDNPFPsOnFabLayers(), PCB_PLOT_PARAMS::GetSketchPadsOnFabLayers(), PCB_PLOT_PARAMS::GetSubtractMaskFromSilk(), PCB_PLOT_PARAMS::GetSvgPrecision(), PCB_PLOT_PARAMS::GetTextMode(), PCB_PLOT_PARAMS::GetUseAuxOrigin(), PCB_PLOT_PARAMS::GetUseGerberProtelExtensions(), PCB_PLOT_PARAMS::GetUseGerberX2format(), INCH, PCB_PLOT_PARAMS::m_PDFBackFPPropertyPopups, PCB_PLOT_PARAMS::m_PDFFrontFPPropertyPopups, PCB_PLOT_PARAMS::m_PDFMetadata, PCB_PLOT_PARAMS::m_PDFSingle, NATIVE, PlotFormatValue(), OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), BASE_SET::set(), and SKETCH.
Referenced by FormatPlotV10(), and FormatPlotV9().
|
inline |
Definition at line 154 of file legacy_pcb_plot_format.h.
References FormatPlot().
Referenced by PCB_WRITER_V10::formatSetup().
|
inline |
Definition at line 148 of file legacy_pcb_plot_format.h.
References FormatPlot().
Referenced by PCB_WRITER_V9::formatSetup().
|
inline |
Definition at line 96 of file legacy_format.h.
References OUTPUTFORMATTER::Print(), and TO_UTF8.
Referenced by PCB_WRITER_V10::format(), PCB_WRITER_V9::format(), SCH_WRITER_V10::saveBitmap(), and SCH_WRITER_V9::saveBitmap().
|
inline |
Definition at line 125 of file legacy_format.h.
References FormatDouble2Str(), EDA_UNIT_UTILS::FormatInternalUnits(), STROKE_PARAMS::GetColor(), STROKE_PARAMS::GetLineStyle(), STROKE_PARAMS::GetWidth(), KiROUND(), LineStyleToken(), OUTPUTFORMATTER::Print(), and KIGFX::COLOR4D::UNSPECIFIED.
Referenced by BOOST_AUTO_TEST_CASE(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), formatArc(), formatArc(), formatBezier(), formatBezier(), formatCircle(), formatCircle(), formatPoly(), formatPoly(), formatRect(), formatRect(), libSaveTextBox(), libSaveTextBox(), SCH_WRITER_V10::saveBusEntry(), SCH_WRITER_V9::saveBusEntry(), SCH_WRITER_V10::saveLine(), SCH_WRITER_V9::saveLine(), SCH_WRITER_V10::saveSheet(), SCH_WRITER_V9::saveSheet(), SCH_WRITER_V10::saveTable(), SCH_WRITER_V9::saveTable(), SCH_WRITER_V10::saveTextBox(), and SCH_WRITER_V9::saveTextBox().
|
inline |
Definition at line 237 of file legacy_format.h.
References FormatBool(), FormatDouble2Str(), EDA_UNIT_UTILS::FormatInternalUnits(), EDA_TEXT::GetAutoThickness(), EDA_TEXT::GetFont(), EDA_TEXT::GetHorizJustify(), EDA_TEXT::GetHyperlink(), KICAD_FORMAT::GetLegacyTextThickness(), EDA_TEXT::GetLineSpacing(), KIFONT::FONT::GetName(), EDA_TEXT::GetTextColor(), EDA_TEXT::GetTextHeight(), EDA_TEXT::GetTextThickness(), EDA_TEXT::GetTextWidth(), EDA_TEXT::GetVertJustify(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_TOP, EDA_TEXT::HasHyperlink(), EDA_TEXT::IsBold(), EDA_TEXT::IsItalic(), EDA_TEXT::IsMirrored(), EDA_TEXT::IsVisible(), KiROUND(), OMIT_HIDE, OUTPUTFORMATTER::Print(), OUTPUTFORMATTER::Quotew(), and KIGFX::COLOR4D::UNSPECIFIED.
Referenced by FormatTextV10(), and FormatTextV9().
|
inline |
Definition at line 304 of file legacy_format.h.
References FormatText().
Referenced by PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), historicalTextEffects(), libSaveField(), libSaveText(), libSaveTextBox(), SCH_WRITER_V10::saveField(), SCH_WRITER_V10::saveSheet(), SCH_WRITER_V10::saveText(), and SCH_WRITER_V10::saveTextBox().
|
inline |
Definition at line 298 of file legacy_format.h.
References FormatText().
Referenced by PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), formatEdaTextV9(), and historicalTextEffects().
|
inline |
Definition at line 202 of file legacy_format.h.
References empty(), TITLE_BLOCK::GetComment(), TITLE_BLOCK::GetCompany(), TITLE_BLOCK::GetDate(), TITLE_BLOCK::GetRevision(), TITLE_BLOCK::GetTitle(), OUTPUTFORMATTER::Print(), and OUTPUTFORMATTER::Quotew().
Referenced by BOOST_AUTO_TEST_CASE(), SCH_WRITER_V10::Format(), SCH_WRITER_V9::Format(), PCB_WRITER_V10::formatGeneral(), and PCB_WRITER_V9::formatGeneral().
|
inline |
Definition at line 75 of file legacy_format.h.
References KIID::AsString(), OUTPUTFORMATTER::Print(), and OUTPUTFORMATTER::Quotew().
Referenced by SCH_WRITER_V10::Format(), SCH_WRITER_V9::Format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V10::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), SCH_WRITER_V10::saveBitmap(), SCH_WRITER_V9::saveBitmap(), SCH_WRITER_V10::saveBusEntry(), SCH_WRITER_V9::saveBusEntry(), SCH_WRITER_V10::saveGroup(), SCH_WRITER_V10::saveJunction(), SCH_WRITER_V9::saveJunction(), SCH_WRITER_V10::saveLine(), SCH_WRITER_V9::saveLine(), SCH_WRITER_V10::saveNoConnect(), SCH_WRITER_V9::saveNoConnect(), SCH_WRITER_V10::saveSheet(), SCH_WRITER_V9::saveSheet(), SCH_WRITER_V10::saveSymbol(), SCH_WRITER_V9::saveSymbol(), SCH_WRITER_V10::saveTable(), SCH_WRITER_V10::saveText(), SCH_WRITER_V9::saveText(), SCH_WRITER_V10::saveTextBox(), and SCH_WRITER_V9::saveTextBox().
|
inline |
Definition at line 53 of file legacy_format.h.
References EDA_TEXT::GetAutoThickness(), EDA_TEXT::GetFontName(), EDA_TEXT::GetHorizJustify(), EDA_TEXT::GetVertJustify(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_V_ALIGN_CENTER, EDA_TEXT::IsBold(), EDA_TEXT::IsItalic(), EDA_TEXT::IsMirrored(), and EDA_TEXT::IsMultilineAllowed().
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_WRITER_V10::saveField().
|
inline |
Definition at line 87 of file legacy_tuning_pattern.h.
References BOOL, LINE_CHAIN, NUMBER, POINT, and TEXT.
Referenced by AreTuningPropertiesReviewed().
|
inline |
Definition at line 108 of file legacy_format.h.
References DASH, DASHDOT, DASHDOTDOT, DEFAULT, DOT, SOLID, and THROW_IO_ERROR.
Referenced by FormatStroke().
|
inline |
Definition at line 35 of file legacy_item_order.h.
References ARC, BEZIER, SHAPE_POLY_SET::CVertex(), EDA_SHAPE::GetBezierC1(), EDA_SHAPE::GetBezierC2(), PCB_SHAPE::GetCenter(), EDA_SHAPE::GetEnd(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), PCB_SHAPE::GetWidth(), orderPoints(), POLY, and SHAPE_POLY_SET::TotalVertices().
Referenced by KICAD_FORMAT::LEGACY::FP_DRAWING_ORDER< false >::operator()().
|
inline |
Definition at line 85 of file legacy_item_order.h.
References EDA_TEXT::GetLineSpacing(), PCB_TEXT::GetPosition(), EDA_TEXT::GetText(), PCB_TEXT::GetTextAngle(), PCB_TEXT::GetTextSize(), PCB_TEXT::GetTextThickness(), EDA_TEXT::IsBold(), EDA_TEXT::IsItalic(), EDA_TEXT::IsMirrored(), and orderPoints().
Referenced by KICAD_FORMAT::LEGACY::FP_DRAWING_ORDER< false >::operator()().
|
inline |
The released comparators ordered footprint graphics in board coordinates.
The current one uses library coordinates, which sorts a flipped or rotated footprint's items differently, so the frozen writers need the target's own ordering to reproduce its output.
Definition at line 23 of file legacy_item_order.h.
References VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by orderFpShapes(), and orderFpTexts().
|
inline |
|
inline |
Definition at line 63 of file legacy_pcb_plot_format.h.
References DXF, GERBER, HPGL, PDF, POST, SVG, THROW_IO_ERROR, and UNDEFINED.
Referenced by FormatPlot().
|
inline |
Definition at line 126 of file legacy_tuning_pattern.h.
References AreTuningPropertiesReviewed(), result, THROW_IO_ERROR, and TUNING_PROPERTIES.
Referenced by PCB_WRITER_V10::format(), and PCB_WRITER_V9::format().
|
inlineconstexpr |
Definition at line 50 of file legacy_format.h.
Referenced by BOOST_AUTO_TEST_CASE(), PCB_WRITER_V9::format(), PCB_WRITER_V9::format(), and FormatText().
|
inlineconstexpr |
Definition at line 53 of file legacy_tuning_pattern.h.
Referenced by AreTuningPropertiesReviewed(), and TuningPropertiesForEra().