KiCad PCB EDA Suite
|
Represent a contiguous set of PCB layers. More...
#include <pns_layerset.h>
Public Member Functions | |
PNS_LAYER_RANGE () | |
PNS_LAYER_RANGE (int aStart, int aEnd) | |
PNS_LAYER_RANGE (int aLayer) | |
PNS_LAYER_RANGE (const PNS_LAYER_RANGE &aB) | |
~PNS_LAYER_RANGE () | |
PNS_LAYER_RANGE & | operator= (const PNS_LAYER_RANGE &aB) |
bool | Overlaps (const PNS_LAYER_RANGE &aOther) const |
bool | Overlaps (const int aLayer) const |
bool | IsMultilayer () const |
int | Start () const |
int | End () const |
void | Merge (const PNS_LAYER_RANGE &aOther) |
PNS_LAYER_RANGE | Intersection (const PNS_LAYER_RANGE &aOther) const |
Shortcut for comparisons/overlap tests. | |
bool | operator== (const PNS_LAYER_RANGE &aOther) const |
bool | operator!= (const PNS_LAYER_RANGE &aOther) const |
Static Public Member Functions | |
static PNS_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 129 of file pns_layerset.h.
References PNS_LAYER_RANGE().
Referenced by PNS::ROUTER::QueryHoverItems().
|
inline |
Definition at line 91 of file pns_layerset.h.
References m_end.
Referenced by PNS::INDEX::Add(), PNS_PCBNEW_RULE_RESOLVER::Clearance(), MOCK_RULE_RESOLVER::Clearance(), PNS::DRAGGER::dragShove(), PNS::JOINT::Dump(), PNS::VIA::EffectiveLayer(), PNS::ITEM::Format(), PNS_KICAD_IFACE::IsAnyLayerVisible(), PNS::SHOVE::pushSpringback(), PNS::INDEX::Query(), PNS::INDEX::Remove(), and PNS::VIA::UniqueShapeLayers().
|
inline |
Shortcut for comparisons/overlap tests.
Definition at line 112 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 81 of file pns_layerset.h.
References m_end, and m_start.
Referenced by PNS::NODE::FixupVirtualVias(), and PNS::ROUTER::markViolations().
|
inline |
Definition at line 96 of file pns_layerset.h.
References m_end, and m_start.
Referenced by PNS::JOINT::Merge().
|
inline |
Definition at line 139 of file pns_layerset.h.
|
inline |
Definition at line 60 of file pns_layerset.h.
|
inline |
Definition at line 134 of file pns_layerset.h.
|
inline |
Definition at line 74 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::VIA::EffectiveLayer(), PNS::NODE::FindLinesBetweenJoints(), PNS::ROUTER::Finish(), ROUTER_TOOL::getStartLayer(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), PNS::ITEM::LayersOverlap(), PNS::JOINT::NextSegment(), PNS::JOINT::Overlaps(), PNS::LINE_PLACER::SetLayer(), PNS::NODE::touchJoint(), and PNS::TOOL_BASE::updateStartItem().
|
inline |
Definition at line 86 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::DRAGGER::dragShove(), PNS::JOINT::Dump(), PNS::VIA::EffectiveLayer(), PNS::NODE::FindJoint(), PNS::NODE::findRedundantArc(), PNS::NODE::findRedundantSegment(), PNS::NODE::FindViaByHandle(), PNS::DRAGGER::findViaFanoutByHandle(), PNS::NODE::FixupVirtualVias(), PNS::ITEM::Format(), ROUTER_TOOL::getStartLayer(), PNS_KICAD_IFACE::IsAnyLayerVisible(), PNS::ITEM::Layer(), PNS::LINE::LINE(), PNS::SHOVE::onCollidingSolid(), PNS::TOOL_BASE::pickSingleItem(), PNS::SHOVE::pushSpringback(), PNS::INDEX::Query(), PNS::INDEX::Remove(), PNS::NODE::removeSolidIndex(), PNS::NODE::removeViaIndex(), PNS_LOG_PLAYER::ReplayLog(), PNS::VIA::SetStackMode(), PNS::VIA::UniqueShapeLayers(), ROUTER_PREVIEW_ITEM::Update(), and PNS::TOOL_BASE::updateEndItem().
|
private |
Definition at line 146 of file pns_layerset.h.
Referenced by End(), Intersection(), IsMultilayer(), Merge(), operator!=(), operator=(), operator==(), Overlaps(), and PNS_LAYER_RANGE().
|
private |
Definition at line 145 of file pns_layerset.h.
Referenced by Intersection(), IsMultilayer(), Merge(), operator!=(), operator=(), operator==(), Overlaps(), PNS_LAYER_RANGE(), and Start().