26#ifndef EE_COLLECTORS_H
27#define EE_COLLECTORS_H
62 if( (
unsigned)aIndex < (
unsigned)
GetCount() )
81 const VECTOR2I& aPos,
int aUnit = 0,
int aConvert = 0 );
94 const VECTOR2I& aPos,
int aUnit = 0,
int aConvert = 0 );
An abstract class that will find and hold all the objects according to an inspection done by the Insp...
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.
EE_COLLECTOR(const std::vector< KICAD_T > &aScanTypes={ SCH_LOCATE_ANY_T })
bool m_ShowPinElectricalTypes
static const std::vector< KICAD_T > MovableItems
bool IsCorner() const
Test if the collected items form a corner of two line segments.
INSPECT_RESULT Inspect(EDA_ITEM *aItem, void *aTestData) override
void Collect(SCH_SCREEN *aScreen, const std::vector< KICAD_T > &aScanTypes, const VECTOR2I &aPos, int aUnit=0, int aConvert=0)
Scan a EDA_ITEM using this class's Inspector method which does the collection.
SCH_ITEM * operator[](int aIndex) const override
Overload COLLECTOR::operator[](int) to return a SCH_ITEM instead of an EDA_ITEM.
static const std::vector< KICAD_T > EditableItems
static const std::vector< KICAD_T > FieldOwners
A logical library item identifier and consists of various portions much like a URI.
Base class for any item which can be embedded within the SCHEMATIC container class,...
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
void CollectOtherUnits(const wxString &thisRef, int thisUnit, const LIB_ID &aLibId, SCH_SHEET_PATH &aSheet, std::vector< SCH_SYMBOL * > *otherUnits)