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::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/6]

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

Definition at line 86 of file api_pcb_enums.cpp.

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

◆ FromProtoEnum() [2/6]

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

Definition at line 122 of file api_pcb_enums.cpp.

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

◆ FromProtoEnum() [3/6]

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

Definition at line 50 of file api_pcb_enums.cpp.

References CONN, NPTH, PTH, and SMD.

◆ FromProtoEnum() [4/6]

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

◆ FromProtoEnum() [5/6]

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

Definition at line 154 of file api_pcb_enums.cpp.

References BLIND_BURIED, MICROVIA, and THROUGH.

◆ FromProtoEnum() [6/6]

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

Definition at line 188 of file api_pcb_enums.cpp.

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

◆ ToProtoEnum() [1/6]

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/6]

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

Definition at line 66 of file api_pcb_enums.cpp.

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

◆ ToProtoEnum() [3/6]

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

Definition at line 106 of file api_pcb_enums.cpp.

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

◆ ToProtoEnum() [4/6]

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

◆ ToProtoEnum() [5/6]

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

Definition at line 138 of file api_pcb_enums.cpp.

References BLIND_BURIED, MICROVIA, and THROUGH.

◆ ToProtoEnum() [6/6]

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

Definition at line 170 of file api_pcb_enums.cpp.

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