39 copy->SetOwner(
this );
47 copy->SetOwner(
this );
54 std::vector<ITEM*> newItems;
64 if( item->Layers().Overlaps( l ) ^ aInvert )
65 newItems.push_back( item );
68 m_items = std::move( newItems );
76 std::vector<ITEM*> newItems;
80 if( item->OfKind( aKindMask ) ^ aInvert )
81 newItems.push_back( item );
84 m_items = std::move( newItems );
92 std::vector<ITEM*> newItems;
96 if( item->Marker() & aMarker )
97 newItems.push_back( item );
100 m_items = std::move( newItems );
108 std::vector<ITEM*> newItems;
112 if( ( item->Net() == aNet ) ^ aInvert )
113 newItems.push_back( item );
116 m_items = std::move( newItems );
124 std::vector<ITEM*> newItems;
129 newItems.push_back( item );
132 m_items = std::move( newItems );
144 if( seg->Seg().A == aV || seg->Seg().B == aV )
ITEM_SET & FilterNet(NET_HANDLE aNet, bool aInvert=false)
std::vector< ITEM * > m_items
void Add(const LINE &aLine)
ITEM_SET & ExcludeItem(const ITEM *aItem)
ITEM_SET & FilterMarker(int aMarker, bool aInvert=false)
ITEM_SET & FilterKinds(int aKindMask, bool aInvert=false)
ITEM_SET & FilterLayers(int aStart, int aEnd=-1, bool aInvert=false)
ITEM_SET(ITEM *aInitialItem=nullptr, bool aBecomeOwner=false)
ITEM * FindVertex(const VECTOR2I &aV) const
void Prepend(const LINE &aLine)
Base class for PNS router board items.
Represents a track on a PCB, connecting two non-trivial joints (that is, vias, pads,...
virtual LINE * Clone() const override
Return a deep copy of the item.
Represent a contiguous set of PCB layers.
Push and Shove diff pair dimensions (gap) settings dialog.
Casted dyn_cast(From aObject)
A lightweight dynamic downcast.
VECTOR2< int32_t > VECTOR2I