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

#include <drc_item.h>

Inheritance diagram for DRC_ITEMS_PROVIDER:
RC_ITEMS_PROVIDER

Public Member Functions

 DRC_ITEMS_PROVIDER (BOARD *aBoard, MARKER_BASE::MARKER_T aMarkerType, MARKER_BASE::MARKER_T otherMarkerType=MARKER_BASE::MARKER_UNSPEC)
 
void SetSeverities (int aSeverities) override
 
int GetCount (int aSeverity=-1) const override
 
std::shared_ptr< RC_ITEMGetItem (int aIndex) const override
 Retrieve a RC_ITEM by index.
 
void DeleteItem (int aIndex, bool aDeep) override
 Remove (and optionally deletes) the indexed item from the list.
 

Private Attributes

BOARDm_board
 
std::vector< MARKER_BASE::MARKER_Tm_markerTypes
 
int m_severities
 
std::vector< PCB_MARKER * > m_filteredMarkers
 

Detailed Description

Definition at line 246 of file drc_item.h.

Constructor & Destructor Documentation

◆ DRC_ITEMS_PROVIDER()

DRC_ITEMS_PROVIDER::DRC_ITEMS_PROVIDER ( BOARD aBoard,
MARKER_BASE::MARKER_T  aMarkerType,
MARKER_BASE::MARKER_T  otherMarkerType = MARKER_BASE::MARKER_UNSPEC 
)
inline

Definition at line 249 of file drc_item.h.

References m_markerTypes, and MARKER_BASE::MARKER_UNSPEC.

Member Function Documentation

◆ DeleteItem()

void DRC_ITEMS_PROVIDER::DeleteItem ( int  aIndex,
bool  aDeep 
)
overridevirtual

Remove (and optionally deletes) the indexed item from the list.

Parameters
aDeepIf true, the source item should be deleted as well as its entry in the list.

Implements RC_ITEMS_PROVIDER.

Definition at line 534 of file drc_item.cpp.

References BOARD_ITEM_CONTAINER::Delete(), m_board, and m_filteredMarkers.

◆ GetCount()

int DRC_ITEMS_PROVIDER::GetCount ( int  aSeverity = -1) const
overridevirtual

Implements RC_ITEMS_PROVIDER.

Definition at line 506 of file drc_item.cpp.

References alg::contains(), m_board, m_filteredMarkers, m_markerTypes, and BOARD::Markers().

◆ GetItem()

std::shared_ptr< RC_ITEM > DRC_ITEMS_PROVIDER::GetItem ( int  aIndex) const
overridevirtual

Retrieve a RC_ITEM by index.

Implements RC_ITEMS_PROVIDER.

Definition at line 526 of file drc_item.cpp.

References MARKER_BASE::GetRCItem(), and m_filteredMarkers.

◆ SetSeverities()

void DRC_ITEMS_PROVIDER::SetSeverities ( int  aSeverities)
overridevirtual

Member Data Documentation

◆ m_board

BOARD* DRC_ITEMS_PROVIDER::m_board
private

Definition at line 269 of file drc_item.h.

Referenced by DeleteItem(), GetCount(), and SetSeverities().

◆ m_filteredMarkers

std::vector<PCB_MARKER*> DRC_ITEMS_PROVIDER::m_filteredMarkers
private

Definition at line 273 of file drc_item.h.

Referenced by DeleteItem(), GetCount(), GetItem(), and SetSeverities().

◆ m_markerTypes

std::vector<MARKER_BASE::MARKER_T> DRC_ITEMS_PROVIDER::m_markerTypes
private

Definition at line 270 of file drc_item.h.

Referenced by DRC_ITEMS_PROVIDER(), GetCount(), and SetSeverities().

◆ m_severities

int DRC_ITEMS_PROVIDER::m_severities
private

Definition at line 272 of file drc_item.h.

Referenced by SetSeverities().


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