KiCad PCB EDA Suite
|
#include <connectivity_items.h>
Public Member Functions | |
CN_LIST () | |
void | Clear () |
std::vector< CN_ITEM * >::iterator | begin () |
std::vector< CN_ITEM * >::iterator | end () |
std::vector< CN_ITEM * >::const_iterator | begin () const |
std::vector< CN_ITEM * >::const_iterator | end () const |
CN_ITEM * | operator[] (int aIndex) |
template<class T > | |
void | FindNearby (CN_ITEM *aItem, T aFunc) |
void | SetHasInvalid (bool aInvalid=true) |
void | SetDirty (bool aDirty=true) |
bool | IsDirty () const |
void | RemoveInvalidItems (std::vector< CN_ITEM * > &aGarbage) |
void | ClearDirtyFlags () |
int | Size () const |
CN_ITEM * | Add (PAD *pad) |
CN_ITEM * | Add (PCB_TRACK *track) |
CN_ITEM * | Add (PCB_ARC *track) |
CN_ITEM * | Add (PCB_VIA *via) |
CN_ITEM * | Add (CN_ZONE_LAYER *zitem) |
CN_ITEM * | Add (PCB_SHAPE *shape) |
const std::vector< CN_ITEM * > | Add (ZONE *zone, PCB_LAYER_ID aLayer) |
Protected Member Functions | |
void | addItemtoTree (CN_ITEM *item) |
Protected Attributes | |
std::vector< CN_ITEM * > | m_items |
Private Attributes | |
bool | m_dirty |
bool | m_hasInvalid |
CN_RTREE< CN_ITEM * > | m_index |
Definition at line 404 of file connectivity_items.h.
|
inline |
Definition at line 407 of file connectivity_items.h.
References m_dirty, and m_hasInvalid.
CN_ITEM * CN_LIST::Add | ( | CN_ZONE_LAYER * | zitem | ) |
Definition at line 253 of file connectivity_items.cpp.
References addItemtoTree(), m_items, and SetDirty().
Definition at line 148 of file connectivity_items.cpp.
References addItemtoTree(), anchor, B_Cu, F_Cu, m_items, pad, and SetDirty().
Referenced by CN_CONNECTIVITY_ALGO::Add(), Add(), and CN_CONNECTIVITY_ALGO::Build().
Definition at line 204 of file connectivity_items.cpp.
References CN_ITEM::AddAnchor(), addItemtoTree(), PCB_TRACK::GetEnd(), BOARD_ITEM::GetLayer(), PCB_TRACK::GetStart(), m_items, SetDirty(), and CN_ITEM::SetLayer().
Definition at line 262 of file connectivity_items.cpp.
References CN_ITEM::AddAnchor(), addItemtoTree(), PCB_SHAPE::GetConnectionPoints(), PCB_SHAPE::GetLayer(), m_items, SetDirty(), and CN_ITEM::SetLayer().
Definition at line 191 of file connectivity_items.cpp.
References CN_ITEM::AddAnchor(), addItemtoTree(), PCB_TRACK::GetEnd(), BOARD_ITEM::GetLayer(), PCB_TRACK::GetStart(), m_items, SetDirty(), and CN_ITEM::SetLayer().
Definition at line 217 of file connectivity_items.cpp.
References CN_ITEM::AddAnchor(), addItemtoTree(), m_items, SetDirty(), CN_ITEM::SetLayers(), and via.
const std::vector< CN_ITEM * > CN_LIST::Add | ( | ZONE * | zone, |
PCB_LAYER_ID | aLayer | ||
) |
Definition at line 231 of file connectivity_items.cpp.
References Add(), CN_ITEM::AddAnchor(), CN_ZONE_LAYER::BuildRTree(), and ZONE::GetFilledPolysList().
|
inlineprotected |
Definition at line 463 of file connectivity_items.h.
References CN_RTREE< T >::Insert(), and m_index.
Referenced by Add().
|
inline |
Definition at line 422 of file connectivity_items.h.
References m_items.
Referenced by CN_CONNECTIVITY_ALGO::SearchClusters(), and CN_CONNECTIVITY_ALGO::searchConnections().
|
inline |
Definition at line 425 of file connectivity_items.h.
References m_items.
|
inline |
Definition at line 413 of file connectivity_items.h.
References m_index, m_items, and CN_RTREE< T >::RemoveAll().
Referenced by CN_CONNECTIVITY_ALGO::Clear().
|
inline |
Definition at line 443 of file connectivity_items.h.
References m_items, and SetDirty().
Referenced by CN_CONNECTIVITY_ALGO::searchConnections().
|
inline |
Definition at line 423 of file connectivity_items.h.
References m_items.
Referenced by CN_CONNECTIVITY_ALGO::SearchClusters(), and CN_CONNECTIVITY_ALGO::searchConnections().
|
inline |
Definition at line 426 of file connectivity_items.h.
References m_items.
|
inline |
Definition at line 431 of file connectivity_items.h.
References CN_ITEM::BBox(), CN_ITEM::EndLayer(), m_index, CN_RTREE< T >::Query(), and CN_ITEM::StartLayer().
|
inline |
Definition at line 439 of file connectivity_items.h.
References m_dirty.
Referenced by CN_CONNECTIVITY_ALGO::SearchClusters(), and CN_CONNECTIVITY_ALGO::searchConnections().
|
inline |
Definition at line 428 of file connectivity_items.h.
References m_items.
void CN_LIST::RemoveInvalidItems | ( | std::vector< CN_ITEM * > & | aGarbage | ) |
Definition at line 277 of file connectivity_items.cpp.
References m_hasInvalid, and m_items.
Referenced by CN_CONNECTIVITY_ALGO::searchConnections().
|
inline |
Definition at line 438 of file connectivity_items.h.
References m_dirty.
Referenced by Add(), ClearDirtyFlags(), and CN_CONNECTIVITY_ALGO::Remove().
|
inline |
Definition at line 436 of file connectivity_items.h.
References m_hasInvalid.
Referenced by CN_CONNECTIVITY_ALGO::Remove().
|
inline |
Definition at line 451 of file connectivity_items.h.
References m_items.
|
private |
Definition at line 472 of file connectivity_items.h.
Referenced by CN_LIST(), IsDirty(), and SetDirty().
|
private |
Definition at line 473 of file connectivity_items.h.
Referenced by CN_LIST(), RemoveInvalidItems(), and SetHasInvalid().
Definition at line 474 of file connectivity_items.h.
Referenced by addItemtoTree(), Clear(), and FindNearby().
|
protected |
Definition at line 469 of file connectivity_items.h.
Referenced by Add(), begin(), Clear(), ClearDirtyFlags(), end(), operator[](), RemoveInvalidItems(), and Size().