| 
    KiCad PCB EDA Suite
    
   | 
 
#include <import_export.h>#include <api/api_enums.h>#include <api/board/board_types.pb.h>#include <api/board/board_commands.pb.h>#include <wx/wx.h>#include <widgets/report_severity.h>#include <board_stackup_manager/board_stackup.h>#include <padstack.h>#include <pcb_dimension.h>#include <pcb_track.h>#include <zones.h>#include <zone_settings.h>#include <project/board_project_settings.h>Go to the source code of this file.
Functions | |
| template<> | |
| types::PadType | ToProtoEnum (PAD_ATTRIB aValue) | 
| template<> | |
| PAD_ATTRIB | FromProtoEnum (types::PadType aValue) | 
| template<> | |
| types::DrillShape | ToProtoEnum (PAD_DRILL_SHAPE aValue) | 
| template<> | |
| PAD_DRILL_SHAPE | FromProtoEnum (types::DrillShape aValue) | 
| template<> | |
| types::PadStackShape | ToProtoEnum (PAD_SHAPE aValue) | 
| template<> | |
| PAD_SHAPE | FromProtoEnum (types::PadStackShape aValue) | 
| template<> | |
| types::PadStackType | ToProtoEnum (PADSTACK::MODE aValue) | 
| template<> | |
| PADSTACK::MODE | FromProtoEnum (types::PadStackType aValue) | 
| template<> | |
| types::ViaType | ToProtoEnum (VIATYPE aValue) | 
| template<> | |
| VIATYPE | FromProtoEnum (types::ViaType aValue) | 
| template<> | |
| types::ZoneConnectionStyle | ToProtoEnum (ZONE_CONNECTION aValue) | 
| template<> | |
| ZONE_CONNECTION | FromProtoEnum (types::ZoneConnectionStyle aValue) | 
| template<> | |
| types::UnconnectedLayerRemoval | ToProtoEnum (PADSTACK::UNCONNECTED_LAYER_MODE aValue) | 
| template<> | |
| PADSTACK::UNCONNECTED_LAYER_MODE | FromProtoEnum (types::UnconnectedLayerRemoval aValue) | 
| template<> | |
| types::IslandRemovalMode | ToProtoEnum (ISLAND_REMOVAL_MODE aValue) | 
| template<> | |
| ISLAND_REMOVAL_MODE | FromProtoEnum (types::IslandRemovalMode aValue) | 
| template<> | |
| types::ZoneFillMode | ToProtoEnum (ZONE_FILL_MODE aValue) | 
| template<> | |
| ZONE_FILL_MODE | FromProtoEnum (types::ZoneFillMode aValue) | 
| template<> | |
| types::ZoneBorderStyle | ToProtoEnum (ZONE_BORDER_DISPLAY_STYLE aValue) | 
| template<> | |
| ZONE_BORDER_DISPLAY_STYLE | FromProtoEnum (types::ZoneBorderStyle aValue) | 
| template<> | |
| types::PlacementRuleSourceType | ToProtoEnum (PLACEMENT_SOURCE_T aValue) | 
| template<> | |
| PLACEMENT_SOURCE_T | FromProtoEnum (types::PlacementRuleSourceType aValue) | 
| template<> | |
| types::TeardropType | ToProtoEnum (TEARDROP_TYPE aValue) | 
| template<> | |
| TEARDROP_TYPE | FromProtoEnum (types::TeardropType aValue) | 
| template<> | |
| types::DimensionTextBorderStyle | ToProtoEnum (DIM_TEXT_BORDER aValue) | 
| template<> | |
| DIM_TEXT_BORDER | FromProtoEnum (types::DimensionTextBorderStyle aValue) | 
| template<> | |
| types::DimensionUnitFormat | ToProtoEnum (DIM_UNITS_FORMAT aValue) | 
| template<> | |
| DIM_UNITS_FORMAT | FromProtoEnum (types::DimensionUnitFormat aValue) | 
| template<> | |
| types::DimensionArrowDirection | ToProtoEnum (DIM_ARROW_DIRECTION aValue) | 
| template<> | |
| DIM_ARROW_DIRECTION | FromProtoEnum (types::DimensionArrowDirection aValue) | 
| template<> | |
| types::DimensionPrecision | ToProtoEnum (DIM_PRECISION aValue) | 
| template<> | |
| DIM_PRECISION | FromProtoEnum (types::DimensionPrecision aValue) | 
| template<> | |
| types::DimensionTextPosition | ToProtoEnum (DIM_TEXT_POSITION aValue) | 
| template<> | |
| DIM_TEXT_POSITION | FromProtoEnum (types::DimensionTextPosition aValue) | 
| template<> | |
| types::DimensionUnit | ToProtoEnum (DIM_UNITS_MODE aValue) | 
| template<> | |
| DIM_UNITS_MODE | FromProtoEnum (types::DimensionUnit aValue) | 
| template<> | |
| commands::InactiveLayerDisplayMode | ToProtoEnum (HIGH_CONTRAST_MODE aValue) | 
| template<> | |
| HIGH_CONTRAST_MODE | FromProtoEnum (commands::InactiveLayerDisplayMode aValue) | 
| template<> | |
| commands::NetColorDisplayMode | ToProtoEnum (NET_COLOR_MODE aValue) | 
| template<> | |
| NET_COLOR_MODE | FromProtoEnum (commands::NetColorDisplayMode aValue) | 
| template<> | |
| commands::RatsnestDisplayMode | ToProtoEnum (RATSNEST_MODE aValue) | 
| template<> | |
| RATSNEST_MODE | FromProtoEnum (commands::RatsnestDisplayMode aValue) | 
| template<> | |
| BoardStackupLayerType | ToProtoEnum (BOARD_STACKUP_ITEM_TYPE aValue) | 
| template<> | |
| BOARD_STACKUP_ITEM_TYPE | FromProtoEnum (BoardStackupLayerType aValue) | 
| template<> | |
| DrcSeverity | ToProtoEnum (SEVERITY aValue) | 
| template<> | |
| SEVERITY | FromProtoEnum (DrcSeverity aValue) | 
| BOARD_STACKUP_ITEM_TYPE FromProtoEnum | ( | BoardStackupLayerType | aValue | ) | 
Definition at line 814 of file api_pcb_enums.cpp.
References BS_ITEM_TYPE_COPPER, BS_ITEM_TYPE_DIELECTRIC, BS_ITEM_TYPE_SILKSCREEN, BS_ITEM_TYPE_SOLDERMASK, BS_ITEM_TYPE_SOLDERPASTE, and BS_ITEM_TYPE_UNDEFINED.
| HIGH_CONTRAST_MODE FromProtoEnum | ( | commands::InactiveLayerDisplayMode | aValue | ) | 
Definition at line 714 of file api_pcb_enums.cpp.
| NET_COLOR_MODE FromProtoEnum | ( | commands::NetColorDisplayMode | aValue | ) | 
Definition at line 747 of file api_pcb_enums.cpp.
| RATSNEST_MODE FromProtoEnum | ( | commands::RatsnestDisplayMode | aValue | ) | 
Definition at line 779 of file api_pcb_enums.cpp.
| SEVERITY FromProtoEnum | ( | DrcSeverity | aValue | ) | 
Definition at line 853 of file api_pcb_enums.cpp.
References RPT_SEVERITY_ACTION, RPT_SEVERITY_DEBUG, RPT_SEVERITY_ERROR, RPT_SEVERITY_EXCLUSION, RPT_SEVERITY_IGNORE, RPT_SEVERITY_INFO, RPT_SEVERITY_UNDEFINED, and RPT_SEVERITY_WARNING.
| DIM_ARROW_DIRECTION FromProtoEnum | ( | types::DimensionArrowDirection | aValue | ) | 
Definition at line 567 of file api_pcb_enums.cpp.
| DIM_PRECISION FromProtoEnum | ( | types::DimensionPrecision | aValue | ) | 
| DIM_TEXT_BORDER FromProtoEnum | ( | types::DimensionTextBorderStyle | aValue | ) | 
| DIM_TEXT_POSITION FromProtoEnum | ( | types::DimensionTextPosition | aValue | ) | 
Definition at line 646 of file api_pcb_enums.cpp.
| DIM_UNITS_MODE FromProtoEnum | ( | types::DimensionUnit | aValue | ) | 
| DIM_UNITS_FORMAT FromProtoEnum | ( | types::DimensionUnitFormat | aValue | ) | 
Definition at line 535 of file api_pcb_enums.cpp.
References BARE_SUFFIX, NO_SUFFIX, and PAREN_SUFFIX.
| PAD_DRILL_SHAPE FromProtoEnum | ( | types::DrillShape | aValue | ) | 
Definition at line 90 of file api_pcb_enums.cpp.
| ISLAND_REMOVAL_MODE FromProtoEnum | ( | types::IslandRemovalMode | aValue | ) | 
Definition at line 317 of file api_pcb_enums.cpp.
| PAD_SHAPE FromProtoEnum | ( | types::PadStackShape | aValue | ) | 
Definition at line 125 of file api_pcb_enums.cpp.
References CHAMFERED_RECT, CIRCLE, CUSTOM, OVAL, RECTANGLE, ROUNDRECT, and TRAPEZOID.
| PADSTACK::MODE FromProtoEnum | ( | types::PadStackType | aValue | ) | 
Definition at line 162 of file api_pcb_enums.cpp.
References PADSTACK::CUSTOM, PADSTACK::FRONT_INNER_BACK, and PADSTACK::NORMAL.
| PAD_ATTRIB FromProtoEnum | ( | types::PadType | aValue | ) | 
| PLACEMENT_SOURCE_T FromProtoEnum | ( | types::PlacementRuleSourceType | aValue | ) | 
Definition at line 424 of file api_pcb_enums.cpp.
References COMPONENT_CLASS, DESIGN_BLOCK, GROUP_PLACEMENT, and SHEETNAME.
| TEARDROP_TYPE FromProtoEnum | ( | types::TeardropType | aValue | ) | 
Definition at line 466 of file api_pcb_enums.cpp.
References TD_NONE, TD_TRACKEND, TD_UNSPECIFIED, and TD_VIAPAD.
| PADSTACK::UNCONNECTED_LAYER_MODE FromProtoEnum | ( | types::UnconnectedLayerRemoval | aValue | ) | 
Definition at line 276 of file api_pcb_enums.cpp.
References PADSTACK::KEEP_ALL, PADSTACK::REMOVE_ALL, PADSTACK::REMOVE_EXCEPT_START_AND_END, and PADSTACK::START_END_ONLY.
| VIATYPE FromProtoEnum | ( | types::ViaType | aValue | ) | 
| ZONE_BORDER_DISPLAY_STYLE FromProtoEnum | ( | types::ZoneBorderStyle | aValue | ) | 
Definition at line 382 of file api_pcb_enums.cpp.
References DIAGONAL_EDGE, DIAGONAL_FULL, INVISIBLE_BORDER, and NO_HATCH.
| ZONE_CONNECTION FromProtoEnum | ( | types::ZoneConnectionStyle | aValue | ) | 
Definition at line 233 of file api_pcb_enums.cpp.
References FULL, INHERITED, NONE, THERMAL, and THT_THERMAL.
| ZONE_FILL_MODE FromProtoEnum | ( | types::ZoneFillMode | aValue | ) | 
Definition at line 349 of file api_pcb_enums.cpp.
References HATCH_PATTERN, and POLYGONS.
| BoardStackupLayerType ToProtoEnum | ( | BOARD_STACKUP_ITEM_TYPE | aValue | ) | 
Definition at line 795 of file api_pcb_enums.cpp.
References BS_ITEM_TYPE_COPPER, BS_ITEM_TYPE_DIELECTRIC, BS_ITEM_TYPE_SILKSCREEN, BS_ITEM_TYPE_SOLDERMASK, BS_ITEM_TYPE_SOLDERPASTE, and BS_ITEM_TYPE_UNDEFINED.
| types::DimensionArrowDirection ToProtoEnum | ( | DIM_ARROW_DIRECTION | aValue | ) | 
Definition at line 552 of file api_pcb_enums.cpp.
| types::DimensionPrecision ToProtoEnum | ( | DIM_PRECISION | aValue | ) | 
| types::DimensionTextBorderStyle ToProtoEnum | ( | DIM_TEXT_BORDER | aValue | ) | 
| types::DimensionTextPosition ToProtoEnum | ( | DIM_TEXT_POSITION | aValue | ) | 
Definition at line 630 of file api_pcb_enums.cpp.
| types::DimensionUnitFormat ToProtoEnum | ( | DIM_UNITS_FORMAT | aValue | ) | 
Definition at line 519 of file api_pcb_enums.cpp.
References BARE_SUFFIX, NO_SUFFIX, and PAREN_SUFFIX.
| types::DimensionUnit ToProtoEnum | ( | DIM_UNITS_MODE | aValue | ) | 
| commands::InactiveLayerDisplayMode ToProtoEnum | ( | HIGH_CONTRAST_MODE | aValue | ) | 
Definition at line 698 of file api_pcb_enums.cpp.
| types::IslandRemovalMode ToProtoEnum | ( | ISLAND_REMOVAL_MODE | aValue | ) | 
Definition at line 301 of file api_pcb_enums.cpp.
| commands::NetColorDisplayMode ToProtoEnum | ( | NET_COLOR_MODE | aValue | ) | 
Definition at line 731 of file api_pcb_enums.cpp.
| types::PadType ToProtoEnum | ( | PAD_ATTRIB | aValue | ) | 
| types::DrillShape ToProtoEnum | ( | PAD_DRILL_SHAPE | aValue | ) | 
Definition at line 76 of file api_pcb_enums.cpp.
| types::PadStackShape ToProtoEnum | ( | PAD_SHAPE | aValue | ) | 
Definition at line 105 of file api_pcb_enums.cpp.
References CHAMFERED_RECT, CIRCLE, CUSTOM, OVAL, RECTANGLE, ROUNDRECT, and TRAPEZOID.
| types::PadStackType ToProtoEnum | ( | PADSTACK::MODE | aValue | ) | 
Definition at line 146 of file api_pcb_enums.cpp.
References PADSTACK::CUSTOM, PADSTACK::FRONT_INNER_BACK, and PADSTACK::NORMAL.
| types::UnconnectedLayerRemoval ToProtoEnum | ( | PADSTACK::UNCONNECTED_LAYER_MODE | aValue | ) | 
Definition at line 252 of file api_pcb_enums.cpp.
References PADSTACK::KEEP_ALL, PADSTACK::REMOVE_ALL, PADSTACK::REMOVE_EXCEPT_START_AND_END, and PADSTACK::START_END_ONLY.
| types::PlacementRuleSourceType ToProtoEnum | ( | PLACEMENT_SOURCE_T | aValue | ) | 
Definition at line 400 of file api_pcb_enums.cpp.
References COMPONENT_CLASS, DESIGN_BLOCK, GROUP_PLACEMENT, and SHEETNAME.
| commands::RatsnestDisplayMode ToProtoEnum | ( | RATSNEST_MODE | aValue | ) | 
Definition at line 764 of file api_pcb_enums.cpp.
| DrcSeverity ToProtoEnum | ( | SEVERITY | aValue | ) | 
Definition at line 833 of file api_pcb_enums.cpp.
References RPT_SEVERITY_ACTION, RPT_SEVERITY_DEBUG, RPT_SEVERITY_ERROR, RPT_SEVERITY_EXCLUSION, RPT_SEVERITY_IGNORE, RPT_SEVERITY_INFO, RPT_SEVERITY_UNDEFINED, and RPT_SEVERITY_WARNING.
| types::TeardropType ToProtoEnum | ( | TEARDROP_TYPE | aValue | ) | 
Definition at line 449 of file api_pcb_enums.cpp.
References TD_NONE, TD_TRACKEND, TD_UNSPECIFIED, and TD_VIAPAD.
| types::ViaType ToProtoEnum | ( | VIATYPE | aValue | ) | 
| types::ZoneBorderStyle ToProtoEnum | ( | ZONE_BORDER_DISPLAY_STYLE | aValue | ) | 
Definition at line 365 of file api_pcb_enums.cpp.
References DIAGONAL_EDGE, DIAGONAL_FULL, INVISIBLE_BORDER, and NO_HATCH.
| types::ZoneConnectionStyle ToProtoEnum | ( | ZONE_CONNECTION | aValue | ) | 
Definition at line 215 of file api_pcb_enums.cpp.
References FULL, INHERITED, NONE, THERMAL, and THT_THERMAL.
| types::ZoneFillMode ToProtoEnum | ( | ZONE_FILL_MODE | aValue | ) | 
Definition at line 334 of file api_pcb_enums.cpp.
References HATCH_PATTERN, and POLYGONS.