KiCad PCB EDA Suite
Loading...
Searching...
No Matches
api_pcb_enums.cpp File Reference
#include <import_export.h>
#include <api/api_enums.h>
#include <api/board/board.pb.h>
#include <api/board/board_types.pb.h>
#include <api/board/board_commands.pb.h>
#include <api/board/board_jobs.pb.h>
#include <api/common/types/enums.pb.h>
#include <wx/wx.h>
#include <widgets/report_severity.h>
#include <board_stackup_manager/board_stackup.h>
#include <drc/drc_item.h>
#include <padstack.h>
#include <pcb_dimension.h>
#include <pcb_track.h>
#include <jobs/job_export_pcb_3d.h>
#include <jobs/job_export_pcb_dxf.h>
#include <jobs/job_export_pcb_drill.h>
#include <jobs/job_export_pcb_ipc2581.h>
#include <jobs/job_export_pcb_odb.h>
#include <jobs/job_export_pcb_pdf.h>
#include <jobs/job_export_pcb_pos.h>
#include <jobs/job_export_pcb_ps.h>
#include <jobs/job_export_pcb_stats.h>
#include <jobs/job_export_pcb_svg.h>
#include <jobs/job_pcb_render.h>
#include <drc/drc_rule.h>
#include <plotprint_opts.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<>
CustomRuleConstraintType ToProtoEnum (DRC_CONSTRAINT_T aValue)
 
template<>
DRC_CONSTRAINT_T FromProtoEnum (CustomRuleConstraintType aValue)
 
template<>
CustomRuleConstraintOption ToProtoEnum (DRC_CONSTRAINT::OPTIONS aValue)
 
template<>
DRC_CONSTRAINT::OPTIONS FromProtoEnum (CustomRuleConstraintOption aValue)
 
template<>
CustomRuleDisallowType ToProtoEnum (DRC_DISALLOW_T aValue)
 
template<>
DRC_DISALLOW_T FromProtoEnum (CustomRuleDisallowType aValue)
 
template<>
types::UnconnectedLayerRemoval ToProtoEnum (UNCONNECTED_LAYER_MODE aValue)
 
template<>
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<>
kiapi::board::TeardropTarget ToProtoEnum (TARGET_TD aValue)
 
template<>
TARGET_TD FromProtoEnum (kiapi::board::TeardropTarget 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)
 
template<>
PlotDrillMarks ToProtoEnum (DRILL_MARKS aValue)
 
template<>
DRILL_MARKS FromProtoEnum (PlotDrillMarks aValue)
 
template<>
Board3DFormat ToProtoEnum (JOB_EXPORT_PCB_3D::FORMAT aValue)
 
template<>
JOB_EXPORT_PCB_3D::FORMAT FromProtoEnum (Board3DFormat aValue)
 
template<>
kiapi::common::types::Units ToProtoEnum (JOB_EXPORT_PCB_3D::VRML_UNITS aValue)
 
template<>
JOB_EXPORT_PCB_3D::VRML_UNITS FromProtoEnum (kiapi::common::types::Units aValue)
 
template<>
RenderFormat ToProtoEnum (JOB_PCB_RENDER::FORMAT aValue)
 
template<>
JOB_PCB_RENDER::FORMAT FromProtoEnum (RenderFormat aValue)
 
template<>
RenderQuality ToProtoEnum (JOB_PCB_RENDER::QUALITY aValue)
 
template<>
JOB_PCB_RENDER::QUALITY FromProtoEnum (RenderQuality aValue)
 
template<>
RenderBackgroundStyle ToProtoEnum (JOB_PCB_RENDER::BG_STYLE aValue)
 
template<>
JOB_PCB_RENDER::BG_STYLE FromProtoEnum (RenderBackgroundStyle aValue)
 
template<>
RenderSide ToProtoEnum (JOB_PCB_RENDER::SIDE aValue)
 
template<>
JOB_PCB_RENDER::SIDE FromProtoEnum (RenderSide aValue)
 
template<>
BoardJobPaginationMode ToProtoEnum (JOB_EXPORT_PCB_SVG::GEN_MODE aValue)
 
template<>
JOB_EXPORT_PCB_SVG::GEN_MODE FromProtoEnum (BoardJobPaginationMode aValue)
 
template<>
BoardJobPaginationMode ToProtoEnum (JOB_EXPORT_PCB_DXF::GEN_MODE aValue)
 
template<>
JOB_EXPORT_PCB_DXF::GEN_MODE FromProtoEnum (BoardJobPaginationMode aValue)
 
template<>
BoardJobPaginationMode ToProtoEnum (JOB_EXPORT_PCB_PDF::GEN_MODE aValue)
 
template<>
JOB_EXPORT_PCB_PDF::GEN_MODE FromProtoEnum (BoardJobPaginationMode aValue)
 
template<>
BoardJobPaginationMode ToProtoEnum (JOB_EXPORT_PCB_PS::GEN_MODE aValue)
 
template<>
JOB_EXPORT_PCB_PS::GEN_MODE FromProtoEnum (BoardJobPaginationMode aValue)
 
template<>
DrillFormat ToProtoEnum (JOB_EXPORT_PCB_DRILL::DRILL_FORMAT aValue)
 
template<>
JOB_EXPORT_PCB_DRILL::DRILL_FORMAT FromProtoEnum (DrillFormat aValue)
 
template<>
DrillOrigin ToProtoEnum (JOB_EXPORT_PCB_DRILL::DRILL_ORIGIN aValue)
 
template<>
JOB_EXPORT_PCB_DRILL::DRILL_ORIGIN FromProtoEnum (DrillOrigin aValue)
 
template<>
DrillZerosFormat ToProtoEnum (JOB_EXPORT_PCB_DRILL::ZEROS_FORMAT aValue)
 
template<>
JOB_EXPORT_PCB_DRILL::ZEROS_FORMAT FromProtoEnum (DrillZerosFormat aValue)
 
template<>
DrillMapFormat ToProtoEnum (JOB_EXPORT_PCB_DRILL::MAP_FORMAT aValue)
 
template<>
JOB_EXPORT_PCB_DRILL::MAP_FORMAT FromProtoEnum (DrillMapFormat aValue)
 
template<>
kiapi::common::types::Units ToProtoEnum (JOB_EXPORT_PCB_DRILL::DRILL_UNITS aValue)
 
template<>
JOB_EXPORT_PCB_DRILL::DRILL_UNITS FromProtoEnum (kiapi::common::types::Units aValue)
 
template<>
PositionSide ToProtoEnum (JOB_EXPORT_PCB_POS::SIDE aValue)
 
template<>
JOB_EXPORT_PCB_POS::SIDE FromProtoEnum (PositionSide aValue)
 
template<>
PositionFormat ToProtoEnum (JOB_EXPORT_PCB_POS::FORMAT aValue)
 
template<>
JOB_EXPORT_PCB_POS::FORMAT FromProtoEnum (PositionFormat aValue)
 
template<>
Ipc2581Version ToProtoEnum (JOB_EXPORT_PCB_IPC2581::IPC2581_VERSION aValue)
 
template<>
JOB_EXPORT_PCB_IPC2581::IPC2581_VERSION FromProtoEnum (Ipc2581Version aValue)
 
template<>
OdbCompression ToProtoEnum (JOB_EXPORT_PCB_ODB::ODB_COMPRESSION aValue)
 
template<>
JOB_EXPORT_PCB_ODB::ODB_COMPRESSION FromProtoEnum (OdbCompression aValue)
 
template<>
StatsOutputFormat ToProtoEnum (JOB_EXPORT_PCB_STATS::OUTPUT_FORMAT aValue)
 
template<>
JOB_EXPORT_PCB_STATS::OUTPUT_FORMAT FromProtoEnum (StatsOutputFormat aValue)
 
template<>
kiapi::common::types::Units ToProtoEnum (JOB_EXPORT_PCB_DXF::DXF_UNITS aValue)
 
template<>
JOB_EXPORT_PCB_DXF::DXF_UNITS FromProtoEnum (kiapi::common::types::Units aValue)
 
template<>
kiapi::common::types::Units ToProtoEnum (JOB_EXPORT_PCB_POS::UNITS aValue)
 
template<>
JOB_EXPORT_PCB_POS::UNITS FromProtoEnum (kiapi::common::types::Units aValue)
 
template<>
kiapi::common::types::Units ToProtoEnum (JOB_EXPORT_PCB_IPC2581::IPC2581_UNITS aValue)
 
template<>
JOB_EXPORT_PCB_IPC2581::IPC2581_UNITS FromProtoEnum (kiapi::common::types::Units aValue)
 
template<>
kiapi::common::types::Units ToProtoEnum (JOB_EXPORT_PCB_ODB::ODB_UNITS aValue)
 
template<>
JOB_EXPORT_PCB_ODB::ODB_UNITS FromProtoEnum (kiapi::common::types::Units aValue)
 
template<>
kiapi::common::types::Units ToProtoEnum (JOB_EXPORT_PCB_STATS::UNITS aValue)
 
template<>
JOB_EXPORT_PCB_STATS::UNITS FromProtoEnum (kiapi::common::types::Units aValue)
 
template<>
DrcErrorType ToProtoEnum (PCB_DRC_CODE aValue)
 
template<>
PCB_DRC_CODE FromProtoEnum (DrcErrorType aValue)
 

Function Documentation

◆ FromProtoEnum() [1/54]

◆ FromProtoEnum() [2/54]

template<>
JOB_EXPORT_PCB_SVG::GEN_MODE FromProtoEnum ( BoardJobPaginationMode aValue)

Definition at line 1355 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_SVG::MULTI, and JOB_EXPORT_PCB_SVG::SINGLE.

◆ FromProtoEnum() [3/54]

template<>
JOB_EXPORT_PCB_DXF::GEN_MODE FromProtoEnum ( BoardJobPaginationMode aValue)

Definition at line 1386 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_DXF::MULTI, and JOB_EXPORT_PCB_DXF::SINGLE.

◆ FromProtoEnum() [4/54]

◆ FromProtoEnum() [5/54]

template<>
JOB_EXPORT_PCB_PS::GEN_MODE FromProtoEnum ( BoardJobPaginationMode aValue)

Definition at line 1453 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_PS::MULTI, and JOB_EXPORT_PCB_PS::SINGLE.

◆ FromProtoEnum() [6/54]

◆ FromProtoEnum() [7/54]

template<>
HIGH_CONTRAST_MODE FromProtoEnum ( commands::InactiveLayerDisplayMode aValue)

Definition at line 951 of file api_pcb_enums.cpp.

References DIMMED, HIDDEN, and NORMAL.

◆ FromProtoEnum() [8/54]

template<>
NET_COLOR_MODE FromProtoEnum ( commands::NetColorDisplayMode aValue)

Definition at line 984 of file api_pcb_enums.cpp.

References ALL, OFF, and RATSNEST.

◆ FromProtoEnum() [9/54]

template<>
RATSNEST_MODE FromProtoEnum ( commands::RatsnestDisplayMode aValue)

Definition at line 1016 of file api_pcb_enums.cpp.

References ALL, and VISIBLE.

◆ FromProtoEnum() [10/54]

template<>
DRC_CONSTRAINT::OPTIONS FromProtoEnum ( CustomRuleConstraintOption aValue)

◆ FromProtoEnum() [11/54]

◆ FromProtoEnum() [12/54]

◆ FromProtoEnum() [13/54]

template<>
PCB_DRC_CODE FromProtoEnum ( DrcErrorType aValue)

Definition at line 2015 of file api_pcb_enums.cpp.

References DRCE_ALLOWED_ITEMS, DRCE_ANNULAR_WIDTH, DRCE_ASSERTION_FAILURE, DRCE_CLEARANCE, DRCE_CONNECTION_WIDTH, DRCE_COPPER_SLIVER, DRCE_CREEPAGE, DRCE_DANGLING_TRACK, DRCE_DANGLING_VIA, DRCE_DIFF_PAIR_GAP_OUT_OF_RANGE, DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG, DRCE_DISABLED_LAYER_ITEM, DRCE_DRILL_OUT_OF_RANGE, DRCE_DRILLED_HOLES_COLOCATED, DRCE_DRILLED_HOLES_TOO_CLOSE, DRCE_DUPLICATE_FOOTPRINT, DRCE_EDGE_CLEARANCE, DRCE_EXTRA_FOOTPRINT, DRCE_FOOTPRINT, DRCE_FOOTPRINT_FILTERS, DRCE_FOOTPRINT_TYPE_MISMATCH, DRCE_GENERIC_ERROR, DRCE_GENERIC_WARNING, DRCE_HOLE_CLEARANCE, DRCE_INVALID_OUTLINE, DRCE_ISOLATED_COPPER, DRCE_LENGTH_OUT_OF_RANGE, DRCE_LIB_FOOTPRINT_ISSUES, DRCE_LIB_FOOTPRINT_MISMATCH, DRCE_MALFORMED_COURTYARD, DRCE_MICROVIA_DRILL_OUT_OF_RANGE, DRCE_MIRRORED_TEXT_ON_FRONT_LAYER, DRCE_MISSING_COURTYARD, DRCE_MISSING_FOOTPRINT, DRCE_MISSING_TUNING_PROFILE, DRCE_NET_CONFLICT, DRCE_NONMIRRORED_TEXT_ON_BACK_LAYER, DRCE_NPTH_IN_COURTYARD, DRCE_OVERLAPPING_FOOTPRINTS, DRCE_PAD_TH_WITH_NO_HOLE, DRCE_PADSTACK, DRCE_PADSTACK_INVALID, DRCE_PTH_IN_COURTYARD, DRCE_SCHEMATIC_FIELDS_PARITY, DRCE_SCHEMATIC_PARITY, DRCE_SHORTING_ITEMS, DRCE_SILK_CLEARANCE, DRCE_SILK_EDGE_CLEARANCE, DRCE_SILK_MASK_CLEARANCE, DRCE_SKEW_OUT_OF_RANGE, DRCE_SOLDERMASK_BRIDGE, DRCE_STARVED_THERMAL, DRCE_TEXT_HEIGHT, DRCE_TEXT_ON_EDGECUTS, DRCE_TEXT_THICKNESS, DRCE_TRACK_ANGLE, DRCE_TRACK_NOT_CENTERED_ON_VIA, DRCE_TRACK_ON_POST_MACHINED_LAYER, DRCE_TRACK_SEGMENT_LENGTH, DRCE_TRACK_WIDTH, DRCE_TRACKS_CROSSING, DRCE_TUNING_PROFILE_IMPLICIT_RULES, DRCE_UNCONNECTED_ITEMS, DRCE_UNRESOLVED_VARIABLE, DRCE_VIA_COUNT_OUT_OF_RANGE, DRCE_VIA_DIAMETER, and DRCE_ZONES_INTERSECT.

◆ FromProtoEnum() [14/54]

◆ FromProtoEnum() [15/54]

template<>
JOB_EXPORT_PCB_DRILL::DRILL_FORMAT FromProtoEnum ( DrillFormat aValue)

◆ FromProtoEnum() [16/54]

◆ FromProtoEnum() [17/54]

template<>
JOB_EXPORT_PCB_DRILL::DRILL_ORIGIN FromProtoEnum ( DrillOrigin aValue)

Definition at line 1512 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_DRILL::ABS, and JOB_EXPORT_PCB_DRILL::PLOT.

◆ FromProtoEnum() [18/54]

◆ FromProtoEnum() [19/54]

template<>
JOB_EXPORT_PCB_IPC2581::IPC2581_VERSION FromProtoEnum ( Ipc2581Version aValue)

Definition at line 1714 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_IPC2581::B, and JOB_EXPORT_PCB_IPC2581::C.

◆ FromProtoEnum() [20/54]

template<>
TARGET_TD FromProtoEnum ( kiapi::board::TeardropTarget aValue)

Definition at line 705 of file api_pcb_enums.cpp.

References TARGET_RECT, TARGET_ROUND, TARGET_TRACK, and TARGET_UNKNOWN.

◆ FromProtoEnum() [21/54]

template<>
JOB_EXPORT_PCB_3D::VRML_UNITS FromProtoEnum ( kiapi::common::types::Units aValue)

◆ FromProtoEnum() [22/54]

template<>
JOB_EXPORT_PCB_DRILL::DRILL_UNITS FromProtoEnum ( kiapi::common::types::Units aValue)

Definition at line 1624 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_DRILL::INCH, and JOB_EXPORT_PCB_DRILL::MM.

◆ FromProtoEnum() [23/54]

template<>
JOB_EXPORT_PCB_DXF::DXF_UNITS FromProtoEnum ( kiapi::common::types::Units aValue)

Definition at line 1800 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_DXF::INCH, and JOB_EXPORT_PCB_DXF::MM.

◆ FromProtoEnum() [24/54]

template<>
JOB_EXPORT_PCB_POS::UNITS FromProtoEnum ( kiapi::common::types::Units aValue)

Definition at line 1830 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_POS::INCH, and JOB_EXPORT_PCB_POS::MM.

◆ FromProtoEnum() [25/54]

template<>
JOB_EXPORT_PCB_IPC2581::IPC2581_UNITS FromProtoEnum ( kiapi::common::types::Units aValue)

Definition at line 1860 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_IPC2581::INCH, and JOB_EXPORT_PCB_IPC2581::MM.

◆ FromProtoEnum() [26/54]

template<>
JOB_EXPORT_PCB_ODB::ODB_UNITS FromProtoEnum ( kiapi::common::types::Units aValue)

Definition at line 1890 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_ODB::INCH, and JOB_EXPORT_PCB_ODB::MM.

◆ FromProtoEnum() [27/54]

template<>
JOB_EXPORT_PCB_STATS::UNITS FromProtoEnum ( kiapi::common::types::Units aValue)

Definition at line 1920 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_STATS::INCH, and JOB_EXPORT_PCB_STATS::MM.

◆ FromProtoEnum() [28/54]

template<>
JOB_EXPORT_PCB_ODB::ODB_COMPRESSION FromProtoEnum ( OdbCompression aValue)

◆ FromProtoEnum() [29/54]

template<>
DRILL_MARKS FromProtoEnum ( PlotDrillMarks aValue)

Definition at line 1124 of file api_pcb_enums.cpp.

References FULL_DRILL_SHAPE, NO_DRILL_SHAPE, and SMALL_DRILL_SHAPE.

◆ FromProtoEnum() [30/54]

template<>
JOB_EXPORT_PCB_POS::FORMAT FromProtoEnum ( PositionFormat aValue)

◆ FromProtoEnum() [31/54]

template<>
JOB_EXPORT_PCB_POS::SIDE FromProtoEnum ( PositionSide aValue)

◆ FromProtoEnum() [32/54]

template<>
JOB_PCB_RENDER::BG_STYLE FromProtoEnum ( RenderBackgroundStyle aValue)

◆ FromProtoEnum() [33/54]

template<>
JOB_PCB_RENDER::FORMAT FromProtoEnum ( RenderFormat aValue)

Definition at line 1229 of file api_pcb_enums.cpp.

References JOB_PCB_RENDER::JPEG, and JOB_PCB_RENDER::PNG.

◆ FromProtoEnum() [34/54]

template<>
JOB_PCB_RENDER::QUALITY FromProtoEnum ( RenderQuality aValue)

◆ FromProtoEnum() [35/54]

◆ FromProtoEnum() [36/54]

template<>
JOB_EXPORT_PCB_STATS::OUTPUT_FORMAT FromProtoEnum ( StatsOutputFormat aValue)

Definition at line 1772 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_STATS::JSON, and JOB_EXPORT_PCB_STATS::REPORT.

◆ FromProtoEnum() [37/54]

template<>
DIM_ARROW_DIRECTION FromProtoEnum ( types::DimensionArrowDirection aValue)

Definition at line 804 of file api_pcb_enums.cpp.

References INWARD, and OUTWARD.

◆ FromProtoEnum() [38/54]

template<>
DIM_PRECISION FromProtoEnum ( types::DimensionPrecision aValue)

Definition at line 843 of file api_pcb_enums.cpp.

References V_VV, V_VVV, V_VVVV, V_VVVVV, X, X_X, X_XX, X_XXX, X_XXXX, and X_XXXXX.

◆ FromProtoEnum() [39/54]

template<>
DIM_TEXT_BORDER FromProtoEnum ( types::DimensionTextBorderStyle aValue)

Definition at line 738 of file api_pcb_enums.cpp.

References CIRCLE, NONE, RECTANGLE, and ROUNDRECT.

◆ FromProtoEnum() [40/54]

template<>
DIM_TEXT_POSITION FromProtoEnum ( types::DimensionTextPosition aValue)

Definition at line 883 of file api_pcb_enums.cpp.

References INLINE, MANUAL, and OUTSIDE.

◆ FromProtoEnum() [41/54]

template<>
DIM_UNITS_MODE FromProtoEnum ( types::DimensionUnit aValue)

Definition at line 917 of file api_pcb_enums.cpp.

References AUTOMATIC, INCH, MILS, and MM.

◆ FromProtoEnum() [42/54]

template<>
DIM_UNITS_FORMAT FromProtoEnum ( types::DimensionUnitFormat aValue)

Definition at line 772 of file api_pcb_enums.cpp.

References BARE_SUFFIX, NO_SUFFIX, and PAREN_SUFFIX.

◆ FromProtoEnum() [43/54]

template<>
PAD_DRILL_SHAPE FromProtoEnum ( types::DrillShape aValue)

Definition at line 108 of file api_pcb_enums.cpp.

References CIRCLE, OBLONG, and UNDEFINED.

◆ FromProtoEnum() [44/54]

template<>
ISLAND_REMOVAL_MODE FromProtoEnum ( types::IslandRemovalMode aValue)

Definition at line 522 of file api_pcb_enums.cpp.

References ALWAYS, AREA, and NEVER.

◆ FromProtoEnum() [45/54]

template<>
PAD_SHAPE FromProtoEnum ( types::PadStackShape aValue)

Definition at line 143 of file api_pcb_enums.cpp.

References CHAMFERED_RECT, CIRCLE, CUSTOM, OVAL, RECTANGLE, ROUNDRECT, and TRAPEZOID.

◆ FromProtoEnum() [46/54]

template<>
PADSTACK::MODE FromProtoEnum ( types::PadStackType aValue)

Definition at line 180 of file api_pcb_enums.cpp.

References PADSTACK::CUSTOM, PADSTACK::FRONT_INNER_BACK, and PADSTACK::NORMAL.

◆ FromProtoEnum() [47/54]

template<>
PAD_ATTRIB FromProtoEnum ( types::PadType aValue)

Definition at line 77 of file api_pcb_enums.cpp.

References CONN, NPTH, PTH, and SMD.

◆ FromProtoEnum() [48/54]

template<>
PLACEMENT_SOURCE_T FromProtoEnum ( types::PlacementRuleSourceType aValue)

Definition at line 629 of file api_pcb_enums.cpp.

References COMPONENT_CLASS, DESIGN_BLOCK, GROUP_PLACEMENT, and SHEETNAME.

◆ FromProtoEnum() [49/54]

template<>
TEARDROP_TYPE FromProtoEnum ( types::TeardropType aValue)

Definition at line 671 of file api_pcb_enums.cpp.

References TD_NONE, TD_TRACKEND, TD_UNSPECIFIED, and TD_VIAPAD.

◆ FromProtoEnum() [50/54]

template<>
UNCONNECTED_LAYER_MODE FromProtoEnum ( types::UnconnectedLayerRemoval aValue)

Definition at line 481 of file api_pcb_enums.cpp.

References KEEP_ALL, REMOVE_ALL, REMOVE_EXCEPT_START_AND_END, and START_END_ONLY.

◆ FromProtoEnum() [51/54]

template<>
VIATYPE FromProtoEnum ( types::ViaType aValue)

Definition at line 214 of file api_pcb_enums.cpp.

References BLIND, BURIED, MICROVIA, and THROUGH.

◆ FromProtoEnum() [52/54]

template<>
ZONE_BORDER_DISPLAY_STYLE FromProtoEnum ( types::ZoneBorderStyle aValue)

Definition at line 587 of file api_pcb_enums.cpp.

References DIAGONAL_EDGE, DIAGONAL_FULL, INVISIBLE_BORDER, and NO_HATCH.

◆ FromProtoEnum() [53/54]

template<>
ZONE_CONNECTION FromProtoEnum ( types::ZoneConnectionStyle aValue)

Definition at line 251 of file api_pcb_enums.cpp.

References FULL, INHERITED, NONE, THERMAL, and THT_THERMAL.

◆ FromProtoEnum() [54/54]

template<>
ZONE_FILL_MODE FromProtoEnum ( types::ZoneFillMode aValue)

Definition at line 554 of file api_pcb_enums.cpp.

References HATCH_PATTERN, and POLYGONS.

◆ ToProtoEnum() [1/54]

◆ ToProtoEnum() [2/54]

template<>
types::DimensionArrowDirection ToProtoEnum ( DIM_ARROW_DIRECTION aValue)

Definition at line 789 of file api_pcb_enums.cpp.

References INWARD, and OUTWARD.

◆ ToProtoEnum() [3/54]

template<>
types::DimensionPrecision ToProtoEnum ( DIM_PRECISION aValue)

Definition at line 820 of file api_pcb_enums.cpp.

References V_VV, V_VVV, V_VVVV, V_VVVVV, X, X_X, X_XX, X_XXX, X_XXXX, and X_XXXXX.

◆ ToProtoEnum() [4/54]

template<>
types::DimensionTextBorderStyle ToProtoEnum ( DIM_TEXT_BORDER aValue)

Definition at line 721 of file api_pcb_enums.cpp.

References CIRCLE, NONE, RECTANGLE, and ROUNDRECT.

◆ ToProtoEnum() [5/54]

template<>
types::DimensionTextPosition ToProtoEnum ( DIM_TEXT_POSITION aValue)

Definition at line 867 of file api_pcb_enums.cpp.

References INLINE, MANUAL, and OUTSIDE.

◆ ToProtoEnum() [6/54]

template<>
types::DimensionUnitFormat ToProtoEnum ( DIM_UNITS_FORMAT aValue)

Definition at line 756 of file api_pcb_enums.cpp.

References BARE_SUFFIX, NO_SUFFIX, and PAREN_SUFFIX.

◆ ToProtoEnum() [7/54]

template<>
types::DimensionUnit ToProtoEnum ( DIM_UNITS_MODE aValue)

Definition at line 900 of file api_pcb_enums.cpp.

References AUTOMATIC, INCH, MILS, and MM.

◆ ToProtoEnum() [8/54]

template<>
CustomRuleConstraintOption ToProtoEnum ( DRC_CONSTRAINT::OPTIONS aValue)

◆ ToProtoEnum() [9/54]

◆ ToProtoEnum() [10/54]

◆ ToProtoEnum() [11/54]

template<>
PlotDrillMarks ToProtoEnum ( DRILL_MARKS aValue)

Definition at line 1109 of file api_pcb_enums.cpp.

References FULL_DRILL_SHAPE, NO_DRILL_SHAPE, and SMALL_DRILL_SHAPE.

◆ ToProtoEnum() [12/54]

template<>
commands::InactiveLayerDisplayMode ToProtoEnum ( HIGH_CONTRAST_MODE aValue)

Definition at line 935 of file api_pcb_enums.cpp.

References DIMMED, HIDDEN, and NORMAL.

◆ ToProtoEnum() [13/54]

template<>
types::IslandRemovalMode ToProtoEnum ( ISLAND_REMOVAL_MODE aValue)

Definition at line 506 of file api_pcb_enums.cpp.

References ALWAYS, AREA, and NEVER.

◆ ToProtoEnum() [14/54]

◆ ToProtoEnum() [15/54]

template<>
kiapi::common::types::Units ToProtoEnum ( JOB_EXPORT_PCB_3D::VRML_UNITS aValue)

◆ ToProtoEnum() [16/54]

template<>
DrillFormat ToProtoEnum ( JOB_EXPORT_PCB_DRILL::DRILL_FORMAT aValue)

◆ ToProtoEnum() [17/54]

template<>
DrillOrigin ToProtoEnum ( JOB_EXPORT_PCB_DRILL::DRILL_ORIGIN aValue)

Definition at line 1498 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_DRILL::ABS, and JOB_EXPORT_PCB_DRILL::PLOT.

◆ ToProtoEnum() [18/54]

template<>
kiapi::common::types::Units ToProtoEnum ( JOB_EXPORT_PCB_DRILL::DRILL_UNITS aValue)

Definition at line 1610 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_DRILL::INCH, and JOB_EXPORT_PCB_DRILL::MM.

◆ ToProtoEnum() [19/54]

◆ ToProtoEnum() [20/54]

◆ ToProtoEnum() [21/54]

template<>
kiapi::common::types::Units ToProtoEnum ( JOB_EXPORT_PCB_DXF::DXF_UNITS aValue)

Definition at line 1786 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_DXF::INCH, and JOB_EXPORT_PCB_DXF::MM.

◆ ToProtoEnum() [22/54]

template<>
BoardJobPaginationMode ToProtoEnum ( JOB_EXPORT_PCB_DXF::GEN_MODE aValue)

Definition at line 1372 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_DXF::MULTI, and JOB_EXPORT_PCB_DXF::SINGLE.

◆ ToProtoEnum() [23/54]

template<>
kiapi::common::types::Units ToProtoEnum ( JOB_EXPORT_PCB_IPC2581::IPC2581_UNITS aValue)

Definition at line 1846 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_IPC2581::INCH, and JOB_EXPORT_PCB_IPC2581::MM.

◆ ToProtoEnum() [24/54]

template<>
Ipc2581Version ToProtoEnum ( JOB_EXPORT_PCB_IPC2581::IPC2581_VERSION aValue)

Definition at line 1700 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_IPC2581::B, and JOB_EXPORT_PCB_IPC2581::C.

◆ ToProtoEnum() [25/54]

template<>
OdbCompression ToProtoEnum ( JOB_EXPORT_PCB_ODB::ODB_COMPRESSION aValue)

◆ ToProtoEnum() [26/54]

template<>
kiapi::common::types::Units ToProtoEnum ( JOB_EXPORT_PCB_ODB::ODB_UNITS aValue)

Definition at line 1876 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_ODB::INCH, and JOB_EXPORT_PCB_ODB::MM.

◆ ToProtoEnum() [27/54]

◆ ToProtoEnum() [28/54]

template<>
PositionFormat ToProtoEnum ( JOB_EXPORT_PCB_POS::FORMAT aValue)

◆ ToProtoEnum() [29/54]

template<>
PositionSide ToProtoEnum ( JOB_EXPORT_PCB_POS::SIDE aValue)

◆ ToProtoEnum() [30/54]

template<>
kiapi::common::types::Units ToProtoEnum ( JOB_EXPORT_PCB_POS::UNITS aValue)

Definition at line 1816 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_POS::INCH, and JOB_EXPORT_PCB_POS::MM.

◆ ToProtoEnum() [31/54]

template<>
BoardJobPaginationMode ToProtoEnum ( JOB_EXPORT_PCB_PS::GEN_MODE aValue)

Definition at line 1439 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_PS::MULTI, and JOB_EXPORT_PCB_PS::SINGLE.

◆ ToProtoEnum() [32/54]

template<>
StatsOutputFormat ToProtoEnum ( JOB_EXPORT_PCB_STATS::OUTPUT_FORMAT aValue)

Definition at line 1758 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_STATS::JSON, and JOB_EXPORT_PCB_STATS::REPORT.

◆ ToProtoEnum() [33/54]

template<>
kiapi::common::types::Units ToProtoEnum ( JOB_EXPORT_PCB_STATS::UNITS aValue)

Definition at line 1906 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_STATS::INCH, and JOB_EXPORT_PCB_STATS::MM.

◆ ToProtoEnum() [34/54]

template<>
BoardJobPaginationMode ToProtoEnum ( JOB_EXPORT_PCB_SVG::GEN_MODE aValue)

Definition at line 1341 of file api_pcb_enums.cpp.

References JOB_EXPORT_PCB_SVG::MULTI, and JOB_EXPORT_PCB_SVG::SINGLE.

◆ ToProtoEnum() [35/54]

template<>
RenderBackgroundStyle ToProtoEnum ( JOB_PCB_RENDER::BG_STYLE aValue)

◆ ToProtoEnum() [36/54]

template<>
RenderFormat ToProtoEnum ( JOB_PCB_RENDER::FORMAT aValue)

Definition at line 1215 of file api_pcb_enums.cpp.

References JOB_PCB_RENDER::JPEG, and JOB_PCB_RENDER::PNG.

◆ ToProtoEnum() [37/54]

template<>
RenderQuality ToProtoEnum ( JOB_PCB_RENDER::QUALITY aValue)

◆ ToProtoEnum() [38/54]

◆ ToProtoEnum() [39/54]

template<>
commands::NetColorDisplayMode ToProtoEnum ( NET_COLOR_MODE aValue)

Definition at line 968 of file api_pcb_enums.cpp.

References ALL, OFF, and RATSNEST.

◆ ToProtoEnum() [40/54]

template<>
types::PadType ToProtoEnum ( PAD_ATTRIB aValue)

Definition at line 60 of file api_pcb_enums.cpp.

References CONN, NPTH, PTH, and SMD.

◆ ToProtoEnum() [41/54]

template<>
types::DrillShape ToProtoEnum ( PAD_DRILL_SHAPE aValue)

Definition at line 94 of file api_pcb_enums.cpp.

References CIRCLE, OBLONG, and UNDEFINED.

◆ ToProtoEnum() [42/54]

template<>
types::PadStackShape ToProtoEnum ( PAD_SHAPE aValue)

Definition at line 123 of file api_pcb_enums.cpp.

References CHAMFERED_RECT, CIRCLE, CUSTOM, OVAL, RECTANGLE, ROUNDRECT, and TRAPEZOID.

◆ ToProtoEnum() [43/54]

template<>
types::PadStackType ToProtoEnum ( PADSTACK::MODE aValue)

Definition at line 164 of file api_pcb_enums.cpp.

References PADSTACK::CUSTOM, PADSTACK::FRONT_INNER_BACK, and PADSTACK::NORMAL.

◆ ToProtoEnum() [44/54]

template<>
DrcErrorType ToProtoEnum ( PCB_DRC_CODE aValue)

Definition at line 1936 of file api_pcb_enums.cpp.

References DRCE_ALLOWED_ITEMS, DRCE_ANNULAR_WIDTH, DRCE_ASSERTION_FAILURE, DRCE_CLEARANCE, DRCE_CONNECTION_WIDTH, DRCE_COPPER_SLIVER, DRCE_CREEPAGE, DRCE_DANGLING_TRACK, DRCE_DANGLING_VIA, DRCE_DIFF_PAIR_GAP_OUT_OF_RANGE, DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG, DRCE_DISABLED_LAYER_ITEM, DRCE_DRILL_OUT_OF_RANGE, DRCE_DRILLED_HOLES_COLOCATED, DRCE_DRILLED_HOLES_TOO_CLOSE, DRCE_DUPLICATE_FOOTPRINT, DRCE_EDGE_CLEARANCE, DRCE_EXTRA_FOOTPRINT, DRCE_FOOTPRINT, DRCE_FOOTPRINT_FILTERS, DRCE_FOOTPRINT_TYPE_MISMATCH, DRCE_GENERIC_ERROR, DRCE_GENERIC_WARNING, DRCE_HOLE_CLEARANCE, DRCE_INVALID_OUTLINE, DRCE_ISOLATED_COPPER, DRCE_LENGTH_OUT_OF_RANGE, DRCE_LIB_FOOTPRINT_ISSUES, DRCE_LIB_FOOTPRINT_MISMATCH, DRCE_MALFORMED_COURTYARD, DRCE_MICROVIA_DRILL_OUT_OF_RANGE, DRCE_MIRRORED_TEXT_ON_FRONT_LAYER, DRCE_MISSING_COURTYARD, DRCE_MISSING_FOOTPRINT, DRCE_MISSING_TUNING_PROFILE, DRCE_NET_CONFLICT, DRCE_NONMIRRORED_TEXT_ON_BACK_LAYER, DRCE_NPTH_IN_COURTYARD, DRCE_OVERLAPPING_FOOTPRINTS, DRCE_PAD_TH_WITH_NO_HOLE, DRCE_PADSTACK, DRCE_PADSTACK_INVALID, DRCE_PTH_IN_COURTYARD, DRCE_SCHEMATIC_FIELDS_PARITY, DRCE_SCHEMATIC_PARITY, DRCE_SHORTING_ITEMS, DRCE_SILK_CLEARANCE, DRCE_SILK_EDGE_CLEARANCE, DRCE_SILK_MASK_CLEARANCE, DRCE_SKEW_OUT_OF_RANGE, DRCE_SOLDERMASK_BRIDGE, DRCE_STARVED_THERMAL, DRCE_TEXT_HEIGHT, DRCE_TEXT_ON_EDGECUTS, DRCE_TEXT_THICKNESS, DRCE_TRACK_ANGLE, DRCE_TRACK_NOT_CENTERED_ON_VIA, DRCE_TRACK_ON_POST_MACHINED_LAYER, DRCE_TRACK_SEGMENT_LENGTH, DRCE_TRACK_WIDTH, DRCE_TRACKS_CROSSING, DRCE_TUNING_PROFILE_IMPLICIT_RULES, DRCE_UNCONNECTED_ITEMS, DRCE_UNRESOLVED_VARIABLE, DRCE_VIA_COUNT_OUT_OF_RANGE, DRCE_VIA_DIAMETER, and DRCE_ZONES_INTERSECT.

◆ ToProtoEnum() [45/54]

template<>
types::PlacementRuleSourceType ToProtoEnum ( PLACEMENT_SOURCE_T aValue)

Definition at line 605 of file api_pcb_enums.cpp.

References COMPONENT_CLASS, DESIGN_BLOCK, GROUP_PLACEMENT, and SHEETNAME.

◆ ToProtoEnum() [46/54]

template<>
commands::RatsnestDisplayMode ToProtoEnum ( RATSNEST_MODE aValue)

Definition at line 1001 of file api_pcb_enums.cpp.

References ALL, and VISIBLE.

◆ ToProtoEnum() [47/54]

◆ ToProtoEnum() [48/54]

template<>
kiapi::board::TeardropTarget ToProtoEnum ( TARGET_TD aValue)

Definition at line 689 of file api_pcb_enums.cpp.

References TARGET_RECT, TARGET_ROUND, and TARGET_TRACK.

◆ ToProtoEnum() [49/54]

template<>
types::TeardropType ToProtoEnum ( TEARDROP_TYPE aValue)

Definition at line 654 of file api_pcb_enums.cpp.

References TD_NONE, TD_TRACKEND, TD_UNSPECIFIED, and TD_VIAPAD.

◆ ToProtoEnum() [50/54]

template<>
types::UnconnectedLayerRemoval ToProtoEnum ( UNCONNECTED_LAYER_MODE aValue)

Definition at line 457 of file api_pcb_enums.cpp.

References KEEP_ALL, REMOVE_ALL, REMOVE_EXCEPT_START_AND_END, and START_END_ONLY.

◆ ToProtoEnum() [51/54]

template<>
types::ViaType ToProtoEnum ( VIATYPE aValue)

Definition at line 197 of file api_pcb_enums.cpp.

References BLIND, BURIED, MICROVIA, and THROUGH.

◆ ToProtoEnum() [52/54]

template<>
types::ZoneBorderStyle ToProtoEnum ( ZONE_BORDER_DISPLAY_STYLE aValue)

Definition at line 570 of file api_pcb_enums.cpp.

References DIAGONAL_EDGE, DIAGONAL_FULL, INVISIBLE_BORDER, and NO_HATCH.

◆ ToProtoEnum() [53/54]

template<>
types::ZoneConnectionStyle ToProtoEnum ( ZONE_CONNECTION aValue)

Definition at line 233 of file api_pcb_enums.cpp.

References FULL, INHERITED, NONE, THERMAL, and THT_THERMAL.

◆ ToProtoEnum() [54/54]

template<>
types::ZoneFillMode ToProtoEnum ( ZONE_FILL_MODE aValue)

Definition at line 539 of file api_pcb_enums.cpp.

References HATCH_PATTERN, and POLYGONS.