119 LIB_ITEM* lib_item = dynamic_cast<LIB_ITEM*>( aItem );
136 int aUnit,
int aConvert )
151 bool componentsVisited =
false;
152 bool sheetsVisited =
false;
153 bool globalLabelsVisited =
false;
155 for(
const KICAD_T* filter = aFilterList; *filter !=
EOT; ++filter )
160 componentsVisited =
true;
163 sheetsVisited =
true;
166 globalLabelsVisited =
true;
172 if( !componentsVisited )
184 if( !globalLabelsVisited )
194 const wxPoint& aPos,
int aUnit,
int aConvert )
218 bool is_busentry0 = ( dynamic_cast<SCH_BUS_ENTRY_BASE*>(
m_list[0] ) !=
NULL);
219 bool is_busentry1 = ( dynamic_cast<SCH_BUS_ENTRY_BASE*>(
m_list[1] ) !=
NULL);
235 std::vector<SCH_COMPONENT*>* otherUnits )
240 for(
unsigned i = 0; i < components.
GetCount(); i++ )
244 if( component.
GetRef() == aRef && component.
GetUnit() != aUnit )
245 otherUnits->push_back( component.
GetSymbol() );
void Empty()
Clear the list.
EE_TYPE OfType(KICAD_T aType) const
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.
void CollectOtherUnits(const wxString &aRef, int aUnit, SCH_SHEET_PATH &aSheet, std::vector< SCH_COMPONENT * > *otherUnits)
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[]
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 components.
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 contained within or on the bounding box of an 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
Function IsCorner tests if the collected items forms as corner of two line segments.
const KICAD_T * m_scanTypes
SCH_COMPONENT * GetSymbol() const
unsigned GetCount() const
Segment description base class to describe items which have 2 end points (track, wire,...
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 bool GetLayer(MODEL_VRML &aModel, LAYER_NUM layer, VRML_LAYER **vlayer)
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.
void GetSymbols(SCH_REFERENCE_LIST &aReferences, bool aIncludePowerSymbols=true, bool aForceIncludeOrphanComponents=false) const
Adds SCH_REFERENCE object to aReferences for each component in the sheet.
static const KICAD_T WiresOnly[]
KICAD_T Type() const
Returns the type of object.