20#ifndef GERBER_COLLECTORS_H
21#define GERBER_COLLECTORS_H
44 if( (
unsigned)ndx < (
unsigned)
GetCount() )
int GetCount() const
Return the number of objects in the list.
void SetScanTypes(const std::vector< KICAD_T > &aTypes)
Record the list of KICAD_T types to consider for collection by the Inspect() function.
std::vector< EDA_ITEM * > m_list
A base class for most all the KiCad significant classes used in schematics and boards.
EDA_ITEM * operator[](int ndx) const override
Overload the [](int) operator to return a EDA_ITEM* instead of an EDA_ITEM* type.
INSPECT_RESULT Inspect(EDA_ITEM *testItem, void *testData) override
The examining function within the INSPECTOR which is passed to the Iterate function.
void Collect(EDA_ITEM *aItem, const std::vector< KICAD_T > &aScanTypes, const VECTOR2I &aRefPos)
Scan an EDA_ITEM using this class's Inspector method, which does the collection.
VECTOR2< int32_t > VECTOR2I