104 return INSPECT_RESULT::CONTINUE;
107 return INSPECT_RESULT::CONTINUE;
119 return INSPECT_RESULT::CONTINUE;
124 const VECTOR2I& aPos,
int aUnit,
int aConvert )
144 const VECTOR2I& aPos,
int aUnit,
int aConvert )
190 for(
unsigned i = 0; i < symbols.
GetCount(); i++ )
194 if( symbol.
GetRef() == aRef
198 otherUnits->push_back( symbol.
GetSymbol() );
INSPECTOR_FUNC m_inspector
void Empty()
Clear the list.
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.
void SetRefPos(const VECTOR2I &aRefPos)
std::vector< KICAD_T > m_scanTypes
std::vector< EDA_ITEM * > m_list
void Append(EDA_ITEM *item)
Add an item to the end of the list.
A base class for most all the KiCad significant classes used in schematics and boards.
void SetFlags(EDA_ITEM_FLAGS aMask)
KICAD_T Type() const
Returns the type of object.
void ClearFlags(EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS)
virtual bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const
Test if aPosition is inside or on the boundary of this item.
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.
static const std::vector< KICAD_T > EditableItems
static const std::vector< KICAD_T > FieldOwners
EE_TYPE Overlapping(const BOX2I &aRect) const
A logical library item identifier and consists of various portions much like a URI.
Base class for a bus or wire entry.
Base class for any item which can be embedded within the SCHEMATIC container class,...
Segment description base class to describe items which have 2 end points (track, wire,...
Container to create a flattened list of symbols because in a complex hierarchy, a symbol can be used ...
A helper to define a symbol's reference designator in a schematic.
SCH_SYMBOL * GetSymbol() const
EE_RTREE & Items()
Gets the full RTree, usually for iterating.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
void GetSymbols(SCH_REFERENCE_LIST &aReferences, bool aIncludePowerSymbols=true, bool aForceIncludeOrphanSymbols=false) const
Adds SCH_REFERENCE object to aReferences for each symbol in the sheet.
const LIB_ID & GetLibId() const override
#define SHOW_ELEC_TYPE
Show pin electrical type. Shared with IS_ROLLOVER.
void CollectOtherUnits(const wxString &aRef, int aUnit, const LIB_ID &aLibId, SCH_SHEET_PATH &aSheet, std::vector< SCH_SYMBOL * > *otherUnits)
This file contains miscellaneous commonly used macros and functions.
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
wxLogTrace helper definitions.