26 #ifndef EE_COLLECTORS_H 27 #define EE_COLLECTORS_H 68 if( (
unsigned)aIndex < (
unsigned)
GetCount() )
88 int aUnit = 0,
int aConvert = 0 );
102 int aUnit = 0,
int aConvert = 0 );
118 std::vector<SCH_COMPONENT*>* otherUnits );
120 #endif // EE_COLLECTORS_H void CollectOtherUnits(const wxString &thisRef, int thisUnit, SCH_SHEET_PATH &aSheet, std::vector< SCH_COMPONENT * > *otherUnits)
COLLECTOR class definition.
void Collect(SCH_SCREEN *aScreen, const KICAD_T aFilterList[], const wxPoint &aPos, int aUnit=0, int aConvert=0)
Function Collect scans a EDA_ITEM using this class's Inspector method, which does the collection.
void SetScanTypes(const KICAD_T *scanTypes)
Record the list of KICAD_T types to consider for collection by the Inspect() function.
std::vector< EDA_ITEM * > m_list
static const KICAD_T FieldOwners[]
static const KICAD_T ComponentsOnly[]
static const KICAD_T MovableItems[]
static const KICAD_T SheetsOnly[]
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.
Subclass of DIALOG_SCH_FIND_BASE, which is generated by wxFormBuilder.
SCH_ITEM * operator[](int aIndex) const override
Overload COLLECTOR::operator[](int) to return a SCH_ITEM instead of an EDA_ITEM.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
bool IsCorner() const
Function IsCorner tests if the collected items forms as corner of two line segments.
static const KICAD_T AllItems[]
SEARCH_RESULT Inspect(EDA_ITEM *aItem, void *aTestData) override
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...
Base class for any item which can be embedded within the SCHEMATIC container class,...
static const KICAD_T EditableItems[]
EE_COLLECTOR(const KICAD_T *aScanTypes=EE_COLLECTOR::AllItems)
static const KICAD_T WiresOnly[]