KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PCB_NET_INSPECTOR_PANEL Class Reference

Net inspection panel for pcbnew. More...

#include <pcb_net_inspector_panel.h>

Inheritance diagram for PCB_NET_INSPECTOR_PANEL:
NET_INSPECTOR_PANEL BOARD_LISTENER

Classes

struct  COLUMN_DESC
 Column metadata. More...
 
class  DATA_MODEL
 Data model for display in the Net Inspector panel. More...
 
class  LIST_ITEM
 Primary data item for entries in the Net Inspector list. More...
 
struct  LIST_ITEM_GROUP_NUMBER_CMP_LESS
 
struct  LIST_ITEM_NETCODE_CMP_LESS
 

Public Member Functions

 PCB_NET_INSPECTOR_PANEL (wxWindow *parent, PCB_EDIT_FRAME *aFrame)
 
virtual ~PCB_NET_INSPECTOR_PANEL ()
 
virtual void OnParentSetupChanged () override
 Updates the netlist based on global board changes (e.g.
 
virtual void OnBoardItemAdded (BOARD &aBoard, BOARD_ITEM *aBoardItem) override
 
virtual void OnBoardItemsAdded (BOARD &aBoard, std::vector< BOARD_ITEM * > &aBoardItems) override
 
virtual void OnBoardItemRemoved (BOARD &aBoard, BOARD_ITEM *aBoardItem) override
 
virtual void OnBoardItemsRemoved (BOARD &aBoard, std::vector< BOARD_ITEM * > &aBoardItems) override
 
virtual void OnBoardNetSettingsChanged (BOARD &aBoard) override
 
virtual void OnBoardItemChanged (BOARD &aBoard, BOARD_ITEM *aBoardItem) override
 
virtual void OnBoardItemsChanged (BOARD &aBoard, std::vector< BOARD_ITEM * > &aBoardItems) override
 
virtual void OnBoardHighlightNetChanged (BOARD &aBoard) override
 
virtual void OnBoardCompositeUpdate (BOARD &aBoard, std::vector< BOARD_ITEM * > &aAddedItems, std::vector< BOARD_ITEM * > &aRemovedItems, std::vector< BOARD_ITEM * > &aDeletedItems) override
 
virtual void OnBoardChanged () override
 Update panel when board is changed.
 
virtual void OnShowPanel () override
 Prepare the panel when shown in the editor.
 
virtual void SaveSettings () override
 Persist the net inspector configuration to project / global settings.
 
virtual void OnBoardRatsnestChanged (BOARD &aBoard)
 

Protected Member Functions

virtual void OnLanguageChangedImpl () override
 Reloads strings on an application language change.
 
virtual void OnSearchTextChanged (wxCommandEvent &event) override
 
virtual void OnConfigButton (wxCommandEvent &event) override
 
void OnExpandCollapseRow (wxCommandEvent &event)
 
void OnHeaderContextMenu (wxCommandEvent &event)
 
void OnNetsListContextMenu (wxDataViewEvent &event)
 
void OnNetsListItemActivated (wxDataViewEvent &event)
 
void OnColumnSorted (wxDataViewEvent &event)
 
virtual void OnSetFocus (wxFocusEvent &event)
 
virtual void OnSize (wxSizeEvent &event)
 
virtual void OnLanguageChanged (wxCommandEvent &event)
 

Protected Attributes

wxGridBagSizer * m_sizerOuter
 
wxSearchCtrl * m_searchCtrl
 
BITMAP_BUTTONm_configureBtn
 
wxDataViewCtrl * m_netsList
 

Private Types

enum class  CSV_COLUMN_DESC : int { CSV_NONE = 0 , CSV_QUOTE = 1 << 0 }
 CSV output control. More...
 
enum  {
  COLUMN_NAME = 0 , COLUMN_NETCLASS , COLUMN_TOTAL_LENGTH , COLUMN_VIA_COUNT ,
  COLUMN_VIA_LENGTH , COLUMN_BOARD_LENGTH , COLUMN_PAD_DIE_LENGTH , COLUMN_PAD_COUNT ,
  COLUMN_LAST_STATIC_COL = COLUMN_PAD_COUNT
}
 
enum  POPUP_MENU_OPTIONS {
  ID_ADD_NET = ID_POPUP_MENU_START , ID_RENAME_NET , ID_DELETE_NET , ID_ADD_GROUP ,
  ID_GROUP_BY_CONSTRAINT , ID_GROUP_BY_NETCLASS , ID_FILTER_BY_NET_NAME , ID_FILTER_BY_NETCLASS ,
  ID_REMOVE_SELECTED_GROUP , ID_REMOVE_GROUPS , ID_SHOW_ZERO_NET_PADS , ID_SHOW_UNCONNECTED_NETS ,
  ID_GENERATE_REPORT , ID_HIGHLIGHT_SELECTED_NETS , ID_CLEAR_HIGHLIGHTING , ID_LAST_STATIC_MENU = ID_CLEAR_HIGHLIGHTING ,
  ID_HIDE_COLUMN
}
 
using LIST_ITEM_ITER = std::vector< std::unique_ptr< LIST_ITEM > >::iterator
 
using LIST_ITEM_CONST_ITER = std::vector< std::unique_ptr< LIST_ITEM > >::const_iterator
 

Private Member Functions

wxString formatNetCode (const NETINFO_ITEM *aNet) const
 
wxString formatNetName (const NETINFO_ITEM *aNet) const
 
wxString formatCount (unsigned int aValue) const
 
wxString formatLength (int64_t aValue) const
 
void generateShowHideColumnMenu (wxMenu *target)
 Generates a sub-menu for the show / hide columns submenu.
 
std::vector< CN_ITEM * > relevantConnectivityItems () const
 Filters connectivity items from a board update to remove those not related to net / track metrics.
 
bool netFilterMatches (NETINFO_ITEM *aNet, PANEL_NET_INSPECTOR_SETTINGS *cfg=nullptr) const
 Filter to determine whether a board net should be included in the net inspector.
 
void updateNet (NETINFO_ITEM *aNet)
 Updates the stored LIST_ITEMs for a given updated board net item.
 
unsigned int calculateViaLength (const PCB_TRACK *) const
 Calculates the length of a via from the board stackup.
 
void buildNetsList (bool rebuildColumns=false)
 
void buildColumns ()
 
void setColumnWidths ()
 
void adjustListColumnSizes (PANEL_NET_INSPECTOR_SETTINGS *cfg)
 Adjust the sizing of list columns.
 
bool restoreSortColumn (int sortingColumnId, bool sortOrderAsc)
 Sets the sort column in the grid to that showing the given model ID column.
 
wxDataViewColumn * getDisplayedColumnForModelField (int columnId)
 Fetches the displayed grid view column for the given model column ID.
 
void generateReport ()
 Generates a CSV report from currently disaplyed data.
 
void highlightSelectedNets ()
 Highlight the currently selected net.
 
void onUnitsChanged (wxCommandEvent &event)
 
void onSettingsMenu (wxCommandEvent &event)
 
void onItemContextMenu (wxCommandEvent &event)
 
void onAddNet ()
 
void onRenameSelectedNet ()
 
void onDeleteSelectedNet ()
 
void onRemoveSelectedGroup ()
 
void onAddGroup ()
 
void onClearHighlighting ()
 
std::unique_ptr< LIST_ITEMbuildNewItem (NETINFO_ITEM *aNet, unsigned int aPadCount, const std::vector< CN_ITEM * > &aCNItems)
 Constructs a LIST_ITEM for storage in the data model from a board net item.
 
void updateDisplayedRowValues (const std::optional< LIST_ITEM_ITER > &aRow)
 

Private Attributes

NETINFO_ITEMm_zero_netitem
 
BOARDm_brd = nullptr
 
PCB_EDIT_FRAMEm_frame = nullptr
 
wxObjectDataPtr< DATA_MODELm_data_model
 
friend DATA_MODEL
 
bool m_in_reporting = false
 
bool m_in_build_nets_list = false
 
bool m_board_loaded = false
 
bool m_board_loading = false
 
bool m_row_expanding = false
 
bool m_highlighting_nets = false
 
bool m_filter_by_net_name = true
 
bool m_filter_by_netclass = true
 
bool m_show_zero_pad_nets = false
 
bool m_show_unconnected_nets = false
 
bool m_group_by_netclass = false
 
bool m_group_by_constraint = false
 
int m_num_copper_layers = 0
 
std::vector< std::unique_ptr< EDA_COMBINED_MATCHER > > m_custom_group_rules
 
std::vector< COLUMN_DESCm_columns
 All displayed (or hidden) columns.
 

Detailed Description

Net inspection panel for pcbnew.

Provides a read-only view of net information, such as routed lengths. Data is updated after every change of board items. Note that there is not always a 1:1 relationship between Nets and displayed items in the inspector.. This can be the case where there is a constraint which selects sub-sections of nets, for example consider a netclass used for a fly-by-routing adddress bus. There could be two constraints, e.g.:

FROM/TO=IC1-IC2, Netclass=DDR_ADDR, Net=ADDR_0 FROM/TO=IC2-IC3, Netclass=DDR_ADDR, Net=ADDR_0

In this instance, a single address net within the DDR_ADDR netclass could have three entries in the inspector, each tracking a different set of net statistics:

  1. The whole net
  2. IC1-IC2
  3. IC2-IC3

In this instance, all sub-nets as a result of a constraint will be grouped by the constraint.

Definition at line 60 of file pcb_net_inspector_panel.h.

Member Typedef Documentation

◆ LIST_ITEM_CONST_ITER

using PCB_NET_INSPECTOR_PANEL::LIST_ITEM_CONST_ITER = std::vector<std::unique_ptr<LIST_ITEM> >::const_iterator
private

Definition at line 220 of file pcb_net_inspector_panel.h.

◆ LIST_ITEM_ITER

using PCB_NET_INSPECTOR_PANEL::LIST_ITEM_ITER = std::vector<std::unique_ptr<LIST_ITEM> >::iterator
private

Definition at line 219 of file pcb_net_inspector_panel.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
COLUMN_NAME 
COLUMN_NETCLASS 
COLUMN_TOTAL_LENGTH 
COLUMN_VIA_COUNT 
COLUMN_VIA_LENGTH 
COLUMN_BOARD_LENGTH 
COLUMN_PAD_DIE_LENGTH 
COLUMN_PAD_COUNT 
COLUMN_LAST_STATIC_COL 

Definition at line 330 of file pcb_net_inspector_panel.h.

◆ CSV_COLUMN_DESC

enum class PCB_NET_INSPECTOR_PANEL::CSV_COLUMN_DESC : int
strongprivate

CSV output control.

Enumerator
CSV_NONE 
CSV_QUOTE 

Definition at line 293 of file pcb_net_inspector_panel.h.

◆ POPUP_MENU_OPTIONS

Enumerator
ID_ADD_NET 
ID_RENAME_NET 
ID_DELETE_NET 
ID_ADD_GROUP 
ID_GROUP_BY_CONSTRAINT 
ID_GROUP_BY_NETCLASS 
ID_FILTER_BY_NET_NAME 
ID_FILTER_BY_NETCLASS 
ID_REMOVE_SELECTED_GROUP 
ID_REMOVE_GROUPS 
ID_SHOW_ZERO_NET_PADS 
ID_SHOW_UNCONNECTED_NETS 
ID_GENERATE_REPORT 
ID_HIGHLIGHT_SELECTED_NETS 
ID_CLEAR_HIGHLIGHTING 
ID_LAST_STATIC_MENU 
ID_HIDE_COLUMN 

Definition at line 346 of file pcb_net_inspector_panel.h.

Constructor & Destructor Documentation

◆ PCB_NET_INSPECTOR_PANEL()

◆ ~PCB_NET_INSPECTOR_PANEL()

Member Function Documentation

◆ adjustListColumnSizes()

void PCB_NET_INSPECTOR_PANEL::adjustListColumnSizes ( PANEL_NET_INSPECTOR_SETTINGS cfg)
private

◆ buildColumns()

◆ buildNetsList()

void PCB_NET_INSPECTOR_PANEL::buildNetsList ( bool  rebuildColumns = false)
private

Definition at line 394 of file pcb_net_inspector_panel.cpp.

References buildColumns(), buildNewItem(), COLUMN_NAME, CTX_NET, PANEL_NET_INSPECTOR_SETTINGS::custom_group_rules, alg::delete_matching(), PANEL_NET_INSPECTOR_SETTINGS::expanded_rows, PANEL_NET_INSPECTOR_SETTINGS::filter_by_net_name, PANEL_NET_INSPECTOR_SETTINGS::filter_by_netclass, BOARD::Footprints(), PROJECT::GetLocalSettings(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::GetNetCode(), BOARD::GetNetInfo(), PGM_BASE::GetSettingsManager(), PANEL_NET_INSPECTOR_SETTINGS::group_by_constraint, PANEL_NET_INSPECTOR_SETTINGS::group_by_netclass, m_board_loaded, m_board_loading, m_brd, m_custom_group_rules, m_data_model, m_filter_by_net_name, m_filter_by_netclass, m_group_by_constraint, m_group_by_netclass, m_in_build_nets_list, PROJECT_LOCAL_SETTINGS::m_NetInspectorPanel, NET_INSPECTOR_PANEL::m_netsList, m_row_expanding, m_show_zero_pad_nets, m_zero_netitem, netFilterMatches(), NETINFO_LIST::NetsByNetcode(), pad, Pgm(), SETTINGS_MANAGER::Prj(), relevantConnectivityItems(), restoreSortColumn(), PANEL_NET_INSPECTOR_SETTINGS::show_zero_pad_nets, PANEL_NET_INSPECTOR_SETTINGS::sort_order_asc, and PANEL_NET_INSPECTOR_SETTINGS::sorting_column.

Referenced by onAddGroup(), OnBoardChanged(), OnBoardCompositeUpdate(), OnBoardItemChanged(), OnBoardItemsAdded(), OnBoardItemsChanged(), OnBoardItemsRemoved(), OnBoardNetSettingsChanged(), OnLanguageChangedImpl(), OnParentSetupChanged(), onRemoveSelectedGroup(), onRenameSelectedNet(), OnSearchTextChanged(), onSettingsMenu(), OnShowPanel(), and PCB_NET_INSPECTOR_PANEL().

◆ buildNewItem()

std::unique_ptr< PCB_NET_INSPECTOR_PANEL::LIST_ITEM > PCB_NET_INSPECTOR_PANEL::buildNewItem ( NETINFO_ITEM aNet,
unsigned int  aPadCount,
const std::vector< CN_ITEM * > &  aCNItems 
)
private

Constructs a LIST_ITEM for storage in the data model from a board net item.

Definition at line 630 of file pcb_net_inspector_panel.cpp.

References calculateViaLength(), BOARD::GetCopperLayerCount(), NETINFO_ITEM::GetNetCode(), m_brd, PCB_PAD_T, PCB_VIA_T, and EDA_ITEM::Type().

Referenced by buildNetsList(), and updateNet().

◆ calculateViaLength()

◆ formatCount()

wxString PCB_NET_INSPECTOR_PANEL::formatCount ( unsigned int  aValue) const
private

◆ formatLength()

wxString PCB_NET_INSPECTOR_PANEL::formatLength ( int64_t  aValue) const
private

◆ formatNetCode()

wxString PCB_NET_INSPECTOR_PANEL::formatNetCode ( const NETINFO_ITEM aNet) const
private

Definition at line 810 of file pcb_net_inspector_panel.cpp.

References NETINFO_ITEM::GetNetCode().

◆ formatNetName()

wxString PCB_NET_INSPECTOR_PANEL::formatNetName ( const NETINFO_ITEM aNet) const
private

Definition at line 816 of file pcb_net_inspector_panel.cpp.

References NETINFO_ITEM::GetNetname(), and UnescapeString().

◆ generateReport()

void PCB_NET_INSPECTOR_PANEL::generateReport ( )
private

Generates a CSV report from currently disaplyed data.

Definition at line 1549 of file pcb_net_inspector_panel.cpp.

References _, AddFileExtListToFilter(), CSV_QUOTE, EDA_UNIT_UTILS::GetLabel(), UNITS_PROVIDER::GetUserUnits(), m_columns, m_data_model, m_frame, and m_in_reporting.

Referenced by OnConfigButton(), and onSettingsMenu().

◆ generateShowHideColumnMenu()

void PCB_NET_INSPECTOR_PANEL::generateShowHideColumnMenu ( wxMenu *  target)
private

Generates a sub-menu for the show / hide columns submenu.

Definition at line 1410 of file pcb_net_inspector_panel.cpp.

References COLUMN_LAST_STATIC_COL, getDisplayedColumnForModelField(), ID_HIDE_COLUMN, and m_columns.

Referenced by OnConfigButton(), and OnHeaderContextMenu().

◆ getDisplayedColumnForModelField()

wxDataViewColumn * PCB_NET_INSPECTOR_PANEL::getDisplayedColumnForModelField ( int  columnId)
private

Fetches the displayed grid view column for the given model column ID.

Parameters
columnIdThe ID (from column static IDs enum) to find
Returns
Pointer to the wxDataViewColumn, or nullptr if not found

Definition at line 371 of file pcb_net_inspector_panel.cpp.

References NET_INSPECTOR_PANEL::m_netsList.

Referenced by buildColumns(), generateShowHideColumnMenu(), onSettingsMenu(), and restoreSortColumn().

◆ highlightSelectedNets()

◆ netFilterMatches()

◆ onAddGroup()

◆ onAddNet()

◆ OnBoardChanged()

◆ OnBoardCompositeUpdate()

void PCB_NET_INSPECTOR_PANEL::OnBoardCompositeUpdate ( BOARD aBoard,
std::vector< BOARD_ITEM * > &  aAddedItems,
std::vector< BOARD_ITEM * > &  aRemovedItems,
std::vector< BOARD_ITEM * > &  aDeletedItems 
)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 1104 of file pcb_net_inspector_panel.cpp.

References buildNetsList(), and NET_INSPECTOR_PANEL::m_netsList.

◆ OnBoardHighlightNetChanged()

void PCB_NET_INSPECTOR_PANEL::OnBoardHighlightNetChanged ( BOARD aBoard)
overridevirtual

◆ OnBoardItemAdded()

void PCB_NET_INSPECTOR_PANEL::OnBoardItemAdded ( BOARD aBoard,
BOARD_ITEM aBoardItem 
)
overridevirtual

◆ OnBoardItemChanged()

void PCB_NET_INSPECTOR_PANEL::OnBoardItemChanged ( BOARD aBoard,
BOARD_ITEM aBoardItem 
)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 1079 of file pcb_net_inspector_panel.cpp.

References buildNetsList(), and NET_INSPECTOR_PANEL::m_netsList.

◆ OnBoardItemRemoved()

void PCB_NET_INSPECTOR_PANEL::OnBoardItemRemoved ( BOARD aBoard,
BOARD_ITEM aBoardItem 
)
overridevirtual

◆ OnBoardItemsAdded()

void PCB_NET_INSPECTOR_PANEL::OnBoardItemsAdded ( BOARD aBoard,
std::vector< BOARD_ITEM * > &  aBoardItems 
)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 965 of file pcb_net_inspector_panel.cpp.

References buildNetsList(), NET_INSPECTOR_PANEL::m_netsList, and OnBoardItemAdded().

◆ OnBoardItemsChanged()

void PCB_NET_INSPECTOR_PANEL::OnBoardItemsChanged ( BOARD aBoard,
std::vector< BOARD_ITEM * > &  aBoardItems 
)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 1093 of file pcb_net_inspector_panel.cpp.

References buildNetsList(), and NET_INSPECTOR_PANEL::m_netsList.

◆ OnBoardItemsRemoved()

void PCB_NET_INSPECTOR_PANEL::OnBoardItemsRemoved ( BOARD aBoard,
std::vector< BOARD_ITEM * > &  aBoardItems 
)
overridevirtual

◆ OnBoardNetSettingsChanged()

void PCB_NET_INSPECTOR_PANEL::OnBoardNetSettingsChanged ( BOARD aBoard)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 1069 of file pcb_net_inspector_panel.cpp.

References buildNetsList(), and NET_INSPECTOR_PANEL::m_netsList.

◆ OnBoardRatsnestChanged()

virtual void BOARD_LISTENER::OnBoardRatsnestChanged ( BOARD aBoard)
inlinevirtualinherited

Reimplemented in PCB_SEARCH_PANE.

Definition at line 263 of file board.h.

Referenced by BOARD::OnRatsnestChanged().

◆ onClearHighlighting()

◆ OnColumnSorted()

void PCB_NET_INSPECTOR_PANEL::OnColumnSorted ( wxDataViewEvent &  event)
protected

Definition at line 1667 of file pcb_net_inspector_panel.cpp.

References SaveSettings().

Referenced by PCB_NET_INSPECTOR_PANEL(), and ~PCB_NET_INSPECTOR_PANEL().

◆ OnConfigButton()

◆ onDeleteSelectedNet()

◆ OnExpandCollapseRow()

void PCB_NET_INSPECTOR_PANEL::OnExpandCollapseRow ( wxCommandEvent &  event)
protected

◆ OnHeaderContextMenu()

void PCB_NET_INSPECTOR_PANEL::OnHeaderContextMenu ( wxCommandEvent &  event)
protected

◆ onItemContextMenu()

void PCB_NET_INSPECTOR_PANEL::onItemContextMenu ( wxCommandEvent &  event)
private

◆ OnLanguageChanged()

void NET_INSPECTOR_PANEL::OnLanguageChanged ( wxCommandEvent &  event)
protectedvirtualinherited

◆ OnLanguageChangedImpl()

void PCB_NET_INSPECTOR_PANEL::OnLanguageChangedImpl ( )
overrideprotectedvirtual

Reloads strings on an application language change.

Reimplemented from NET_INSPECTOR_PANEL.

Definition at line 1892 of file pcb_net_inspector_panel.cpp.

References buildNetsList(), m_data_model, and SaveSettings().

◆ OnNetsListContextMenu()

◆ OnNetsListItemActivated()

void PCB_NET_INSPECTOR_PANEL::OnNetsListItemActivated ( wxDataViewEvent &  event)
protected

◆ OnParentSetupChanged()

void PCB_NET_INSPECTOR_PANEL::OnParentSetupChanged ( )
overridevirtual

Updates the netlist based on global board changes (e.g.

stackup definition)

Called by PCB_EDIT_FRAME after displaying the Board Setup dialog

Reimplemented from NET_INSPECTOR_PANEL.

Definition at line 1673 of file pcb_net_inspector_panel.cpp.

References buildNetsList(), and NET_INSPECTOR_PANEL::m_netsList.

◆ onRemoveSelectedGroup()

void PCB_NET_INSPECTOR_PANEL::onRemoveSelectedGroup ( )
private

◆ onRenameSelectedNet()

◆ OnSearchTextChanged()

void PCB_NET_INSPECTOR_PANEL::OnSearchTextChanged ( wxCommandEvent &  event)
overrideprotectedvirtual

Reimplemented from NET_INSPECTOR_PANEL.

Definition at line 1242 of file pcb_net_inspector_panel.cpp.

References buildNetsList(), and SaveSettings().

◆ OnSetFocus()

virtual void NET_INSPECTOR_PANEL::OnSetFocus ( wxFocusEvent &  event)
inlineprotectedvirtualinherited

◆ onSettingsMenu()

◆ OnShowPanel()

void PCB_NET_INSPECTOR_PANEL::OnShowPanel ( )
overridevirtual

Prepare the panel when shown in the editor.

Reimplemented from NET_INSPECTOR_PANEL.

Definition at line 1153 of file pcb_net_inspector_panel.cpp.

References buildNetsList(), m_brd, and OnBoardHighlightNetChanged().

◆ OnSize()

virtual void NET_INSPECTOR_PANEL::OnSize ( wxSizeEvent &  event)
inlineprotectedvirtualinherited

◆ onUnitsChanged()

void PCB_NET_INSPECTOR_PANEL::onUnitsChanged ( wxCommandEvent &  event)
private

Definition at line 1900 of file pcb_net_inspector_panel.cpp.

References m_data_model.

Referenced by PCB_NET_INSPECTOR_PANEL(), and ~PCB_NET_INSPECTOR_PANEL().

◆ relevantConnectivityItems()

std::vector< CN_ITEM * > PCB_NET_INSPECTOR_PANEL::relevantConnectivityItems ( ) const
private

Filters connectivity items from a board update to remove those not related to net / track metrics.

Definition at line 665 of file pcb_net_inspector_panel.cpp.

References BOARD::GetConnectivity(), m_brd, PCB_ARC_T, PCB_PAD_T, PCB_TRACE_T, and PCB_VIA_T.

Referenced by buildNetsList(), and updateNet().

◆ restoreSortColumn()

bool PCB_NET_INSPECTOR_PANEL::restoreSortColumn ( int  sortingColumnId,
bool  sortOrderAsc 
)
private

Sets the sort column in the grid to that showing the given model ID column.

Parameters
sortingColumnIdThe model ID of the column to sort by
sortOrderAscTrue for ascending sort, False for descending sort
Returns
true if the column was found

Definition at line 355 of file pcb_net_inspector_panel.cpp.

References getDisplayedColumnForModelField(), and m_data_model.

Referenced by buildNetsList().

◆ SaveSettings()

◆ setColumnWidths()

void PCB_NET_INSPECTOR_PANEL::setColumnWidths ( )
private

◆ updateDisplayedRowValues()

void PCB_NET_INSPECTOR_PANEL::updateDisplayedRowValues ( const std::optional< LIST_ITEM_ITER > &  aRow)
private

◆ updateNet()

void PCB_NET_INSPECTOR_PANEL::updateNet ( NETINFO_ITEM aNet)
private

Member Data Documentation

◆ DATA_MODEL

Definition at line 250 of file pcb_net_inspector_panel.h.

◆ m_board_loaded

bool PCB_NET_INSPECTOR_PANEL::m_board_loaded = false
private

◆ m_board_loading

bool PCB_NET_INSPECTOR_PANEL::m_board_loading = false
private

Definition at line 268 of file pcb_net_inspector_panel.h.

Referenced by buildNetsList(), OnBoardChanged(), and SaveSettings().

◆ m_brd

◆ m_columns

◆ m_configureBtn

BITMAP_BUTTON* NET_INSPECTOR_PANEL::m_configureBtn
protectedinherited

◆ m_custom_group_rules

◆ m_data_model

◆ m_filter_by_net_name

bool PCB_NET_INSPECTOR_PANEL::m_filter_by_net_name = true
private

Definition at line 279 of file pcb_net_inspector_panel.h.

Referenced by buildNetsList(), onSettingsMenu(), and SaveSettings().

◆ m_filter_by_netclass

bool PCB_NET_INSPECTOR_PANEL::m_filter_by_netclass = true
private

Definition at line 280 of file pcb_net_inspector_panel.h.

Referenced by buildNetsList(), onSettingsMenu(), and SaveSettings().

◆ m_frame

◆ m_group_by_constraint

bool PCB_NET_INSPECTOR_PANEL::m_group_by_constraint = false
private

Definition at line 284 of file pcb_net_inspector_panel.h.

Referenced by buildNetsList(), onSettingsMenu(), and SaveSettings().

◆ m_group_by_netclass

bool PCB_NET_INSPECTOR_PANEL::m_group_by_netclass = false
private

◆ m_highlighting_nets

bool PCB_NET_INSPECTOR_PANEL::m_highlighting_nets = false
private

◆ m_in_build_nets_list

bool PCB_NET_INSPECTOR_PANEL::m_in_build_nets_list = false
private

Definition at line 256 of file pcb_net_inspector_panel.h.

Referenced by buildNetsList(), and highlightSelectedNets().

◆ m_in_reporting

bool PCB_NET_INSPECTOR_PANEL::m_in_reporting = false
private

Definition at line 255 of file pcb_net_inspector_panel.h.

Referenced by formatLength(), and generateReport().

◆ m_netsList

◆ m_num_copper_layers

int PCB_NET_INSPECTOR_PANEL::m_num_copper_layers = 0
private

Definition at line 286 of file pcb_net_inspector_panel.h.

Referenced by buildColumns().

◆ m_row_expanding

bool PCB_NET_INSPECTOR_PANEL::m_row_expanding = false
private

Definition at line 273 of file pcb_net_inspector_panel.h.

Referenced by buildNetsList(), and OnExpandCollapseRow().

◆ m_searchCtrl

◆ m_show_unconnected_nets

bool PCB_NET_INSPECTOR_PANEL::m_show_unconnected_nets = false
private

◆ m_show_zero_pad_nets

bool PCB_NET_INSPECTOR_PANEL::m_show_zero_pad_nets = false
private

◆ m_sizerOuter

wxGridBagSizer* NET_INSPECTOR_PANEL::m_sizerOuter
protectedinherited

Definition at line 89 of file net_inspector_panel.h.

Referenced by NET_INSPECTOR_PANEL::NET_INSPECTOR_PANEL().

◆ m_zero_netitem

NETINFO_ITEM* PCB_NET_INSPECTOR_PANEL::m_zero_netitem
private

Definition at line 233 of file pcb_net_inspector_panel.h.

Referenced by buildNetsList().


The documentation for this class was generated from the following files: