KiCad PCB EDA Suite
|
#include <drc_item.h>
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_ITEM > | GetItem (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 | |
BOARD * | m_board |
std::vector< MARKER_BASE::MARKER_T > | m_markerTypes |
int | m_severities |
std::vector< PCB_MARKER * > | m_filteredMarkers |
Definition at line 251 of file drc_item.h.
|
inline |
Definition at line 254 of file drc_item.h.
References m_markerTypes, and MARKER_BASE::MARKER_UNSPEC.
|
overridevirtual |
Remove (and optionally deletes) the indexed item from the list.
aDeep | If true, the source item should be deleted as well as its entry in the list. |
Implements RC_ITEMS_PROVIDER.
Definition at line 546 of file drc_item.cpp.
References BOARD_ITEM_CONTAINER::Delete(), m_board, and m_filteredMarkers.
|
overridevirtual |
Implements RC_ITEMS_PROVIDER.
Definition at line 518 of file drc_item.cpp.
References alg::contains(), m_board, m_filteredMarkers, m_markerTypes, and BOARD::Markers().
|
overridevirtual |
Retrieve a RC_ITEM by index.
Implements RC_ITEMS_PROVIDER.
Definition at line 538 of file drc_item.cpp.
References MARKER_BASE::GetRCItem(), and m_filteredMarkers.
|
overridevirtual |
Implements RC_ITEMS_PROVIDER.
Definition at line 501 of file drc_item.cpp.
References alg::contains(), m_board, m_filteredMarkers, m_markerTypes, m_severities, and BOARD::Markers().
|
private |
Definition at line 274 of file drc_item.h.
Referenced by DeleteItem(), GetCount(), and SetSeverities().
|
private |
Definition at line 278 of file drc_item.h.
Referenced by DeleteItem(), GetCount(), GetItem(), and SetSeverities().
|
private |
Definition at line 275 of file drc_item.h.
Referenced by DRC_ITEMS_PROVIDER(), GetCount(), and SetSeverities().
|
private |
Definition at line 277 of file drc_item.h.
Referenced by SetSeverities().