|
KiCad PCB EDA Suite
|
#include <drc_zone_index.h>
Public Member Functions | |
| void | Build (const std::map< PCB_LAYER_ID, std::vector< ZONE * > > &aLayers) |
| bool | HasLayer (PCB_LAYER_ID aLayer) const |
| True when the layer holds at least one zone, so a caller can skip building a query box. | |
| void | Query (PCB_LAYER_ID aLayer, const BOX2I &aBox, std::vector< ZONE * > &aOut) const |
| void | Clear () |
Private Types | |
| using | TREE = KIRTREE::PACKED_RTREE<size_t, int, 2> |
Private Attributes | |
| std::map< PCB_LAYER_ID, TREE > | m_trees |
| std::map< PCB_LAYER_ID, std::vector< ZONE * > > | m_zones |
Definition at line 99 of file drc_zone_index.h.
|
private |
Definition at line 166 of file drc_zone_index.h.
|
inline |
Definition at line 102 of file drc_zone_index.h.
References Clear(), BOX2< Vec >::GetBottom(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetX(), BOX2< Vec >::GetY(), m_trees, m_zones, and BOX2< Vec >::Normalize().
|
inline |
Definition at line 159 of file drc_zone_index.h.
References m_trees, and m_zones.
Referenced by Build().
|
inline |
True when the layer holds at least one zone, so a caller can skip building a query box.
Definition at line 126 of file drc_zone_index.h.
References m_trees.
|
inline |
Definition at line 128 of file drc_zone_index.h.
References BOX2< Vec >::GetBottom(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetX(), BOX2< Vec >::GetY(), m_trees, m_zones, and BOX2< Vec >::Normalize().
|
private |
Definition at line 168 of file drc_zone_index.h.
Referenced by Build(), Clear(), HasLayer(), and Query().
|
private |
Definition at line 169 of file drc_zone_index.h.