KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_via_stack.cpp File Reference
#include <algorithm>
#include <cmath>
#include <map>
#include <set>
#include <tuple>
#include <vector>
#include <geometry/geometry_utils.h>
#include <math/util.h>
#include <board.h>
#include <board_commit.h>
#include <board_design_settings.h>
#include <footprint.h>
#include <layer_range.h>
#include <netinfo.h>
#include <netclass.h>
#include <pad.h>
#include <zone.h>
#include <lset.h>
#include <padstack.h>
#include <pcb_base_edit_frame.h>
#include <pcb_track.h>
#include <pcbnew_settings.h>
#include <scoped_set_reset.h>
#include <wx/choicdlg.h>
#include <tool/actions.h>
#include <tool/tool_manager.h>
#include <view/view.h>
#include <gal/graphics_abstraction_layer.h>
#include <trigo.h>
#include <view/view_controls.h>
#include <properties/property.h>
#include <properties/property_mgr.h>
#include <dialogs/dialog_microvia_stack.h>
#include <generators/pcb_via_stack.h>
#include <generators_mgr.h>
#include <drc/drc_engine.h>
#include <router/router_tool.h>
#include <router/pns_router.h>
#include <router/pns_routing_settings.h>
#include <widgets/wx_infobar.h>
#include <tools/drawing_tool.h>
#include <tools/generator_tool.h>
#include <tools/pcb_actions.h>
#include <tools/pcb_grid_helper.h>
#include <tools/pcb_selection.h>

Go to the source code of this file.

Classes

struct  PCB_VIA_STACK_DESC
 

Typedefs

using SCOPED_DRAW_MODE = SCOPED_SET_RESET<DRAWING_TOOL::MODE>
 

Functions

static wxString styleToString (VIA_STACK_STYLE aStyle)
 
static VIA_STACK_STYLE styleFromString (const wxString &aStr)
 
static PCB_LAYER_ID layerFromName (const wxString &aName, PCB_LAYER_ID aFallback)
 
static std::optional< std::tuple< int, int, int > > memberKey (BOARD_ITEM *aItem)
 
static void layerOrder (BOARD *aBoard, std::vector< PCB_LAYER_ID > &aOrder, std::map< int, int > &aOrdinals)
 
static bool isExpandableMicrovia (const std::map< int, int > &aOrdinals, PCB_VIA *aVia)
 

Variables

static GENERATORS_MGR::REGISTER< PCB_VIA_STACKregisterMe
 
static struct PCB_VIA_STACK_DESC _PCB_VIA_STACK_DESC
 

Typedef Documentation

◆ SCOPED_DRAW_MODE

Function Documentation

◆ isExpandableMicrovia()

static bool isExpandableMicrovia ( const std::map< int, int > & aOrdinals,
PCB_VIA * aVia )
static

◆ layerFromName()

static PCB_LAYER_ID layerFromName ( const wxString & aName,
PCB_LAYER_ID aFallback )
static

◆ layerOrder()

static void layerOrder ( BOARD * aBoard,
std::vector< PCB_LAYER_ID > & aOrder,
std::map< int, int > & aOrdinals )
static

◆ memberKey()

static std::optional< std::tuple< int, int, int > > memberKey ( BOARD_ITEM * aItem)
static

◆ styleFromString()

static VIA_STACK_STYLE styleFromString ( const wxString & aStr)
static

Definition at line 81 of file pcb_via_stack.cpp.

References STACKED, and STAGGERED.

Referenced by PCB_VIA_STACK::SetProperties().

◆ styleToString()

static wxString styleToString ( VIA_STACK_STYLE aStyle)
static

Definition at line 75 of file pcb_via_stack.cpp.

References STAGGERED.

Referenced by PCB_VIA_STACK::GetProperties().

Variable Documentation

◆ _PCB_VIA_STACK_DESC

struct PCB_VIA_STACK_DESC _PCB_VIA_STACK_DESC
static

◆ registerMe

Definition at line 1416 of file pcb_via_stack.cpp.