KiCad PCB EDA Suite
|
Represent a contiguous set of PCB layers. More...
#include <pns_layerset.h>
Public Member Functions | |
LAYER_RANGE () | |
LAYER_RANGE (int aStart, int aEnd) | |
LAYER_RANGE (int aLayer) | |
LAYER_RANGE (const LAYER_RANGE &aB) | |
~LAYER_RANGE () | |
LAYER_RANGE & | operator= (const LAYER_RANGE &aB) |
bool | Overlaps (const LAYER_RANGE &aOther) const |
bool | Overlaps (const int aLayer) const |
bool | IsMultilayer () const |
int | Start () const |
int | End () const |
void | Merge (const LAYER_RANGE &aOther) |
LAYER_RANGE | Intersection (const LAYER_RANGE &aOther) const |
Shortcut for comparisons/overlap tests. More... | |
bool | operator== (const LAYER_RANGE &aOther) const |
bool | operator!= (const LAYER_RANGE &aOther) const |
Static Public Member Functions | |
static LAYER_RANGE | All () |
Private Attributes | |
int | m_start |
int | m_end |
Represent a contiguous set of PCB layers.
Definition at line 31 of file pns_layerset.h.
|
inline |
Definition at line 34 of file pns_layerset.h.
Referenced by All().
|
inline |
Definition at line 39 of file pns_layerset.h.
|
inline |
Definition at line 48 of file pns_layerset.h.
|
inline |
Definition at line 53 of file pns_layerset.h.
|
inline |
Definition at line 58 of file pns_layerset.h.
|
inlinestatic |
Definition at line 125 of file pns_layerset.h.
References LAYER_RANGE().
Referenced by PNS::ROUTER::QueryHoverItems().
|
inline |
Definition at line 87 of file pns_layerset.h.
References m_end.
Referenced by PNS::INDEX::Add(), PNS_PCBNEW_RULE_RESOLVER::Clearance(), MOCK_RULE_RESOLVER::Clearance(), PNS::JOINT::Dump(), PNS::ITEM::Format(), CN_RTREE< T >::Insert(), PNS_KICAD_IFACE::IsAnyLayerVisible(), CN_RTREE< T >::Query(), PNS::INDEX::Query(), PNS::INDEX::Remove(), and CN_RTREE< T >::Remove().
|
inline |
Shortcut for comparisons/overlap tests.
Definition at line 108 of file pns_layerset.h.
References m_end, and m_start.
Referenced by PNS_PCBNEW_RULE_RESOLVER::Clearance(), MOCK_RULE_RESOLVER::Clearance(), and PNS_KICAD_IFACE_BASE::IsFlashedOnLayer().
|
inline |
Definition at line 77 of file pns_layerset.h.
References m_end, and m_start.
Referenced by PNS::NODE::FixupVirtualVias(), and PNS::ROUTER::markViolations().
|
inline |
Definition at line 92 of file pns_layerset.h.
References m_end, and m_start.
Referenced by PNS::JOINT::Merge().
|
inline |
Definition at line 135 of file pns_layerset.h.
|
inline |
Definition at line 60 of file pns_layerset.h.
|
inline |
Definition at line 130 of file pns_layerset.h.
|
inline |
Definition at line 72 of file pns_layerset.h.
|
inline |
Definition at line 67 of file pns_layerset.h.
References m_end, and m_start.
Referenced by PNS::ITEM::collideSimple(), PNS::ROUTER::ContinueFromEnd(), PNS::NODE::FindLinesBetweenJoints(), PNS::ROUTER::Finish(), ROUTER_TOOL::getStartLayer(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), PNS::ITEM::LayersOverlap(), PNS::JOINT::Overlaps(), PNS::LINE_PLACER::SetLayer(), PNS::NODE::touchJoint(), and PNS::TOOL_BASE::updateStartItem().
|
inline |
Definition at line 82 of file pns_layerset.h.
References m_start.
Referenced by PNS::INDEX::Add(), PNS_PCBNEW_RULE_RESOLVER::Clearance(), MOCK_RULE_RESOLVER::Clearance(), PNS::ROUTER::ContinueFromEnd(), PNS_KICAD_IFACE::createBoardItem(), PNS::DP_MEANDER_PLACER::CurrentLayer(), PNS::MEANDER_PLACER::CurrentLayer(), PNS::JOINT::Dump(), PNS::NODE::FindJoint(), PNS::NODE::findRedundantArc(), PNS::NODE::findRedundantSegment(), PNS::findViaByHandle(), PNS::DRAGGER::findViaFanoutByHandle(), PNS::NODE::FixupVirtualVias(), PNS::ITEM::Format(), ROUTER_TOOL::getStartLayer(), CN_RTREE< T >::Insert(), PNS_KICAD_IFACE::IsAnyLayerVisible(), CN_ITEM::Layer(), PNS::ITEM::Layer(), PNS::SHOVE::onCollidingSolid(), PNS::TOOL_BASE::pickSingleItem(), CN_RTREE< T >::Query(), PNS::INDEX::Query(), PNS::INDEX::Remove(), CN_RTREE< T >::Remove(), PNS::NODE::removeSolidIndex(), PNS::NODE::removeViaIndex(), PNS_LOG_PLAYER::ReplayLog(), ROUTER_PREVIEW_ITEM::Update(), and PNS::TOOL_BASE::updateEndItem().
|
private |
Definition at line 142 of file pns_layerset.h.
Referenced by End(), Intersection(), IsMultilayer(), LAYER_RANGE(), Merge(), operator!=(), operator=(), operator==(), and Overlaps().
|
private |
Definition at line 141 of file pns_layerset.h.
Referenced by Intersection(), IsMultilayer(), LAYER_RANGE(), Merge(), operator!=(), operator=(), operator==(), Overlaps(), and Start().