23#include <api/board/board_types.pb.h>
43 wxCHECK_MSG(
false, types::PadType::PT_UNKNOWN,
44 "Unhandled case in ToProtoEnum<PAD_ATTRIB>");
61 "Unhandled case in FromProtoEnum<types::PadType>" );
74 wxCHECK_MSG(
false, types::DrillShape::DS_UNKNOWN,
75 "Unhandled case in ToProtoEnum<PAD_DRILL_SHAPE>");
89 "Unhandled case in FromProtoEnum<types::DrillShape>" );
107 wxCHECK_MSG(
false, types::PadStackShape::PSS_UNKNOWN,
108 "Unhandled case in ToProtoEnum<PAD_SHAPE>");
128 "Unhandled case in FromProtoEnum<types::PadStackShape>" );
143 wxCHECK_MSG(
false, types::PadStackType::PST_UNKNOWN,
144 "Unhandled case in ToProtoEnum<PADSTACK::MODE>");
160 "Unhandled case in FromProtoEnum<types::PadStackType>" );
175 wxCHECK_MSG(
false, types::ViaType::VT_UNKNOWN,
176 "Unhandled case in ToProtoEnum<VIATYPE>");
192 "Unhandled case in FromProtoEnum<types::ViaType>" );
209 wxCHECK_MSG(
false, types::ZoneConnectionStyle::ZCS_UNKNOWN,
210 "Unhandled case in ToProtoEnum<ZONE_CONNECTION>");
229 "Unhandled case in FromProtoEnum<types::ZoneConnectionStyle>" );
240 return types::UnconnectedLayerRemoval::ULR_KEEP;
243 return types::UnconnectedLayerRemoval::ULR_REMOVE;
246 return types::UnconnectedLayerRemoval::ULR_REMOVE_EXCEPT_START_AND_END;
249 wxCHECK_MSG(
false, types::UnconnectedLayerRemoval::ULR_UNKNOWN,
250 "Unhandled case in ToProtoEnum<PADSTACK::UNCONNECTED_LAYER_MODE>");
260 case types::UnconnectedLayerRemoval::ULR_KEEP:
263 case types::UnconnectedLayerRemoval::ULR_REMOVE:
266 case types::UnconnectedLayerRemoval::ULR_REMOVE_EXCEPT_START_AND_END:
271 "Unhandled case in FromProtoEnum<types::UnconnectedLayerRemoval>");
types::PadType ToProtoEnum(PAD_ATTRIB aValue)
PAD_ATTRIB FromProtoEnum(types::PadType aValue)
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)
UNCONNECTED_LAYER_MODE
! Whether or not to remove the copper shape for unconnected layers
@ REMOVE_EXCEPT_START_AND_END
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
@ 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()
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