Expose PCB_TRACK vector as a SWIG proxy object

Allows to use Connectivity `GetConnectedTracks()` in Python.

This is in line with `GetConnectedPads()`, and with pcbnew v5.1 where
GetConnectedTracks was also usable from Python.

Fixes https://gitlab.com/kicad/code/kicad/issues/9435
This commit is contained in:
Floris Lambrechts 2021-10-21 13:00:19 +02:00 committed by Ian McInerney
parent 0bdb424215
commit 06b9d774c0
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class wxPoint;
class LINE_READER;
class EDA_DRAW_FRAME;
class PAD;
class PCB_TRACK;
class BOARD;
class BOARD_ITEM;
class MSG_PANEL_ITEM;
@ -57,6 +58,7 @@ class PCB_BASE_FRAME;
#define LOCAL_RATSNEST_ITEM 0x8000 /* Line between two pads of a single footprint. */
DECL_VEC_FOR_SWIG( PADS_VEC, PAD* )
DECL_VEC_FOR_SWIG( TRACKS_VEC, PCB_TRACK* )
/**
* Handle the data for a net.