119 LIB_ITEM* lib_item = dynamic_cast<LIB_ITEM*>( aItem );
136 int aUnit,
int aConvert )
156 const wxPoint& aPos,
int aUnit,
int aConvert )
180 bool is_busentry0 = ( dynamic_cast<SCH_BUS_ENTRY_BASE*>(
m_list[0] ) != nullptr );
181 bool is_busentry1 = ( dynamic_cast<SCH_BUS_ENTRY_BASE*>(
m_list[1] ) != nullptr );
202 for(
unsigned i = 0; i < symbols.
GetCount(); i++ )
208 otherUnits->push_back( symbol.
GetSymbol() );
void Empty()
Clear the list.
void Collect(SCH_SCREEN *aScreen, const KICAD_T aFilterList[], const wxPoint &aPos, int aUnit=0, int aConvert=0)
Scan 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[]
void CollectOtherUnits(const wxString &aRef, int aUnit, const LIB_ID &aLibId, SCH_SHEET_PATH &aSheet, std::vector< SCH_SYMBOL * > *otherUnits)
SCH_SYMBOL * GetSymbol() const
static const KICAD_T MovableItems[]
static const KICAD_T SheetsOnly[]
A logical library item identifier and consists of various portions much like a URI.
search types array terminator (End Of Types)
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
The base class for drawable items used by schematic library symbols.
Container to create a flattened list of symbols because in a complex hierarchy, a symbol can be used ...
This file contains miscellaneous commonly used macros and functions.
void Append(EDA_ITEM *item)
Add an item to the end of the list.
virtual bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const
Test if aPosition is inside or on the boundary of this item.
int GetCount() const
Return the number of objects in the list.
INSPECTOR_FUNC m_inspector
void SetRefPos(const wxPoint &aRefPos)
wxLogTrace helper definitions.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
bool IsCorner() const
Test if the collected items form a corner of two line segments.
const KICAD_T * m_scanTypes
EE_TYPE Overlapping(const EDA_RECT &aRect) const
Segment description base class to describe items which have 2 end points (track, wire,...
EE_RTREE & Items()
Gets the full RTree, usually for iterating.
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.
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.
static const KICAD_T SymbolsOnly[]
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
Base class for any item which can be embedded within the SCHEMATIC container class,...
static const KICAD_T EditableItems[]
A helper to define a symbol's reference designator in a schematic.
static const KICAD_T WiresOnly[]
KICAD_T Type() const
Returns the type of object.
const LIB_ID & GetLibId() const