23#include <api/board/board.pb.h>
24#include <api/board/board_rules.pb.h>
25#include <api/board/board_types.pb.h>
26#include <api/board/board_commands.pb.h>
27#include <api/board/board_jobs.pb.h>
28#include <api/common/types/enums.pb.h>
64using namespace kiapi::board::commands;
65using namespace kiapi::board::jobs;
79 wxCHECK_MSG(
false, types::PadType::PT_UNKNOWN,
80 "Unhandled case in ToProtoEnum<PAD_ATTRIB>");
90 case types::PadType::PT_UNKNOWN:
99 "Unhandled case in FromProtoEnum<types::PadType>" );
112 wxCHECK_MSG(
false, types::DrillShape::DS_UNKNOWN,
113 "Unhandled case in ToProtoEnum<PAD_DRILL_SHAPE>");
124 case types::DrillShape::DS_UNKNOWN:
128 "Unhandled case in FromProtoEnum<types::DrillShape>" );
146 wxCHECK_MSG(
false, types::PadStackShape::PSS_UNKNOWN,
147 "Unhandled case in ToProtoEnum<PAD_SHAPE>");
157 case types::PadStackShape::PSS_UNKNOWN:
168 "Unhandled case in FromProtoEnum<types::PadStackShape>" );
183 wxCHECK_MSG(
false, types::PadStackType::PST_UNKNOWN,
184 "Unhandled case in ToProtoEnum<PADSTACK::MODE>");
194 case types::PadStackType::PST_UNKNOWN:
201 "Unhandled case in FromProtoEnum<types::PadStackType>" );
211 case types::PadFabricationProperty::PFP_UNKNOWN:
212 case types::PadFabricationProperty::PFP_NONE:
return PAD_PROP::NONE;
213 case types::PadFabricationProperty::PFP_BGA:
return PAD_PROP::BGA;
224 "Unhandled case in FromProtoEnum<types::PadFabricationProperty>" );
234 case PAD_PROP::NONE:
return types::PadFabricationProperty::PFP_NONE;
235 case PAD_PROP::BGA:
return types::PadFabricationProperty::PFP_BGA;
245 wxCHECK_MSG(
false, types::PadFabricationProperty::PFP_UNKNOWN,
246 "Unhandled case in ToProtoEnum<PAD_PROP>" );
262 wxCHECK_MSG(
false, types::ViaType::VT_UNKNOWN,
263 "Unhandled case in ToProtoEnum<VIATYPE>");
273 case types::ViaType::VT_UNKNOWN:
282 "Unhandled case in FromProtoEnum<types::ViaType>" );
299 wxCHECK_MSG(
false, types::ZoneConnectionStyle::ZCS_UNKNOWN,
300 "Unhandled case in ToProtoEnum<ZONE_CONNECTION>");
319 "Unhandled case in FromProtoEnum<types::ZoneConnectionStyle>" );
373 wxCHECK_MSG(
false, CustomRuleConstraintType::CRCT_UNKNOWN,
374 "Unhandled case in ToProtoEnum<DRC_CONSTRAINT_T>" );
429 "Unhandled case in FromProtoEnum<CustomRuleConstraintType>" );
444 wxCHECK_MSG(
false, CustomRuleConstraintOption::CRCO_UNKNOWN,
445 "Unhandled case in ToProtoEnum<DRC_CONSTRAINT::OPTIONS>" );
455 case CustomRuleConstraintOption::CRCO_SKEW_WITHIN_DIFF_PAIRS:
458 case CustomRuleConstraintOption::CRCO_SPACE_DOMAIN:
461 case CustomRuleConstraintOption::CRCO_TIME_DOMAIN:
464 case CustomRuleConstraintOption::CRCO_UNKNOWN:
467 "Unhandled case in FromProtoEnum<CustomRuleConstraintOption>" );
490 wxCHECK_MSG(
false, CustomRuleDisallowType::CRDT_UNKNOWN,
491 "Unhandled case in ToProtoEnum<DRC_DISALLOW_T>" );
513 case CustomRuleDisallowType::CRDT_UNKNOWN:
516 "Unhandled case in FromProtoEnum<CustomRuleDisallowType>" );
527 return types::UnconnectedLayerRemoval::ULR_KEEP;
530 return types::UnconnectedLayerRemoval::ULR_REMOVE;
533 return types::UnconnectedLayerRemoval::ULR_REMOVE_EXCEPT_START_AND_END;
536 return types::UnconnectedLayerRemoval::ULR_START_END_ONLY;
539 wxCHECK_MSG(
false, types::UnconnectedLayerRemoval::ULR_UNKNOWN,
540 "Unhandled case in ToProtoEnum<PADSTACK::UNCONNECTED_LAYER_MODE>");
550 case types::UnconnectedLayerRemoval::ULR_UNKNOWN:
551 case types::UnconnectedLayerRemoval::ULR_KEEP:
554 case types::UnconnectedLayerRemoval::ULR_REMOVE:
557 case types::UnconnectedLayerRemoval::ULR_REMOVE_EXCEPT_START_AND_END:
560 case types::UnconnectedLayerRemoval::ULR_START_END_ONLY:
565 "Unhandled case in FromProtoEnum<types::UnconnectedLayerRemoval>");
580 wxCHECK_MSG(
false, types::IslandRemovalMode::IRM_UNKNOWN,
581 "Unhandled case in ToProtoEnum<ISLAND_REMOVAL_MODE>");
591 case types::IslandRemovalMode::IRM_UNKNOWN:
598 "Unhandled case in FromProtoEnum<types::IslandRemovalMode>" );
613 wxCHECK_MSG(
false, types::ZoneFillMode::ZFM_UNKNOWN,
614 "Unhandled case in ToProtoEnum<ZONE_FILL_MODE>");
624 case types::ZoneFillMode::ZFM_UNKNOWN:
631 "Unhandled case in FromProtoEnum<types::ZoneFillMode>" );
646 wxCHECK_MSG(
false, types::ZoneCornerSmoothingMode::ZCSM_UNKNOWN,
647 "Unhandled case in ToProtoEnum<ZONE_SETTINGS::CORNER_SMOOTHING>" );
657 case types::ZoneCornerSmoothingMode::ZCSM_UNKNOWN:
664 "Unhandled case in FromProtoEnum<ZoneCornerSmoothingMode>" );
679 wxCHECK_MSG(
false, types::ThievingPattern::TP_UNKNOWN,
680 "Unhandled case in ToProtoEnum<THIEVING_PATTERN>" );
690 case types::ThievingPattern::TP_UNKNOWN:
697 "Unhandled case in FromProtoEnum<types::ThievingPattern>" );
713 wxCHECK_MSG(
false, types::ZoneBorderStyle::ZBS_UNKNOWN,
714 "Unhandled case in ToProtoEnum<ZONE_BORDER_DISPLAY_STYLE>");
726 case types::ZoneBorderStyle::ZBS_UNKNOWN:
732 "Unhandled case in FromProtoEnum<types::ZoneHatchBorderMode>" );
743 return types::PlacementRuleSourceType::PRST_SHEET_NAME;
746 return types::PlacementRuleSourceType::PRST_COMPONENT_CLASS;
749 return types::PlacementRuleSourceType::PRST_GROUP;
752 return types::PlacementRuleSourceType::PRST_DESIGN_BLOCK;
755 wxCHECK_MSG(
false, types::PlacementRuleSourceType::PRST_UNKNOWN,
756 "Unhandled case in ToProtoEnum<PLACEMENT_SOURCE_T>");
766 case types::PlacementRuleSourceType::PRST_UNKNOWN:
767 case types::PlacementRuleSourceType::PRST_SHEET_NAME:
770 case types::PlacementRuleSourceType::PRST_COMPONENT_CLASS:
773 case types::PlacementRuleSourceType::PRST_GROUP:
776 case types::PlacementRuleSourceType::PRST_DESIGN_BLOCK:
781 "Unhandled case in FromProtoEnum<types::PlacementRuleSourceType>" );
797 wxCHECK_MSG(
false, types::ZoneTeardropType::ZTDT_UNKNOWN,
798 "Unhandled case in ToProtoEnum<TEARDROP_TYPE>");
808 case types::ZoneTeardropType::ZTDT_UNKNOWN:
816 "Unhandled case in FromProtoEnum<types::ZoneTeardropType>" );
826 case TARGET_ROUND:
return kiapi::board::TeardropTarget::TDT_ROUND;
827 case TARGET_RECT:
return kiapi::board::TeardropTarget::TDT_RECT;
828 case TARGET_TRACK:
return kiapi::board::TeardropTarget::TDT_TRACK;
831 wxCHECK_MSG(
false, kiapi::board::TeardropTarget::TDT_UNKNOWN,
832 "Unhandled case in ToProtoEnum<TARGET_TD>" );
842 case kiapi::board::TeardropTarget::TDT_ROUND:
return TARGET_ROUND;
843 case kiapi::board::TeardropTarget::TDT_RECT:
return TARGET_RECT;
844 case kiapi::board::TeardropTarget::TDT_TRACK:
return TARGET_TRACK;
846 case kiapi::board::TeardropTarget::TDT_UNKNOWN:
864 wxCHECK_MSG(
false, types::DimensionTextBorderStyle::DTBS_UNKNOWN,
865 "Unhandled case in ToProtoEnum<DIM_TEXT_BORDER>");
875 case types::DimensionTextBorderStyle::DTBS_UNKNOWN:
883 "Unhandled case in FromProtoEnum<types::DimensionTextBorderStyle>" );
898 wxCHECK_MSG(
false, types::DimensionUnitFormat::DUF_UNKNOWN,
899 "Unhandled case in ToProtoEnum<DIM_UNITS_FORMAT>");
909 case types::DimensionUnitFormat::DUF_UNKNOWN:
916 "Unhandled case in FromProtoEnum<types::DimensionUnitFormat>" );
930 wxCHECK_MSG(
false, types::DimensionArrowDirection::DAD_UNKNOWN,
931 "Unhandled case in ToProtoEnum<DIM_ARROW_DIRECTION>");
942 case types::DimensionArrowDirection::DAD_UNKNOWN:
947 "Unhandled case in FromProtoEnum<types::DimensionArrowDirection>" );
969 wxCHECK_MSG(
false, types::DimensionPrecision::DP_UNKNOWN,
970 "Unhandled case in ToProtoEnum<DIM_PRECISION>");
986 case types::DimensionPrecision::DP_UNKNOWN:
994 "Unhandled case in FromProtoEnum<types::DimensionPrecision>" );
1009 wxCHECK_MSG(
false, types::DimensionTextPosition::DTP_UNKNOWN,
1010 "Unhandled case in ToProtoEnum<DIM_TEXT_POSITION>");
1020 case types::DimensionTextPosition::DTP_UNKNOWN:
1027 "Unhandled case in FromProtoEnum<types::DimensionTextPosition>" );
1043 wxCHECK_MSG(
false, types::DimensionUnit::DU_UNKNOWN,
1044 "Unhandled case in ToProtoEnum<DIM_UNITS_MODE>");
1057 case types::DimensionUnit::DU_UNKNOWN:
1062 "Unhandled case in FromProtoEnum<types::DimensionUnit>" );
1077 wxCHECK_MSG(
false, commands::InactiveLayerDisplayMode::ILDM_NORMAL,
1078 "Unhandled case in ToProtoEnum<HIGH_CONTRAST_MODE>");
1090 case commands::InactiveLayerDisplayMode::ILDM_UNKNOWN:
1095 "Unhandled case in FromProtoEnum<commands::InactiveLayerDisplayMode>" );
1110 wxCHECK_MSG(
false, commands::NetColorDisplayMode::NCDM_UNKNOWN,
1111 "Unhandled case in ToProtoEnum<NET_COLOR_MODE>");
1123 case commands::NetColorDisplayMode::NCDM_UNKNOWN:
1128 "Unhandled case in FromProtoEnum<commands::NetColorDisplayMode>" );
1142 wxCHECK_MSG(
false, commands::RatsnestDisplayMode::RDM_UNKNOWN,
1143 "Unhandled case in ToProtoEnum<RATSNEST_MODE>");
1154 case commands::RatsnestDisplayMode::RDM_UNKNOWN:
1159 "Unhandled case in FromProtoEnum<commands::RatsnestDisplayMode>" );
1177 wxCHECK_MSG(
false, BoardStackupLayerType::BSLT_UNKNOWN,
1178 "Unhandled case in ToProtoEnum<BOARD_STACKUP_ITEM_TYPE>");
1197 "Unhandled case in FromProtoEnum<BoardStackupLayerType>" );
1211 wxCHECK_MSG(
false, DielectricModel::DM_UNKNOWN,
1212 "Unhandled case in ToProtoEnum<DIELECTRIC_MODEL>" );
1227 "Unhandled case in FromProtoEnum<DielectricModel>" );
1242 wxCHECK_MSG(
false, BoardEdgeConnectorType::BECT_UNKNOWN,
1243 "Unhandled case in ToProtoEnum<BS_EDGE_CONNECTOR_CONSTRAINTS>" );
1259 "Unhandled case in FromProtoEnum<BoardEdgeConnectorType>" );
1278 wxCHECK_MSG(
false, DrcSeverity::DRS_UNDEFINED,
1279 "Unhandled case in ToProtoEnum<SEVERITY>");
1296 case DrcSeverity::DRS_UNKNOWN:
1312 wxCHECK_MSG(
false, PlotDrillMarks::PDM_UNKNOWN,
1313 "Unhandled case in ToProtoEnum<DRILL_MARKS>" );
1326 case PlotDrillMarks::PDM_UNKNOWN:
1349 wxCHECK_MSG(
false, Board3DFormat::B3D_UNKNOWN,
1350 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_3D::FORMAT>" );
1370 case Board3DFormat::B3D_UNKNOWN:
1387 wxCHECK_MSG(
false, kiapi::common::types::Units::U_UNKNOWN,
1388 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_3D::VRML_UNITS>" );
1402 case kiapi::common::types::Units::U_UNKNOWN:
1417 wxCHECK_MSG(
false, RenderFormat::RF_UNKNOWN,
1418 "Unhandled case in ToProtoEnum<JOB_PCB_RENDER::FORMAT>" );
1430 case RenderFormat::RF_UNKNOWN:
1447 wxCHECK_MSG(
false, RenderQuality::RQ_UNKNOWN,
1448 "Unhandled case in ToProtoEnum<JOB_PCB_RENDER::QUALITY>" );
1462 case RenderQuality::RQ_UNKNOWN:
1478 wxCHECK_MSG(
false, RenderBackgroundStyle::RBS_UNKNOWN,
1479 "Unhandled case in ToProtoEnum<JOB_PCB_RENDER::BG_STYLE>" );
1492 case RenderBackgroundStyle::RBS_UNKNOWN:
1511 wxCHECK_MSG(
false, RenderSide::RS_UNKNOWN,
1512 "Unhandled case in ToProtoEnum<JOB_PCB_RENDER::SIDE>" );
1528 case RenderSide::RS_UNKNOWN:
1543 wxCHECK_MSG(
false, BoardJobPaginationMode::BJPM_UNKNOWN,
1544 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_SVG::GEN_MODE>" );
1554 case BoardJobPaginationMode::BJPM_ALL_LAYERS_ONE_PAGE:
1556 case BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_FILE:
1558 case BoardJobPaginationMode::BJPM_UNKNOWN:
1559 case BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_PAGE:
1574 wxCHECK_MSG(
false, BoardJobPaginationMode::BJPM_UNKNOWN,
1575 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_DXF::GEN_MODE>" );
1585 case BoardJobPaginationMode::BJPM_ALL_LAYERS_ONE_PAGE:
1587 case BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_FILE:
1589 case BoardJobPaginationMode::BJPM_UNKNOWN:
1590 case BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_PAGE:
1603 return BoardJobPaginationMode::BJPM_ALL_LAYERS_ONE_PAGE;
1605 return BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_PAGE;
1607 return BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_FILE;
1609 wxCHECK_MSG(
false, BoardJobPaginationMode::BJPM_UNKNOWN,
1610 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_PDF::GEN_MODE>" );
1620 case BoardJobPaginationMode::BJPM_ALL_LAYERS_ONE_PAGE:
1622 case BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_PAGE:
1624 case BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_FILE:
1626 case BoardJobPaginationMode::BJPM_UNKNOWN:
1641 wxCHECK_MSG(
false, BoardJobPaginationMode::BJPM_UNKNOWN,
1642 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_PS::GEN_MODE>" );
1652 case BoardJobPaginationMode::BJPM_ALL_LAYERS_ONE_PAGE:
1654 case BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_FILE:
1656 case BoardJobPaginationMode::BJPM_UNKNOWN:
1657 case BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_PAGE:
1672 wxCHECK_MSG(
false, BoardJobPaginationMode::BJPM_UNKNOWN,
1673 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_PNG::GEN_MODE>" );
1683 case BoardJobPaginationMode::BJPM_ALL_LAYERS_ONE_PAGE:
1685 case BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_FILE:
1687 case BoardJobPaginationMode::BJPM_UNKNOWN:
1688 case BoardJobPaginationMode::BJPM_EACH_LAYER_OWN_PAGE:
1703 wxCHECK_MSG(
false, DrillFormat::DF_UNKNOWN,
1704 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_DRILL::DRILL_FORMAT>" );
1716 case DrillFormat::DF_UNKNOWN:
1731 wxCHECK_MSG(
false, DrillOrigin::DO_UNKNOWN,
1732 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_DRILL::DRILL_ORIGIN>" );
1744 case DrillOrigin::DO_UNKNOWN:
1757 return DrillZerosFormat::DZF_DECIMAL;
1759 return DrillZerosFormat::DZF_SUPPRESS_LEADING;
1761 return DrillZerosFormat::DZF_SUPPRESS_TRAILING;
1763 return DrillZerosFormat::DZF_KEEP_ZEROS;
1765 wxCHECK_MSG(
false, DrillZerosFormat::DZF_UNKNOWN,
1766 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_DRILL::ZEROS_FORMAT>" );
1776 case DrillZerosFormat::DZF_DECIMAL:
1778 case DrillZerosFormat::DZF_SUPPRESS_LEADING:
1780 case DrillZerosFormat::DZF_SUPPRESS_TRAILING:
1782 case DrillZerosFormat::DZF_KEEP_ZEROS:
1784 case DrillZerosFormat::DZF_UNKNOWN:
1797 return DrillMapFormat::DMF_POSTSCRIPT;
1799 return DrillMapFormat::DMF_GERBER_X2;
1801 return DrillMapFormat::DMF_DXF;
1803 return DrillMapFormat::DMF_SVG;
1805 return DrillMapFormat::DMF_PDF;
1807 wxCHECK_MSG(
false, DrillMapFormat::DMF_UNKNOWN,
1808 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_DRILL::MAP_FORMAT>" );
1818 case DrillMapFormat::DMF_POSTSCRIPT:
1820 case DrillMapFormat::DMF_GERBER_X2:
1822 case DrillMapFormat::DMF_DXF:
1824 case DrillMapFormat::DMF_SVG:
1826 case DrillMapFormat::DMF_PDF:
1828 case DrillMapFormat::DMF_UNKNOWN:
1844 wxCHECK_MSG(
false, kiapi::common::types::Units::U_UNKNOWN,
1845 "Unhandled case in ToProtoEnum<GENERATED_TABLE_UNITS>" );
1859 case kiapi::common::types::Units::U_MM:
1860 case kiapi::common::types::Units::U_UNKNOWN:
1861 case kiapi::common::types::Units::U_METERS:
1862 case kiapi::common::types::Units::U_TENTHS:
1877 wxCHECK_MSG(
false, kiapi::common::types::Units::U_UNKNOWN,
1878 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_DRILL::DRILL_UNITS>" );
1890 case kiapi::common::types::Units::U_UNKNOWN:
1891 case kiapi::common::types::Units::U_METERS:
1892 case kiapi::common::types::Units::U_TENTHS:
1908 wxCHECK_MSG(
false, PositionSide::PS_UNKNOWN,
1909 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_POS::SIDE>" );
1922 case PositionSide::PS_UNKNOWN:
1938 wxCHECK_MSG(
false, PositionFormat::PF_UNKNOWN,
1939 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_POS::FORMAT>" );
1952 case PositionFormat::PF_UNKNOWN:
1967 wxCHECK_MSG(
false, Ipc2581Version::IPC2581V_UNKNOWN,
1968 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_IPC2581::IPC2581_VERSION>" );
1980 case Ipc2581Version::IPC2581V_UNKNOWN:
1996 wxCHECK_MSG(
false, OdbCompression::ODBC_UNKNOWN,
1997 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_ODB::ODB_COMPRESSION>" );
2010 case OdbCompression::ODBC_UNKNOWN:
2025 wxCHECK_MSG(
false, OdbVariantPackaging::ODBVP_UNKNOWN,
2026 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_ODB::VARIANT_PACKAGING>" );
2039 default: wxCHECK_MSG(
false, OdbOrigin::ODBO_UNKNOWN,
"Unhandled ODB++ origin" );
2051 case OdbOrigin::ODBO_ABSOLUTE:
2052 case OdbOrigin::ODBO_UNKNOWN:
2071 default: wxCHECK_MSG(
false, FabDataSet::FDS_UNKNOWN,
"Unhandled fabrication data set" );
2088 case FabDataSet::FDS_USERDEF:
2104 default: wxCHECK_MSG(
false, FabNetNamePolicy::FNNP_UNKNOWN,
"Unhandled net name policy" );
2115 case FabNetNamePolicy::FNNP_INCLUDE:
2116 case FabNetNamePolicy::FNNP_UNKNOWN:
2129 default: wxCHECK_MSG(
false, Ipc2581RefDes::IPC2581RD_UNKNOWN,
"Unhandled reference designator policy" );
2140 case Ipc2581RefDes::IPC2581RD_INCLUDE:
2141 case Ipc2581RefDes::IPC2581RD_UNKNOWN:
2153 case OdbVariantPackaging::ODBVP_SEPARATE:
2154 case OdbVariantPackaging::ODBVP_UNKNOWN:
2169 wxCHECK_MSG(
false, StatsOutputFormat::SOF_UNKNOWN,
2170 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_STATS::OUTPUT_FORMAT>" );
2182 case StatsOutputFormat::SOF_UNKNOWN:
2197 wxCHECK_MSG(
false, kiapi::common::types::Units::U_UNKNOWN,
2198 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_DXF::DXF_UNITS>" );
2210 case kiapi::common::types::Units::U_UNKNOWN:
2211 case kiapi::common::types::Units::U_METERS:
2212 case kiapi::common::types::Units::U_TENTHS:
2227 wxCHECK_MSG(
false, kiapi::common::types::Units::U_UNKNOWN,
2228 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_POS::UNITS>" );
2240 case kiapi::common::types::Units::U_UNKNOWN:
2241 case kiapi::common::types::Units::U_METERS:
2242 case kiapi::common::types::Units::U_TENTHS:
2257 wxCHECK_MSG(
false, kiapi::common::types::Units::U_UNKNOWN,
2258 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_FAB::UNITS>" );
2270 case kiapi::common::types::Units::U_UNKNOWN:
2271 case kiapi::common::types::Units::U_METERS:
2272 case kiapi::common::types::Units::U_TENTHS:
2287 wxCHECK_MSG(
false, kiapi::common::types::Units::U_UNKNOWN,
2288 "Unhandled case in ToProtoEnum<IDF_SETTINGS::UNITS>" );
2300 case kiapi::common::types::Units::U_UNKNOWN:
2301 case kiapi::common::types::Units::U_INCH:
2302 case kiapi::common::types::Units::U_METERS:
2303 case kiapi::common::types::Units::U_TENTHS:
2320 wxCHECK_MSG(
false, IdfOriginMode::IOM_UNKNOWN,
2321 "Unhandled case in ToProtoEnum<IDF_SETTINGS::COORD_ORIGIN>" );
2335 case IdfOriginMode::IOM_UNKNOWN:
2350 wxCHECK_MSG(
false, kiapi::common::types::Units::U_UNKNOWN,
2351 "Unhandled case in ToProtoEnum<JOB_EXPORT_PCB_STATS::UNITS>" );
2363 case kiapi::common::types::Units::U_UNKNOWN:
2364 case kiapi::common::types::Units::U_METERS:
2365 case kiapi::common::types::Units::U_TENTHS:
2456 return DrcErrorType::DRCET_UNKNOWN;
2545 case DrcErrorType::DRCET_UNKNOWN:
2578 wxCHECK_MSG(
false, types::ConstraintType::CT_UNKNOWN,
2579 "Unhandled case in ToProtoEnum<PCB_CONSTRAINT_TYPE>" );
2611 "Unhandled case in FromProtoEnum<types::ConstraintType>" );
2630 wxCHECK_MSG(
false, types::ConstraintAnchor::CA_UNKNOWN,
2631 "Unhandled case in ToProtoEnum<CONSTRAINT_ANCHOR>" );
2641 case types::ConstraintAnchor::CA_UNKNOWN:
2652 "Unhandled case in FromProtoEnum<types::ConstraintAnchor>" );
2667 wxCHECK_MSG(
false, types::TuningPatternMode::TPM_UNKNOWN,
2668 "Unhandled case in ToProtoEnum<LENGTH_TUNING_MODE>" );
2687 "Unhandled case in FromProtoEnum<types::TuningPatternMode>" );
2702 wxCHECK_MSG(
false, types::TuningPatternMeanderSide::TPMS_UNKNOWN,
2703 "Unhandled case in ToProtoEnum<PNS::MEANDER_SIDE>" );
2722 "Unhandled case in FromProtoEnum<types::TuningPatternMeanderSide>" );
2734 wxCHECK_MSG(
false, types::TuningPatternCornerStyle::TPCS_UNKNOWN,
2735 "Unhandled case in ToProtoEnum<PNS::MEANDER_STYLE>" );
2753 "Unhandled case in FromProtoEnum<types::TuningPatternCornerStyle>" );
2766 wxCHECK_MSG(
false, types::TuningPatternStatus::TPS_UNKNOWN,
2767 "Unhandled case in ToProtoEnum<TUNING_STATUS>" );
2786 "Unhandled case in FromProtoEnum<types::TuningPatternStatus>" );
2800 wxCHECK_MSG(
false, types::ViaStitchLayout::VSL_UNKNOWN,
2801 "Unhandled case in ToProtoEnum<PCB_VIA_STITCH_LAYOUT>" );
2820 "Unhandled case in FromProtoEnum<types::ViaStitchLayout>" );
2833 wxCHECK_MSG(
false, types::ViaStitchMode::VSM_UNKNOWN,
2834 "Unhandled case in ToProtoEnum<PCB_VIA_STITCH_MODE>" );
2852 "Unhandled case in FromProtoEnum<types::ViaStitchMode>" );
2865 wxCHECK_MSG(
false, types::ViaStackStyle::VSK_UNKNOWN,
2866 "Unhandled case in ToProtoEnum<VIA_STACK_STYLE>" );
2884 "Unhandled case in FromProtoEnum<types::ViaStackStyle>" );
types::PadType ToProtoEnum(PAD_ATTRIB aValue)
PAD_ATTRIB FromProtoEnum(types::PadType aValue)
HIGH_CONTRAST_MODE
Determine how inactive layers should be displayed.
@ NORMAL
Inactive layers are shown normally (no high-contrast mode)
@ HIDDEN
Inactive layers are hidden.
@ DIMMED
Inactive layers are dimmed (old high-contrast mode)
NET_COLOR_MODE
Determine how net color overrides should be applied.
@ RATSNEST
Net/netclass colors are shown on ratsnest lines only.
@ ALL
Net/netclass colors are shown on all net copper.
@ OFF
Net (and netclass) colors are not shown.
RATSNEST_MODE
Determine how ratsnest lines are drawn.
@ VISIBLE
Ratsnest lines are drawn to items on visible layers only.
@ ALL
Ratsnest lines are drawn to items on all layers (default)
BS_EDGE_CONNECTOR_CONSTRAINTS
@ BS_EDGE_CONNECTOR_BEVELLED
@ BS_EDGE_CONNECTOR_IN_USE
@ BS_ITEM_TYPE_SILKSCREEN
@ BS_ITEM_TYPE_DIELECTRIC
@ BS_ITEM_TYPE_SOLDERPASTE
@ BS_ITEM_TYPE_SOLDERMASK
DATA_SET
Columns of the IPC-2581C function mode table, Table 4 p 80.
NET_NAMES
An anonymous name keeps the connections.
GEN_MODE
This is a hack to deal with cli having the wrong behavior We will deprecate out the wrong behavior,...
@ ALL_LAYERS_SEPARATE_FILE
The most traditional output mode KiCad has had.
@ ALL_LAYERS_ONE_FILE
DEPRECATED MODE.
@ ONE_PAGE_PER_LAYER_ONE_FILE
"Single Document" mode
MODE
! Copper geometry mode: controls how many unique copper layer shapes this padstack has
@ NORMAL
Shape is the same on all layers.
@ CUSTOM
Shapes can be defined on arbitrary layers.
@ FRONT_INNER_BACK
Up to three shapes can be defined (F_Cu, inner copper layers, B_Cu)
TUNING_STATUS
Result of the length tuning operation.
@ DRC_DISALLOW_BURIED_VIAS
@ DRC_DISALLOW_BLIND_VIAS
@ DRC_DISALLOW_THROUGH_VIAS
@ DRC_DISALLOW_FOOTPRINTS
@ DRC_DISALLOW_MICRO_VIAS
@ ANNULAR_WIDTH_CONSTRAINT
@ BRIDGED_MASK_CONSTRAINT
@ COURTYARD_CLEARANCE_CONSTRAINT
@ VIA_DIAMETER_CONSTRAINT
@ ZONE_CONNECTION_CONSTRAINT
@ DIFF_PAIR_GAP_CONSTRAINT
@ NET_CHAIN_LENGTH_CONSTRAINT
@ VIA_DANGLING_CONSTRAINT
@ SOLDER_MASK_SLIVER_CONSTRAINT
@ NET_CHAIN_STUB_LENGTH_CONSTRAINT
@ SILK_CLEARANCE_CONSTRAINT
@ EDGE_CLEARANCE_CONSTRAINT
@ MIN_RESOLVED_SPOKES_CONSTRAINT
@ TRACK_SEGMENT_LENGTH_CONSTRAINT
@ HOLE_ASPECT_RATIO_CONSTRAINT
@ NET_CHAIN_RETURN_PATH_CONSTRAINT
@ PHYSICAL_HOLE_CLEARANCE_CONSTRAINT
@ THERMAL_SPOKE_WIDTH_CONSTRAINT
@ CONNECTION_WIDTH_CONSTRAINT
@ THERMAL_RELIEF_GAP_CONSTRAINT
@ MAX_UNCOUPLED_CONSTRAINT
@ MICROVIA_STACK_DEPTH_CONSTRAINT
@ HOLE_CLEARANCE_CONSTRAINT
@ SOLDER_PASTE_ABS_MARGIN_CONSTRAINT
@ SOLDER_MASK_EXPANSION_CONSTRAINT
@ DIFF_PAIR_INTRA_SKEW_CONSTRAINT
@ PHYSICAL_CLEARANCE_CONSTRAINT
@ SOLDER_PASTE_REL_MARGIN_CONSTRAINT
@ HOLE_TO_HOLE_CONSTRAINT
@ DRCE_DISABLED_LAYER_ITEM
@ DRCE_FOOTPRINT_SCALED_WITH_PADS
@ DRCE_DP_UNCOUPLED_LENGTH_TOO_LONG
@ DRCE_TUNING_PROFILE_IMPLICIT_RULES
@ DRCE_MICROVIA_STACK_DEPTH
@ DRCE_SILK_EDGE_CLEARANCE
@ DRCE_SILK_MASK_CLEARANCE
@ DRCE_DP_GAP_OUT_OF_RANGE
@ DRCE_MIRRORED_TEXT_ON_FRONT_LAYER
@ DRCE_LIB_FOOTPRINT_ISSUES
@ DRCE_MICROVIA_CROSSES_CORE
@ DRCE_OVERLAPPING_FOOTPRINTS
@ DRCE_TRACK_ON_POST_MACHINED_LAYER
@ DRCE_NET_CHAIN_STUB_TOO_LONG
@ DRCE_MALFORMED_MICROVIA_STACK_SPAN
@ DRCE_DRILL_OUT_OF_RANGE
@ DRCE_NET_CHAIN_RETURN_PATH_BREAK
@ DRCE_TRACK_SEGMENT_LENGTH
@ DRCE_SCHEMATIC_FIELDS_PARITY
@ DRCE_MICROVIA_STACK_NOT_FILLED
@ DRCE_TRACK_NOT_CENTERED_ON_VIA
@ DRCE_COPPER_OUTSIDE_BOARD
@ DRCE_NET_CHAIN_TUNING_PROFILES
@ DRCE_MISSING_TUNING_PROFILE
@ DRCE_DRILLED_HOLES_TOO_CLOSE
@ DRCE_MICROVIA_DRILL_OUT_OF_RANGE
@ DRCE_MALFORMED_COURTYARD
@ DRCE_UNRESOLVED_VARIABLE
@ DRCE_FOOTPRINT_TYPE_MISMATCH
@ DRCE_DUPLICATE_FOOTPRINT
@ DRCE_DRILLED_HOLES_COLOCATED
@ DRCE_LENGTH_OUT_OF_RANGE
@ DRCE_LIB_FOOTPRINT_MISMATCH
@ DRCE_PAD_TH_WITH_NO_HOLE
@ DRCE_UNMIRRORED_TEXT_ON_BACK_LAYER
@ DRCE_VIA_COUNT_OUT_OF_RANGE
@ DRCE_MICROVIA_SPANS_DIELECTRICS
MEANDER_SIDE
Initial side the meander is placed on.
MEANDER_STYLE
Meander corner shape.
PAD_DRILL_SHAPE
The set of pad drill shapes, used with PAD::{Set,Get}DrillShape()
PAD_ATTRIB
The set of pad shapes, used with PAD::{Set,Get}Attribute().
@ NPTH
like PAD_PTH, but not plated mechanical use only, no connection allowed
@ NON_COMPONENT
Pad with no hole that does not connect to a physical component, but rather provides a connection poin...
@ SMD
Smd pad, appears on the solder paste layer (default)
@ PTH
Plated through hole pad.
@ CONN
Like smd, does not appear on the solder paste layer (default) Note: also has a special attribute in G...
PAD_SHAPE
The set of pad shapes, used with PAD::{Set,Get}Shape()
PAD_PROP
The set of pad properties used in Gerber files (Draw files, and P&P files) to define some properties ...
@ FIDUCIAL_LOCAL
a fiducial (usually a smd) local to the parent footprint
@ FIDUCIAL_GLBL
a fiducial (usually a smd) for the full board
@ MECHANICAL
a pad used for mechanical support
@ PRESSFIT
a PTH with a hole diameter with tight tolerances for press fit pin
@ HEATSINK
a pad used as heat sink, usually in SMD footprints
@ NONE
no special fabrication property
@ TESTPOINT
a test point pad
@ CASTELLATED
a pad with a castellated through hole
@ BGA
Smd pad, used in BGA footprints.
@ REMOVE_EXCEPT_START_AND_END
CONSTRAINT_ANCHOR
Which feature of a referenced board item participates in a constraint.
@ VERTEX
An indexed rectangle corner or polygon outline vertex; pairs with CONSTRAINT_MEMBER::m_index.
@ MID
Midpoint of a segment or arc.
@ RADIUS
The radius (scalar feature) of an arc or circle.
@ WHOLE
The item as a whole (a segment as a line, a circle).
@ START
First endpoint of a segment or arc.
@ END
Second endpoint of a segment or arc.
@ CENTER
Center of an arc or circle.
PCB_CONSTRAINT_TYPE
The geometric relationship a PCB_CONSTRAINT enforces between its members.
@ CONCENTRIC
Two arcs/circles share a center.
@ SYMMETRIC
Two points are mirror images about an axis.
@ FIXED_POSITION
A point is locked at its current location.
@ VERTICAL
A segment (or two points) is vertical.
@ TANGENT
A line and a curve, or two curves, touch tangentially.
@ COINCIDENT
Two points are made to coincide.
@ PERPENDICULAR
Two segments are perpendicular.
@ FIXED_RADIUS
An arc/circle has a driving radius value.
@ HORIZONTAL
A segment (or two points) is horizontal.
@ EQUAL_RADIUS
Two arcs/circles have equal radius.
@ MIDPOINT
A point is the midpoint of a segment.
@ POINT_ON_LINE
A point lies on a segment's supporting line.
@ FIXED_LENGTH
A segment has a driving length value.
@ ANGULAR_DIMENSION
An angle between members (driving or reference).
@ COLLINEAR
Two segments lie on the same line.
@ ARC_ANGLE
An arc has a driving or reference swept-angle value.
@ PARALLEL
Two segments are parallel.
@ EQUAL_LENGTH
Two segments have equal length.
DIM_TEXT_POSITION
Where to place the text on a dimension.
@ OUTSIDE
Text appears outside the dimension line (default)
@ MANUAL
Text placement is manually set by the user.
@ INLINE
Text appears in line with the dimension line.
DIM_UNITS_FORMAT
How to display the units in a dimension's text.
DIM_UNITS_MODE
Used for storing the units selection in the file because EDA_UNITS alone doesn't cut it.
DIM_ARROW_DIRECTION
Used for dimension's arrow.
DIM_TEXT_BORDER
Frame to show around dimension text.
@ STITCH
Fill the outline with vias with a pattern.
@ GUARD
Place vias to guard a net contained within.
@ POISSON
Tiled poisson distribution.
@ STAGGERED
Odd rows shifted by half the pitch.
@ PLAIN
Regular row/column grid.
DRILL_MARKS
Plots and prints can show holes in pads and vias 3 options are available:
TEARDROP_TYPE
define the type of a teardrop: on a via or pad, or a track end
DIELECTRIC_MODEL
Frequency-domain model used for the substrate dielectric properties.
Class ZONE_SETTINGS used to handle zones parameters in dialogs.
THIEVING_PATTERN
Shape stamped onto the grid for a copper-thieving fill.
ISLAND_REMOVAL_MODE
Whether or not to remove isolated islands from a zone.
ZONE_BORDER_DISPLAY_STYLE
Zone border styles.
ZONE_CONNECTION
How pads are covered by copper in zone.
@ THERMAL
Use thermal relief for pads.
@ THT_THERMAL
Thermal relief only for THT pads.
@ NONE
Pads are not covered.
@ FULL
pads are covered by copper