62 if( (
unsigned)aIndex < (
unsigned)
GetCount() )
81 const VECTOR2I& aPos,
int aUnit = 0,
int aBodyStyle = 0 );
94 const VECTOR2I& aPos,
int aUnit = 0,
int aBodyStyle = 0 );
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.
A logical library item identifier and consists of various portions much like a URI.
static const std::vector< KICAD_T > FieldOwners
SCH_COLLECTOR(const std::vector< KICAD_T > &aScanTypes={ SCH_LOCATE_ANY_T })
static const std::vector< KICAD_T > EditableItems
SCH_ITEM * operator[](int aIndex) const override
Overload COLLECTOR::operator[](int) to return a SCH_ITEM instead of an EDA_ITEM.
INSPECT_RESULT Inspect(EDA_ITEM *aItem, void *aTestData) override
bool IsCorner() const
Test if the collected items form a corner of two line segments.
void Collect(SCH_SCREEN *aScreen, const std::vector< KICAD_T > &aScanTypes, const VECTOR2I &aPos, int aUnit=0, int aBodyStyle=0)
Scan a EDA_ITEM using this class's Inspector method which does the collection.
static const std::vector< KICAD_T > DeletableItems
bool m_ShowPinElectricalTypes
static const std::vector< KICAD_T > MovableItems
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...
MULTIVECTOR< SCH_ITEM, SCH_SHAPE_T, SCH_PIN_T > LIB_ITEMS_CONTAINER
void CollectOtherUnits(const wxString &thisRef, int thisUnit, const LIB_ID &aLibId, SCH_SHEET_PATH &aSheet, std::vector< SCH_SYMBOL * > *otherUnits)
VECTOR2< int32_t > VECTOR2I