KiCad PCB EDA Suite
Loading...
Searching...
No Matches
router_tool.h File Reference

Go to the source code of this file.

Classes

struct  PENDING_STACK_EXPANSION
 
class  ROUTER_TOOL
 

Functions

const VIA_STACK_PRESETMatchPendingStackExpansion (PCB_VIA *aVia, const std::set< KIID > &aPreRoute, const std::vector< PENDING_STACK_EXPANSION > &aPending)
 Preset a route's stacked drop wants for aVia, or nullptr when the via is not one of them.
 
PCB_LAYER_ID ViaStackTargetLayer (PCB_LAYER_ID aStart, PCB_LAYER_ID aEnd, PCB_LAYER_ID aCurrent)
 Layer a microvia stack drop lands on when invoked on aCurrent.
 

Function Documentation

◆ MatchPendingStackExpansion()

const VIA_STACK_PRESET * MatchPendingStackExpansion ( PCB_VIA * aVia,
const std::set< KIID > & aPreRoute,
const std::vector< PENDING_STACK_EXPANSION > & aPending )

Preset a route's stacked drop wants for aVia, or nullptr when the via is not one of them.

Vias in aPreRoute already existed, so the route did not create them.

Definition at line 108 of file router_tool.cpp.

References PCB_VIA::BottomLayer(), BOARD_CONNECTED_ITEM::GetNetCode(), EDA_ITEM::m_Uuid, and PCB_VIA::TopLayer().

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and ROUTER_TOOL::finishInteractive().

◆ ViaStackTargetLayer()

PCB_LAYER_ID ViaStackTargetLayer ( PCB_LAYER_ID aStart,
PCB_LAYER_ID aEnd,
PCB_LAYER_ID aCurrent )

Layer a microvia stack drop lands on when invoked on aCurrent.

A preset places only from its own terminals: the start layer runs the span, the end layer runs it back. UNDEFINED_LAYER anywhere else.

Definition at line 130 of file router_tool.cpp.

References UNDEFINED_LAYER.

Referenced by BOOST_AUTO_TEST_CASE(), and ROUTER_TOOL::onViaStackCommand().