20 #ifndef GERBER_COLLECTORS_H 21 #define GERBER_COLLECTORS_H 97 if( (
unsigned)ndx < (
unsigned)
GetCount() )
131 const wxPoint& aRefPos);
COLLECTOR class definition.
int GetPrimaryCount()
Function GetPrimaryCount.
void SetScanTypes(const KICAD_T *scanTypes)
Record the list of KICAD_T types to consider for collection by the Inspect() function.
GERBER_COLLECTOR is intended for use when the right click button is pressed, or when the plain "arrow...
std::vector< EDA_ITEM * > m_list
int m_PrimaryLength
Determines which items are to be collected by Inspect()
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)
Function Collect scans an EDA_ITEM using this class's Inspector method, which does the collection.
SEARCH_RESULT Inspect(EDA_ITEM *testItem, void *testData) override
Function Inspect is the examining function within the INSPECTOR which is passed to the Iterate functi...
EDA_ITEM * operator[](int ndx) const override
Function SetGuide records which COLLECTORS_GUIDE to use.
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...