20 #ifndef GERBER_COLLECTORS_H 21 #define GERBER_COLLECTORS_H 55 if( (
unsigned)ndx < (
unsigned)
GetCount() )
86 const wxPoint& aRefPos );
void SetScanTypes(const KICAD_T *scanTypes)
Record the list of KICAD_T types to consider for collection by the Inspect() function.
Use when the right click button is pressed or when the select tool is in effect.
std::vector< EDA_ITEM * > m_list
int m_PrimaryLength
The number of items that were originally in the primary list before the m_List2nd was concatenated on...
std::vector< EDA_ITEM * > m_List2nd
A place to hold collected objects which don't match precisely the search criteria,...
static const KICAD_T AllItems[]
A scan list for all selectable gerber items.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
int GetCount() const
Return the number of objects in the list.
void Collect(EDA_ITEM *aItem, const KICAD_T aScanList[], const wxPoint &aRefPos)
Scan an EDA_ITEM using this class's Inspector method, which does the collection.
SEARCH_RESULT Inspect(EDA_ITEM *testItem, void *testData) override
The examining function within the INSPECTOR which is passed to the Iterate function.
EDA_ITEM * operator[](int ndx) const override
Overload the [](int) operator to return a EDA_ITEM* instead of an EDA_ITEM* type.
A base class for most all the KiCad significant classes used in schematics and boards.
An abstract class that will find and hold all the objects according to an inspection done by the Insp...