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_types.pb.h>
#include <wx/wx.h>
#include <padstack.h>
#include <pcb_track.h>
#include <zones.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)
 

Function Documentation

◆ FromProtoEnum() [1/7]

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

Definition at line 80 of file api_pcb_enums.cpp.

References CIRCLE, OBLONG, and UNDEFINED.

◆ FromProtoEnum() [2/7]

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

Definition at line 114 of file api_pcb_enums.cpp.

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

◆ FromProtoEnum() [3/7]

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

Definition at line 150 of file api_pcb_enums.cpp.

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

◆ FromProtoEnum() [4/7]

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

Definition at line 50 of file api_pcb_enums.cpp.

References CONN, NPTH, PTH, and SMD.

◆ FromProtoEnum() [5/7]

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

◆ FromProtoEnum() [6/7]

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

Definition at line 182 of file api_pcb_enums.cpp.

References BLIND_BURIED, MICROVIA, and THROUGH.

◆ FromProtoEnum() [7/7]

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

Definition at line 216 of file api_pcb_enums.cpp.

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

◆ ToProtoEnum() [1/7]

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

Definition at line 33 of file api_pcb_enums.cpp.

References CONN, NPTH, PTH, and SMD.

◆ ToProtoEnum() [2/7]

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

Definition at line 66 of file api_pcb_enums.cpp.

References CIRCLE, OBLONG, and UNDEFINED.

◆ ToProtoEnum() [3/7]

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

Definition at line 94 of file api_pcb_enums.cpp.

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

◆ ToProtoEnum() [4/7]

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

Definition at line 134 of file api_pcb_enums.cpp.

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

◆ ToProtoEnum() [5/7]

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

◆ ToProtoEnum() [6/7]

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

Definition at line 166 of file api_pcb_enums.cpp.

References BLIND_BURIED, MICROVIA, and THROUGH.

◆ ToProtoEnum() [7/7]

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

Definition at line 198 of file api_pcb_enums.cpp.

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