KiCad PCB EDA Suite
|
Basic class for a differential pair. More...
#include <pns_diff_pair.h>
Classes | |
struct | COUPLED_SEGMENTS |
Public Types | |
typedef std::vector< COUPLED_SEGMENTS > | COUPLED_SEGMENTS_VEC |
enum | PnsKind { INVALID_T = 0 , SOLID_T = 1 , LINE_T = 2 , JOINT_T = 4 , SEGMENT_T = 8 , ARC_T = 16 , VIA_T = 32 , DIFF_PAIR_T = 64 , HOLE_T = 128 , ANY_T = 0xffff , LINKED_ITEM_MASK_T = SOLID_T | SEGMENT_T | ARC_T | VIA_T | HOLE_T } |
< Supported item types More... | |
Public Member Functions | |
DIFF_PAIR () | |
DIFF_PAIR (int aGap) | |
DIFF_PAIR (const SHAPE_LINE_CHAIN &aP, const SHAPE_LINE_CHAIN &aN, int aGap=0) | |
DIFF_PAIR (const LINE &aLineP, const LINE &aLineN, int aGap=0) | |
DIFF_PAIR * | Clone () const override |
Return a deep copy of the item. | |
virtual void | ClearLinks () override |
Return the number of segments that were assembled together to form this line. | |
void | SetShape (const SHAPE_LINE_CHAIN &aP, const SHAPE_LINE_CHAIN &aN, bool aSwapLanes=false) |
void | SetShape (const DIFF_PAIR &aPair) |
void | SetNets (NET_HANDLE aP, NET_HANDLE aN) |
void | SetWidth (int aWidth) |
int | Width () const |
void | SetGap (int aGap) |
int | Gap () const |
void | AppendVias (const VIA &aViaP, const VIA &aViaN) |
void | RemoveVias () |
bool | EndsWithVias () const |
void | SetViaDiameter (int aDiameter) |
void | SetViaDrill (int aDrill) |
NET_HANDLE | NetP () const |
NET_HANDLE | NetN () const |
LINE & | PLine () |
LINE & | NLine () |
DP_PRIMITIVE_PAIR | EndingPrimitives () |
double | CoupledLength () const |
double | TotalLength () const |
double | CoupledLengthFactor () const |
double | Skew () const |
void | CoupledSegmentPairs (COUPLED_SEGMENTS_VEC &aPairs) const |
void | Clear () |
void | Append (const DIFF_PAIR &aOther) |
bool | Empty () const |
const SHAPE_LINE_CHAIN & | CP () const |
const SHAPE_LINE_CHAIN & | CN () const |
bool | BuildInitial (const DP_GATEWAY &aEntry, const DP_GATEWAY &aTarget, bool aPrefDiagonal) |
bool | CheckConnectionAngle (const DIFF_PAIR &aOther, int allowedAngles) const |
int | CoupledLength (const SEG &aP, const SEG &aN) const |
int64_t | CoupledLength (const SHAPE_LINE_CHAIN &aP, const SHAPE_LINE_CHAIN &aN) const |
const RANGED_NUM< int > | GapConstraint () const |
void | Link (LINKED_ITEM *aLink) |
void | Unlink (const LINKED_ITEM *aLink) |
Return the list of links from the owning node that constitute this line (or NULL if the line is not linked). | |
std::vector< LINKED_ITEM * > & | Links () |
const std::vector< LINKED_ITEM * > & | Links () const |
bool | IsLinked () const |
Check if the segment aLink is a part of the line. | |
bool | ContainsLink (const LINKED_ITEM *aItem) const |
LINKED_ITEM * | GetLink (int aIndex) const |
Erase the linking information. Used to detach the line from the owning node. | |
int | LinkCount () const |
void | ShowLinks () const |
virtual const SHAPE_LINE_CHAIN | Hull (int aClearance=0, int aWalkaroundThickness=0, int aLayer=-1) const |
PnsKind | Kind () const |
Return the type (kind) of the item. | |
bool | OfKind (int aKindMask) const |
std::string | KindStr () const |
void | SetParent (BOARD_ITEM *aParent) |
BOARD_ITEM * | Parent () const |
virtual BOARD_ITEM * | BoardItem () const |
void | SetNet (NET_HANDLE aNet) |
virtual NET_HANDLE | Net () const |
const PNS_LAYER_RANGE & | Layers () const |
void | SetLayers (const PNS_LAYER_RANGE &aLayers) |
void | SetLayer (int aLayer) |
virtual int | Layer () const |
bool | LayersOverlap (const ITEM *aOther) const |
Return true if the set of layers spanned by aOther overlaps our layers. | |
bool | Collide (const ITEM *aHead, const NODE *aNode, int aLayer, COLLISION_SEARCH_CONTEXT *aCtx=nullptr) const |
Check for a collision (clearance violation) with between us and item aOther. | |
virtual const SHAPE * | Shape (int aLayer) const |
Return the geometrical shape of the item. | |
virtual std::vector< int > | UniqueShapeLayers () const |
Return a list of layers that have unique (potentially different) shapes. | |
virtual bool | HasUniqueShapeLayers () const |
std::set< int > | RelevantShapeLayers (const ITEM *aOther) const |
Returns the set of layers on which either this or the other item can have a unique shape. | |
virtual void | Mark (int aMarker) const |
virtual void | Unmark (int aMarker=-1) const |
virtual int | Marker () const |
virtual void | SetRank (int aRank) |
virtual int | Rank () const |
virtual VECTOR2I | Anchor (int n) const |
virtual int | AnchorCount () const |
bool | IsLocked () const |
void | SetRoutable (bool aRoutable) |
bool | IsRoutable () const |
void | SetIsFreePad (bool aIsFreePad=true) |
bool | IsFreePad () const |
virtual ITEM * | ParentPadVia () const |
bool | IsVirtual () const |
void | SetIsCompoundShapePrimitive () |
bool | IsCompoundShapePrimitive () const |
virtual bool | HasHole () const |
virtual HOLE * | Hole () const |
virtual void | SetHole (HOLE *aHole) |
virtual const std::string | Format () const |
virtual const NODE * | OwningNode () const |
const ITEM_OWNER * | Owner () const |
Return the owner of this item, or NULL if there's none. | |
void | SetOwner (const ITEM_OWNER *aOwner) |
Set the node that owns this item. | |
bool | BelongsTo (const ITEM_OWNER *aNode) const |
Static Public Member Functions | |
static bool | ClassOf (const ITEM *aItem) |
static DIFF_PAIR * | AssembleDp (LINE *aLine) |
Protected Member Functions | |
void | copyLinks (const LINK_HOLDER *aParent) |
< Copy m_links from the line aParent. | |
Protected Attributes | |
std::vector< LINKED_ITEM * > | m_links |
PnsKind | m_kind |
BOARD_ITEM * | m_parent |
PNS_LAYER_RANGE | m_layers |
bool | m_movable |
NET_HANDLE | m_net |
int | m_marker |
int | m_rank |
bool | m_routable |
bool | m_isVirtual |
bool | m_isFreePad |
bool | m_isCompoundShapePrimitive |
const ITEM_OWNER * | m_owner |
Private Member Functions | |
void | updateLine (LINE &aLine, const SHAPE_LINE_CHAIN &aShape, NET_HANDLE aNet, const VIA &aVia) |
bool | collideSimple (const ITEM *aHead, const NODE *aNode, int aLayer, COLLISION_SEARCH_CONTEXT *aCtx) const |
Private Attributes | |
SHAPE_LINE_CHAIN | m_n |
SHAPE_LINE_CHAIN | m_p |
LINE | m_line_p |
LINE | m_line_n |
VIA | m_via_p |
VIA | m_via_n |
bool | m_hasVias |
NET_HANDLE | m_net_p |
NET_HANDLE | m_net_n |
int | m_width |
int | m_gap |
int | m_viaGap |
int | m_maxUncoupledLength |
int | m_chamferLimit |
RANGED_NUM< int > | m_gapConstraint |
Basic class for a differential pair.
Stores two PNS_LINEs (for positive and negative nets, respectively), the gap and coupling constraints.
Definition at line 234 of file pns_diff_pair.h.
typedef std::vector<COUPLED_SEGMENTS> PNS::DIFF_PAIR::COUPLED_SEGMENTS_VEC |
Definition at line 257 of file pns_diff_pair.h.
|
inherited |
< Supported item types
Enumerator | |
---|---|
INVALID_T | |
SOLID_T | |
LINE_T | |
JOINT_T | |
SEGMENT_T | |
ARC_T | |
VIA_T | |
DIFF_PAIR_T | |
HOLE_T | |
ANY_T | |
LINKED_ITEM_MASK_T |
Definition at line 100 of file pns_item.h.
|
inline |
Definition at line 259 of file pns_diff_pair.h.
References m_chamferLimit, m_gap, m_maxUncoupledLength, m_net_n, m_net_p, m_viaGap, and m_width.
|
inline |
Definition at line 273 of file pns_diff_pair.h.
References m_chamferLimit, m_gap, m_gapConstraint, m_maxUncoupledLength, m_net_n, m_net_p, m_viaGap, and m_width.
|
inline |
Definition at line 289 of file pns_diff_pair.h.
References m_chamferLimit, m_gap, m_gapConstraint, m_maxUncoupledLength, m_net_n, m_net_p, m_viaGap, and m_width.
Definition at line 307 of file pns_diff_pair.h.
References PNS::LINE::CLine(), m_chamferLimit, m_gap, m_gapConstraint, m_maxUncoupledLength, m_n, m_net_n, m_net_p, m_p, m_viaGap, m_width, and PNS::ITEM::Net().
|
inlinevirtualinherited |
Reimplemented in PNS::SOLID, PNS::ARC, PNS::SEGMENT, and PNS::VIA.
Definition at line 255 of file pns_item.h.
Referenced by PNS::DP_PRIMITIVE_PAIR::anchorDirection(), PNS::TOPOLOGY::AssembleDiffPair(), PNS::DP_PRIMITIVE_PAIR::CursorOrientation(), PNS::DP_PRIMITIVE_PAIR::DP_PRIMITIVE_PAIR(), PNS::NODE::followLine(), PNS_PCBNEW_RULE_RESOLVER::getBoardItem(), PNS::getDanglingAnchor(), PNS::ROUTER::getNearestRatnestAnchor(), PNS_KICAD_IFACE_BASE::ImportSizes(), PNS::TOPOLOGY::NearestUnconnectedAnchorPoint(), PNS::TOOL_BASE::pickSingleItem(), PCB_TUNING_PATTERN::recoverBaseline(), and PNS::TOOL_BASE::snapToItem().
|
inlinevirtualinherited |
Reimplemented in PNS::ARC, PNS::SEGMENT, PNS::SOLID, and PNS::VIA.
Definition at line 260 of file pns_item.h.
Referenced by PNS::TOPOLOGY::AssembleDiffPair().
|
inline |
Definition at line 467 of file pns_diff_pair.h.
References SHAPE_LINE_CHAIN::Append(), m_n, and m_p.
Definition at line 393 of file pns_diff_pair.h.
References PNS::HOLE::Clone(), PNS::VIA::Hole(), m_hasVias, m_via_n, m_via_p, and PNS::VIA::SetHole().
Referenced by PNS::DIFF_PAIR_PLACER::routeHead().
|
inlineinherited |
Definition at line 81 of file pns_item.h.
References PNS::OWNABLE_ITEM::m_owner.
Referenced by PNS::NODE::addSolid(), PNS::NODE::addVia(), PNS::NODE::doRemove(), PNS::LINE::LINE(), PNS::LINE::operator=(), PNS::NODE::Remove(), PNS::LINE::RemoveVia(), PNS::SOLID::SetHole(), PNS::VIA::SetHole(), PNS::LINE::~LINE(), PNS::NODE::~NODE(), and PNS::VIA::~VIA().
|
inlinevirtualinherited |
Reimplemented in PNS::HOLE.
Definition at line 194 of file pns_item.h.
References PNS::ITEM::m_parent.
Referenced by isEdge(), PNS_PCBNEW_RULE_RESOLVER::IsInNetTie(), PNS_PCBNEW_RULE_RESOLVER::IsNetTieExclusion(), PNS_PCBNEW_RULE_RESOLVER::QueryConstraint(), and ROUTER_PREVIEW_ITEM::ROUTER_PREVIEW_ITEM().
bool PNS::DIFF_PAIR::BuildInitial | ( | const DP_GATEWAY & | aEntry, |
const DP_GATEWAY & | aTarget, | ||
bool | aPrefDiagonal | ||
) |
Definition at line 206 of file pns_diff_pair.cpp.
References PNS::DP_GATEWAY::AllowedAngles(), PNS::DP_GATEWAY::AnchorN(), PNS::DP_GATEWAY::AnchorP(), DIRECTION_45::ANG_OBTUSE, DIRECTION_45::ANG_STRAIGHT, SHAPE_LINE_CHAIN::Append(), DIRECTION_45::BuildInitialTrace(), CheckConnectionAngle(), PNS::checkGap(), CN(), CP(), PNS::DP_GATEWAY::Entry(), PNS::DP_GATEWAY::HasEntryLines(), SHAPE_LINE_CHAIN::Intersects(), m_gapConstraint, m_n, m_p, PNS::DP_GATEWAY::Reverse(), and SHAPE_LINE_CHAIN::SelfIntersecting().
Referenced by PNS::DP_GATEWAYS::FitGateways().
bool PNS::DIFF_PAIR::CheckConnectionAngle | ( | const DIFF_PAIR & | aOther, |
int | allowedAngles | ||
) | const |
Definition at line 269 of file pns_diff_pair.cpp.
References DIRECTION_45::Angle(), SHAPE_LINE_CHAIN::CSegment(), m_n, m_p, and SHAPE_LINE_CHAIN::SegmentCount().
Referenced by BuildInitial().
|
inlinestatic |
Definition at line 327 of file pns_diff_pair.h.
References PNS::ITEM::DIFF_PAIR_T, and PNS::ITEM::Kind().
|
inline |
Definition at line 461 of file pns_diff_pair.h.
References SHAPE_LINE_CHAIN::Clear(), m_n, and m_p.
|
inlineoverridevirtual |
Return the number of segments that were assembled together to form this line.
Reimplemented from PNS::LINK_HOLDER.
Definition at line 338 of file pns_diff_pair.h.
References PNS::LINK_HOLDER::ClearLinks(), m_line_n, m_line_p, and PNS::LINK_HOLDER::m_links.
|
inlineoverridevirtual |
Return a deep copy of the item.
Implements PNS::ITEM.
Definition at line 332 of file pns_diff_pair.h.
|
inline |
Definition at line 479 of file pns_diff_pair.h.
References m_n.
Referenced by PNS::DIFF_PAIR_PLACER::attemptWalk(), BuildInitial(), PNS::DP_GATEWAYS::FitGateways(), PNS::DIFF_PAIR_PLACER::FixRoute(), PNS::DIFF_PAIR_PLACER::HasPlacedAnything(), PNS::DP_MEANDER_PLACER::HasPlacedAnything(), PNS::OPTIMIZER::mergeDpSegments(), PNS::OPTIMIZER::mergeDpStep(), PNS::DP_MEANDER_PLACER::Move(), and PNS::DIFF_PAIR_PLACER::routeHead().
|
inherited |
Check for a collision (clearance violation) with between us and item aOther.
Collision checking takes all PCB stuff into account (layers, nets, DRC rules). Optionally returns a minimum translation vector for force propagation algorithm.
aOther | is the item to check collision against. |
Definition at line 296 of file pns_item.cpp.
References PNS::ITEM::collideSimple().
Referenced by PNS::clipToOtherLine(), PNS::SHOVE::fixupViaCollisions(), PNS::SHOVE::onCollidingSolid(), PNS::NODE::DEFAULT_OBSTACLE_VISITOR::operator()(), PNS::OPTIMIZER::CACHE_VISITOR::operator()(), PNS::SHOVE::shoveIteration(), PNS::SHOVE::shoveLineFromLoneVia(), PNS::SHOVE::shoveLineToHullSet(), PNS::COMPONENT_DRAGGER::Start(), and PNS::verifyDpBypass().
|
privateinherited |
Definition at line 115 of file pns_item.cpp.
References SHAPE::Collide(), PNS::ITEM::collideSimple(), Edge_Cuts, PNS::NODE::GetClearance(), PNS::ROUTER::GetInstance(), PNS::ROUTER::GetInterface(), BOARD_ITEM::GetLayer(), PNS::NODE::GetRuleResolver(), PNS::ITEM::Hole(), PNS::ITEM::HOLE_T, PNS::ROUTER_IFACE::IsFlashedOnLayer(), PNS::ITEM::IsFreePad(), PNS::RULE_RESOLVER::IsInNetTie(), PNS::RULE_RESOLVER::IsKeepout(), PNS::RULE_RESOLVER::IsNetTieExclusion(), PNS::RULE_RESOLVER::IsNonPlatedSlot(), PNS::ITEM::Kind(), PNS::ITEM::Layers(), PNS::ITEM::LINE_T, PNS::OBSTACLE::m_clearance, PNS::COLLISION_SEARCH_OPTIONS::m_differentNetsOnly, PNS::OBSTACLE::m_distFirst, PNS::OBSTACLE::m_head, PNS::OBSTACLE::m_item, PNS::ITEM::m_kind, PNS::ITEM::m_layers, PNS::OBSTACLE::m_maxFanoutWidth, PNS::COLLISION_SEARCH_OPTIONS::m_overrideClearance, PNS::ITEM::m_parent, PNS::COLLISION_SEARCH_OPTIONS::m_useClearanceEpsilon, PNS::ITEM::Net(), PNS::HOLE::Net(), PNS::COLLISION_SEARCH_CONTEXT::obstacles, PNS::COLLISION_SEARCH_CONTEXT::options, PNS_LAYER_RANGE::Overlaps(), PNS::NODE::QueryEdgeExclusions(), PNS::ITEM::Shape(), and PNS::shouldWeConsiderHoleCollisions().
Referenced by PNS::ITEM::Collide(), and PNS::ITEM::collideSimple().
|
inlineinherited |
Definition at line 65 of file pns_link_holder.h.
References alg::contains(), and PNS::LINK_HOLDER::m_links.
Referenced by PNS::NODE::Add(), PNS::TOOL_BASE::checkSnap(), PCB_TUNING_PATTERN::initBaseLine(), and PNS::LINE::RemoveVia().
|
inlineprotectedinherited |
< Copy m_links from the line aParent.
List of segments in the owning NODE (ITEM::m_owner) that constitute this line, or NULL if the line is not a part of any node.
Definition at line 107 of file pns_link_holder.h.
References PNS::LINK_HOLDER::m_links.
Referenced by PNS::LINE::LINE(), and PNS::LINE::operator=().
double PNS::DIFF_PAIR::CoupledLength | ( | ) | const |
Definition at line 894 of file pns_diff_pair.cpp.
References CoupledSegmentPairs().
Referenced by PNS::coupledBypass(), CoupledLengthFactor(), PNS::OPTIMIZER::mergeDpStep(), and PNS::DIFF_PAIR_PLACER::tryWalkDp().
Definition at line 929 of file pns_diff_pair.cpp.
References std::abs(), SEG::ApproxParallel(), PNS::commonParallelProjection(), SEG::Distance(), SEG::Length(), m_gapConstraint, m_width, and RANGED_NUM< T >::Matches().
int64_t PNS::DIFF_PAIR::CoupledLength | ( | const SHAPE_LINE_CHAIN & | aP, |
const SHAPE_LINE_CHAIN & | aN | ||
) | const |
Definition at line 869 of file pns_diff_pair.cpp.
References std::abs(), SEG::ApproxParallel(), PNS::commonParallelProjection(), SHAPE_LINE_CHAIN::CSegment(), SEG::Distance(), SEG::Length(), m_gapConstraint, m_width, RANGED_NUM< T >::Matches(), and SHAPE_LINE_CHAIN::SegmentCount().
double PNS::DIFF_PAIR::CoupledLengthFactor | ( | ) | const |
Definition at line 909 of file pns_diff_pair.cpp.
References CoupledLength(), and TotalLength().
void PNS::DIFF_PAIR::CoupledSegmentPairs | ( | COUPLED_SEGMENTS_VEC & | aPairs | ) | const |
Definition at line 839 of file pns_diff_pair.cpp.
References std::abs(), SEG::ApproxParallel(), PNS::commonParallelProjection(), SEG::Distance(), m_gapConstraint, m_n, m_p, m_width, RANGED_NUM< T >::Matches(), SHAPE_LINE_CHAIN::Segment(), SHAPE_LINE_CHAIN::SegmentCount(), and SHAPE_LINE_CHAIN::Simplify().
Referenced by CoupledLength(), and PNS::DP_MEANDER_PLACER::Move().
|
inline |
Definition at line 478 of file pns_diff_pair.h.
References m_p.
Referenced by PNS::DIFF_PAIR_PLACER::attemptWalk(), BuildInitial(), PNS::DP_GATEWAYS::FitGateways(), PNS::DIFF_PAIR_PLACER::FixRoute(), PNS::DIFF_PAIR_PLACER::HasPlacedAnything(), PNS::DP_MEANDER_PLACER::HasPlacedAnything(), PNS::OPTIMIZER::mergeDpSegments(), PNS::OPTIMIZER::mergeDpStep(), PNS::DP_MEANDER_PLACER::Move(), and PNS::DIFF_PAIR_PLACER::routeHead().
|
inline |
Definition at line 473 of file pns_diff_pair.h.
References m_n, m_p, and SHAPE_LINE_CHAIN::SegmentCount().
DP_PRIMITIVE_PAIR PNS::DIFF_PAIR::EndingPrimitives | ( | ) |
Definition at line 769 of file pns_diff_pair.cpp.
References SEG::B, PNS::LINE::CSegment(), m_hasVias, m_via_n, m_via_p, NLine(), PLine(), PNS::SEGMENT::Seg(), and PNS::DP_PRIMITIVE_PAIR::SetAnchors().
Referenced by PNS::DIFF_PAIR_PLACER::FixRoute().
|
inline |
Definition at line 409 of file pns_diff_pair.h.
References m_hasVias.
Referenced by PNS::DIFF_PAIR_PLACER::FixRoute(), and PNS::DIFF_PAIR_PLACER::UpdateSizes().
|
virtualinherited |
Reimplemented in PNS::SEGMENT, and PNS::VIA.
Definition at line 329 of file pns_item.cpp.
References PNS_LAYER_RANGE::End(), PNS::ROUTER::GetInstance(), PNS::ROUTER::GetInterface(), PNS::ROUTER_IFACE::GetNetName(), PNS::ITEM::KindStr(), PNS::ITEM::m_layers, PNS::ITEM::Net(), and PNS_LAYER_RANGE::Start().
Referenced by PNS::NODE::Dump(), PNS::SEGMENT::Format(), PNS::VIA::Format(), and PNS::SHOVE::shoveIteration().
|
inline |
Definition at line 388 of file pns_diff_pair.h.
References m_gap.
Referenced by PNS::DIFF_PAIR_PLACER::attemptWalk(), PNS::DP_MEANDER_PLACER::Move(), PNS::DP_MEANDER_PLACER::Start(), and PNS::MEANDER_SKEW_PLACER::Start().
|
inline |
Definition at line 487 of file pns_diff_pair.h.
References m_gapConstraint.
Referenced by PNS::findCoupledVertices().
|
inlineinherited |
Erase the linking information. Used to detach the line from the owning node.
Definition at line 70 of file pns_link_holder.h.
References PNS::LINK_HOLDER::m_links.
Referenced by PNS::LINE_PLACER::removeLoops(), PNS::TOPOLOGY::SimplifyLine(), PNS::DP_MEANDER_PLACER::Start(), and PNS::MEANDER_SKEW_PLACER::Start().
|
inlinevirtualinherited |
Reimplemented in PNS::SOLID, PNS::VIA, and PNS::VVIA.
Definition at line 290 of file pns_item.h.
Referenced by PNS::NODE::Commit(), PNS::NODE::doRemove(), PNS::SHOVE::getClearance(), and PNS::WALKAROUND::RestrictToCluster().
|
inlinevirtualinherited |
Reimplemented in PNS::VIA.
Definition at line 239 of file pns_item.h.
Referenced by PNS::ITEM::RelevantShapeLayers().
|
inlinevirtualinherited |
Reimplemented in PNS::SOLID, and PNS::VIA.
Definition at line 291 of file pns_item.h.
Referenced by PNS::ITEM::collideSimple(), PNS::NODE::Commit(), PNS::NODE::doRemove(), PNS::SHOVE::getClearance(), PNS::WALKAROUND::RestrictToCluster(), ROUTER_PREVIEW_ITEM::ROUTER_PREVIEW_ITEM(), and ROUTER_PREVIEW_ITEM::Update().
|
inlinevirtualinherited |
Reimplemented in PNS::ARC, PNS::SEGMENT, PNS::HOLE, PNS::SOLID, and PNS::VIA.
Definition at line 161 of file pns_item.h.
|
inlineinherited |
Definition at line 288 of file pns_item.h.
References PNS::ITEM::m_isCompoundShapePrimitive.
|
inlineinherited |
Definition at line 275 of file pns_item.h.
References PNS::ITEM::m_isFreePad, and PNS::ITEM::ParentPadVia().
Referenced by PNS::ITEM::collideSimple().
|
inlineinherited |
Check if the segment aLink is a part of the line.
Definition at line 59 of file pns_link_holder.h.
References PNS::LINK_HOLDER::m_links.
Referenced by PNS::NODE::Add(), PNS::LINE::ClipVertexRange(), PNS::TOPOLOGY::followTrivialPath(), PNS::LINE::IsLinkedChecked(), NLine(), PLine(), PNS::SHOVE::pushLineStack(), PNS::LINE::Rank(), PNS::OPTIMIZER::removeCachedSegments(), PNS::LINK_HOLDER::ShowLinks(), and PNS::TOPOLOGY::SimplifyLine().
|
inlineinherited |
Definition at line 265 of file pns_item.h.
References PNS::ITEM::Marker(), and PNS::MK_LOCKED.
Referenced by ROUTER_TOOL::InlineBreakTrack(), PNS::JOINT::IsLineCorner(), PNS::JOINT::NextSegment(), ROUTER_TOOL::performDragging(), and PNS::SHOVE::pushOrShoveVia().
|
inlineinherited |
Definition at line 271 of file pns_item.h.
References PNS::ITEM::m_routable.
Referenced by PNS::NODE::addSolid(), and PNS::NODE::removeSolidIndex().
|
inlineinherited |
Definition at line 282 of file pns_item.h.
References PNS::ITEM::m_isVirtual.
Referenced by PNS_KICAD_IFACE::DisplayItem(), PNS::NODE::GetClearance(), PNS::JOINT::NextSegment(), and PNS::NODE::QueryColliding().
|
inlineinherited |
Return the type (kind) of the item.
Definition at line 170 of file pns_item.h.
References PNS::ITEM::m_kind.
Referenced by PNS::NODE::add(), PNS::TOPOLOGY::AssembleDiffPair(), PNS::NODE::AssembleLine(), PNS::TOPOLOGY::AssembleTrivialPath(), PNS::OPTIMIZER::CacheRemove(), PNS::NODE::CheckColliding(), PNS::ARC::ClassOf(), ClassOf(), PNS::LINE::ClassOf(), PNS::SEGMENT::ClassOf(), PNS::SOLID::ClassOf(), PNS::VIA::ClassOf(), PNS::ITEM::collideSimple(), comparePnsItems(), PNS::OPTIMIZER::computeBreakouts(), PNS_KICAD_IFACE::createBoardItem(), PNS::DIFF_PAIR_PLACER::FindDpPrimitivePair(), PNS::NODE::followLine(), PNS_PCBNEW_RULE_RESOLVER::getBoardItem(), PNS::getDanglingAnchor(), PNS::MEANDER_PLACER_BASE::getSnappedStartPoint(), PNS_KICAD_IFACE_BASE::ImportSizes(), PNS_KICAD_IFACE_BASE::inheritTrackWidth(), PNS_KICAD_IFACE::modifyBoardItem(), PNS::JOINT::NextSegment(), PNS::OPTIMIZER::CACHE_VISITOR::operator()(), ROUTER_TOOL::performDragging(), PNS::INDEX::Query(), PNS::NODE::Remove(), PNS::SEGMENT::SEGMENT(), PNS::SHOVE::shoveIteration(), PNS::OPTIMIZER::smartPadsSingle(), PNS::TOOL_BASE::snapToItem(), PNS::LINE_PLACER::Start(), PNS::DRAGGER::Start(), ROUTER_PREVIEW_ITEM::Update(), and PNS::LINE_PLACER::UpdateSizes().
|
inherited |
Definition at line 306 of file pns_item.cpp.
References PNS::ITEM::ARC_T, PNS::ITEM::DIFF_PAIR_T, PNS::ITEM::HOLE_T, PNS::ITEM::JOINT_T, PNS::ITEM::LINE_T, PNS::ITEM::m_kind, PNS::ITEM::SEGMENT_T, PNS::ITEM::SOLID_T, and PNS::ITEM::VIA_T.
Referenced by PNS::ITEM::Format(), PNS::TOOL_BASE::pickSingleItem(), and PNS::TOOL_BASE::updateEndItem().
|
inlinevirtualinherited |
Definition at line 203 of file pns_item.h.
References PNS::ITEM::Layers(), and PNS_LAYER_RANGE::Start().
Referenced by PNS::TOPOLOGY::AssembleTuningPath(), PNS::clipToOtherLine(), PNS::DRAGGER::CurrentLayer(), PNS::OPTIMIZER::fanoutCleanup(), PNS::SHOVE::fixupViaCollisions(), PNS_KICAD_IFACE_BASE::ImportSizes(), PNS_PCBNEW_RULE_RESOLVER::IsKeepout(), PNS_PCBNEW_RULE_RESOLVER::IsNetTieExclusion(), PNS::MEANDER_PLACER_BASE::lineLength(), PNS::ROUTER::markViolations(), PNS::ROUTER::movePlacing(), PNS::NODE::NearestObstacle(), PNS::SHOVE::onCollidingSegment(), PNS::SHOVE::onCollidingSolid(), PNS::SHOVE::onCollidingVia(), PNS::SHOVE::onReverseCollidingVia(), PNS::OPTIMIZER::CACHE_VISITOR::operator()(), PNS::LINE_PLACER::rhMarkObstacles(), PNS::OPTIMIZER::runSmartPads(), PNS::SHOVE::shoveIteration(), PNS::SHOVE::shoveLineFromLoneVia(), PNS::SHOVE::shoveLineToHullSet(), PNS::SHOVE::ShoveObstacleLine(), PNS::COMPONENT_DRAGGER::Start(), and PNS::verifyDpBypass().
|
inlineinherited |
Definition at line 199 of file pns_item.h.
References PNS::ITEM::m_layers.
Referenced by PNS::INDEX::Add(), PNS::NODE::Add(), PNS::NODE::addArc(), PNS::NODE::addSegment(), PNS::NODE::addSolid(), PNS::NODE::addVia(), PNS::ARC::ARC(), PNS::TOPOLOGY::AssembleDiffPair(), PNS::NODE::AssembleLine(), PNS::KEEP_TOPOLOGY_CONSTRAINT::Check(), PNS_PCBNEW_RULE_RESOLVER::Clearance(), MOCK_RULE_RESOLVER::Clearance(), PNS::HOLE::Clone(), PNS::VIA::Clone(), PNS::ITEM::collideSimple(), comparePnsItems(), PNS_KICAD_IFACE::createBoardItem(), PNS::DP_MEANDER_PLACER::CurrentLayer(), PNS::MEANDER_PLACER::CurrentLayer(), PNS::DIFF_PAIR_PLACER::FindDpPrimitivePair(), PNS::NODE::FindJoint(), PNS::NODE::FindLinesBetweenJoints(), PNS::NODE::findRedundantArc(), PNS::NODE::findRedundantSegment(), PNS::NODE::FixupVirtualVias(), PNS::ROUTER::getNearestRatnestAnchor(), ROUTER_TOOL::getStartLayer(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), PNS::ITEM::Layer(), PNS::ITEM::LayersOverlap(), PNS::LINE::LINE(), PNS::NODE::LockJoint(), PNS::VIA::MakeHandle(), PNS::ROUTER::markViolations(), PNS::TOPOLOGY::NearestUnconnectedAnchorPoint(), PNS::JOINT::NextSegment(), PNS::SHOVE::onCollidingSolid(), PNS::VIA::operator=(), PNS::TOOL_BASE::pickSingleItem(), PNS::INDEX::Query(), PNS::INDEX::Remove(), PNS::NODE::removeArcIndex(), PNS::NODE::removeSegmentIndex(), PNS::NODE::removeSolidIndex(), PNS::NODE::removeViaIndex(), PNS_LOG_PLAYER::ReplayLog(), PNS::SEGMENT::SEGMENT(), PNS::LINE_PLACER::SetLayer(), PNS::SHOVE::shoveIteration(), PNS::COMPONENT_DRAGGER::Start(), ROUTER_PREVIEW_ITEM::Update(), PNS::TOOL_BASE::updateEndItem(), updateLine(), PNS::TOOL_BASE::updateStartItem(), and PNS::VIA::VIA().
|
inlineinherited |
Return true if the set of layers spanned by aOther overlaps our layers.
Definition at line 208 of file pns_item.h.
References PNS::ITEM::Layers(), and PNS_LAYER_RANGE::Overlaps().
Referenced by PNS::MEANDER_PLACER_BASE::lineLength(), PNS::SHOVE::onCollidingArc(), PNS::SHOVE::onCollidingSegment(), PNS::NODE::rebuildJoint(), and PNS::SHOVE::ShoveObstacleLine().
|
inlineinherited |
Definition at line 40 of file pns_link_holder.h.
References alg::contains(), and PNS::LINK_HOLDER::m_links.
Referenced by PNS::NODE::Add(), PNS::NODE::AssembleLine(), and PNS::LINE::LinkVia().
|
inlineinherited |
Definition at line 84 of file pns_link_holder.h.
References PNS::LINK_HOLDER::m_links.
Referenced by PNS::LINE::IsLinkedChecked(), PNS::LINE_PLACER::removeLoops(), PNS::SHOVE::replaceLine(), PNS::SHOVE::Run(), and PNS::SHOVE::runOptimizer().
|
inlineinherited |
Definition at line 56 of file pns_link_holder.h.
References PNS::LINK_HOLDER::m_links.
Referenced by PNS::TOPOLOGY::AssembleDiffPair(), PNS::SHOVE::findRootLine(), PNS::TOPOLOGY::followTrivialPath(), PNS::SHOVE::popLineStack(), PNS::NODE::Remove(), PNS::OPTIMIZER::removeCachedSegments(), PCB_TUNING_PATTERN::removeToBaseline(), PNS::SHOVE::replaceLine(), PNS::COMPONENT_DRAGGER::Start(), PNS::SHOVE::touchRootLine(), and PNS::SHOVE::unwindLineStack().
|
inlineinherited |
Definition at line 57 of file pns_link_holder.h.
References PNS::LINK_HOLDER::m_links.
|
inlinevirtualinherited |
Reimplemented in PNS::LINE.
Definition at line 248 of file pns_item.h.
References PNS::ITEM::m_marker.
|
inlinevirtualinherited |
Reimplemented in PNS::LINE.
Definition at line 250 of file pns_item.h.
References PNS::ITEM::m_marker.
Referenced by PNS::ARC::ARC(), PNS::ITEM::IsLocked(), PNS::SHOVE::pushOrShoveVia(), and ROUTER_PREVIEW_ITEM::Update().
|
inlinevirtualinherited |
Reimplemented in PNS::HOLE, and PNS::JOINT.
Definition at line 197 of file pns_item.h.
References PNS::ITEM::m_net.
Referenced by PNS::INDEX::Add(), PNS::NODE::Add(), PNS::NODE::addArc(), PNS::NODE::addSegment(), PNS::NODE::addSolid(), PNS::NODE::addVia(), PNS::ARC::ARC(), PNS::TOPOLOGY::AssembleCluster(), PNS::TOPOLOGY::AssembleDiffPair(), PNS::NODE::AssembleLine(), PNS::LINE_PLACER::buildInitialLine(), PNS::KEEP_TOPOLOGY_CONSTRAINT::Check(), PNS::VIA::Clone(), PNS::ITEM::collideSimple(), comparePnsItems(), PNS_KICAD_IFACE::createBoardItem(), PNS::DRAGGER::CurrentNets(), PNS::MEANDER_PLACER::CurrentNets(), DIFF_PAIR(), PNS_PCBNEW_RULE_RESOLVER::DpNetPair(), PNS::OPTIMIZER::fanoutCleanup(), PNS::DIFF_PAIR_PLACER::FindDpPrimitivePair(), PNS::NODE::FindJoint(), PNS::NODE::findRedundantArc(), PNS::NODE::findRedundantSegment(), PNS::LINE_PLACER::FixRoute(), PNS::ITEM::Format(), PNS_PCBNEW_RULE_RESOLVER::getBoardItem(), PNS_KICAD_IFACE_BASE::ImportSizes(), PNS_PCBNEW_RULE_RESOLVER::IsNetTieExclusion(), PNS::ROUTER::isStartingPointRoutable(), PNS::LINE::LINE(), PNS::NODE::LockJoint(), PNS::VIA::MakeHandle(), PNS::LINE_PLACER::Move(), PNS::MEANDER_SKEW_PLACER::Move(), PNS::HOLE::Net(), PNS::JOINT::NextSegment(), PNS::VIA::operator=(), PNS::MEANDER_SKEW_PLACER::origPathLength(), ROUTER_TOOL::performDragging(), ROUTER_TOOL::prepareInteractive(), PNS::NODE::rebuildJoint(), PNS::INDEX::Remove(), PNS::NODE::removeArcIndex(), PNS::NODE::removeSegmentIndex(), PNS::NODE::removeSolidIndex(), PNS::NODE::removeViaIndex(), PNS::SHOVE::Run(), PNS::OPTIMIZER::runSmartPads(), PNS::SEGMENT::SEGMENT(), PNS::shouldWeConsiderHoleCollisions(), PNS::SHOVE::shoveIteration(), PNS::DIFF_PAIR_PLACER::Start(), PNS::LINE_PLACER::Start(), PNS::MEANDER_SKEW_PLACER::Start(), PCB_TUNING_PATTERN::Update(), and PNS::VIA::VIA().
|
inline |
Definition at line 431 of file pns_diff_pair.h.
References m_net_n.
Referenced by PNS::DP_MEANDER_PLACER::CurrentNets().
|
inline |
Definition at line 426 of file pns_diff_pair.h.
References m_net_p.
Referenced by PNS::DP_MEANDER_PLACER::CurrentNets(), PNS::MEANDER_SKEW_PLACER::Move(), PNS::MEANDER_SKEW_PLACER::origPathLength(), and PNS::MEANDER_SKEW_PLACER::Start().
|
inline |
Definition at line 444 of file pns_diff_pair.h.
References PNS::LINK_HOLDER::IsLinked(), m_line_n, m_n, m_net_n, m_via_n, and updateLine().
Referenced by PNS::DIFF_PAIR_PLACER::attemptWalk(), PNS::checkDpColliding(), PNS::DP_MEANDER_PLACER::CheckFit(), EndingPrimitives(), PNS::DIFF_PAIR_PLACER::FixRoute(), PNS::DP_MEANDER_PLACER::FixRoute(), PNS::DIFF_PAIR_PLACER::rhMarkObstacles(), PNS::DIFF_PAIR_PLACER::rhShoveOnly(), PNS::DP_MEANDER_PLACER::Start(), PNS::MEANDER_SKEW_PLACER::Start(), PNS::DIFF_PAIR_PLACER::Traces(), PNS::DP_MEANDER_PLACER::Traces(), PNS::DIFF_PAIR_PLACER::updateLeadingRatLine(), and PNS::verifyDpBypass().
|
inlineinherited |
Definition at line 178 of file pns_item.h.
References PNS::ITEM::m_kind.
Referenced by PNS::DP_PRIMITIVE_PAIR::anchorDirection(), PNS::TOPOLOGY::AssembleCluster(), PNS::TOPOLOGY::AssembleTrivialPath(), PNS::ROUTER::BreakSegmentOrArc(), ROUTER_TOOL::breakTrack(), PNS::DP_GATEWAYS::BuildFromPrimitivePair(), PNS::ChangedArea(), PNS::TOOL_BASE::checkSnap(), PNS::DP_PRIMITIVE_PAIR::CursorOrientation(), PNS::DP_PRIMITIVE_PAIR::Directional(), PNS_KICAD_IFACE::DisplayItem(), PNS::OPTIMIZER::fanoutCleanup(), PNS::SHOVE::fixupViaCollisions(), ROUTER_TOOL::InlineDrag(), isHole(), PNS::MEANDER_PLACER_BASE::lineLength(), PNS::JOINT::NextSegment(), PNS::SHOVE::onCollidingVia(), PNS::NODE::DEFAULT_OBSTACLE_VISITOR::operator()(), PCB_TUNING_PATTERN::recoverBaseline(), PNS_KICAD_IFACE::RemoveItem(), PNS_KICAD_IFACE_GENERATOR::RemoveItem(), PNS::SHOVE::replaceItems(), PNS::LINE_PLACER::SetLayer(), PNS::shouldWeConsiderHoleCollisions(), PNS::SHOVE::shoveIteration(), PNS::LINE_PLACER::simplifyNewLine(), PNS::LINE_PLACER::SplitAdjacentArcs(), PNS::LINE_PLACER::SplitAdjacentSegments(), PNS::DP_MEANDER_PLACER::Start(), PNS::MEANDER_PLACER::Start(), PNS::MEANDER_SKEW_PLACER::Start(), and PNS::SHOVE::unwindLineStack().
|
inlineinherited |
Return the owner of this item, or NULL if there's none.
Definition at line 71 of file pns_item.h.
References PNS::OWNABLE_ITEM::m_owner.
Referenced by PNS_PCBNEW_RULE_RESOLVER::Clearance(), PNS_KICAD_IFACE_BASE::inheritTrackWidth(), PNS::LINE_PLACER::Move(), PNS::ITEM::OwningNode(), PNS::NODE::Remove(), and PNS::LINE_PLACER::rhShoveOnly().
|
virtualinherited |
Definition at line 345 of file pns_item.cpp.
References PNS::OWNABLE_ITEM::Owner(), and PNS::ITEM::ParentPadVia().
Referenced by PNS::SHOVE::shoveIteration().
|
inlineinherited |
Definition at line 189 of file pns_item.h.
References PNS::ITEM::m_parent.
Referenced by PNS::HOLE::BoardItem(), PNS_KICAD_IFACE::createBoardItem(), PNS_KICAD_IFACE::DisplayItem(), PNS_KICAD_IFACE::HideItem(), isCopper(), PNS_PCBNEW_RULE_RESOLVER::IsDrilledHole(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), PNS_KICAD_IFACE::IsItemVisible(), PNS_PCBNEW_RULE_RESOLVER::IsKeepout(), PNS_PCBNEW_RULE_RESOLVER::IsNonPlatedSlot(), PNS_KICAD_IFACE::modifyBoardItem(), PNS_KICAD_IFACE::RemoveItem(), PNS_KICAD_IFACE_GENERATOR::RemoveItem(), PNS::SHOVE::shoveIteration(), and PNS::LINE_PLACER::Start().
|
inlinevirtualinherited |
Reimplemented in PNS::HOLE.
Definition at line 280 of file pns_item.h.
Referenced by PNS::ITEM::IsFreePad(), PNS_PCBNEW_RULE_RESOLVER::IsNonPlatedSlot(), and PNS::ITEM::OwningNode().
|
inline |
Definition at line 436 of file pns_diff_pair.h.
References PNS::LINK_HOLDER::IsLinked(), m_line_p, m_net_p, m_p, m_via_p, and updateLine().
Referenced by PNS::DIFF_PAIR_PLACER::attemptWalk(), PNS::checkDpColliding(), PNS::DP_MEANDER_PLACER::CheckFit(), EndingPrimitives(), PNS::DIFF_PAIR_PLACER::FixRoute(), PNS::DP_MEANDER_PLACER::FixRoute(), PNS::DIFF_PAIR_PLACER::propagateDpHeadForces(), PNS::DIFF_PAIR_PLACER::rhMarkObstacles(), PNS::DIFF_PAIR_PLACER::rhShoveOnly(), PNS::DP_MEANDER_PLACER::Start(), PNS::MEANDER_SKEW_PLACER::Start(), PNS::DIFF_PAIR_PLACER::Traces(), PNS::DP_MEANDER_PLACER::Traces(), PNS::DIFF_PAIR_PLACER::updateLeadingRatLine(), and PNS::verifyDpBypass().
|
inlinevirtualinherited |
Reimplemented in PNS::LINE.
Definition at line 253 of file pns_item.h.
References PNS::ITEM::m_rank.
Referenced by PNS::ARC::ARC(), PNS::LINE::LINE(), PNS::SHOVE::onCollidingSolid(), and PNS::SHOVE::shoveIteration().
|
inherited |
Returns the set of layers on which either this or the other item can have a unique shape.
Use this to loop over layers when hit-testing objects that can have different shapes on each layer (currently only VIA)
Definition at line 94 of file pns_item.cpp.
References PNS::ITEM::HasUniqueShapeLayers(), and PNS::ITEM::UniqueShapeLayers().
Referenced by PNS::SHOVE::onCollidingVia(), PNS::SHOVE::onReverseCollidingVia(), PNS::DIFF_PAIR_PLACER::propagateDpHeadForces(), and PNS::VIA::PushoutForce().
|
inline |
Definition at line 402 of file pns_diff_pair.h.
References m_hasVias, m_line_n, m_line_p, and PNS::LINE::RemoveVia().
Referenced by PNS::DIFF_PAIR_PLACER::routeHead().
|
inline |
Definition at line 382 of file pns_diff_pair.h.
References m_gap, and m_gapConstraint.
Referenced by PNS::TOPOLOGY::AssembleDiffPair(), PNS::DP_GATEWAYS::FitGateways(), PNS::DIFF_PAIR_PLACER::routeHead(), PNS::DP_MEANDER_PLACER::Start(), PNS::MEANDER_SKEW_PLACER::Start(), and PNS::DIFF_PAIR_PLACER::UpdateSizes().
|
inlinevirtualinherited |
Reimplemented in PNS::SOLID, and PNS::VIA.
Definition at line 292 of file pns_item.h.
|
inlineinherited |
Definition at line 287 of file pns_item.h.
References PNS::ITEM::m_isCompoundShapePrimitive.
|
inlineinherited |
Definition at line 273 of file pns_item.h.
References PNS::ITEM::m_isFreePad.
|
inlineinherited |
Definition at line 202 of file pns_item.h.
References PNS::ITEM::m_layers.
Referenced by PNS::LINE_PLACER::buildInitialLine(), PNS::LINE_PLACER::FixRoute(), PNS_KICAD_IFACE_BASE::ImportSizes(), PNS::LINE_PLACER::initPlacement(), PNS::ROUTER::isStartingPointRoutable(), PNS::DIFF_PAIR_PLACER::propagateDpHeadForces(), PCB_TUNING_PATTERN::recoverBaseline(), PNS::DIFF_PAIR_PLACER::routeHead(), PNS::LINE_PLACER::SetLayer(), PNS::LINE_PLACER::UnfixRoute(), and updateLine().
|
inlineinherited |
Definition at line 200 of file pns_item.h.
References PNS::ITEM::m_layers.
Referenced by PNS::TOPOLOGY::AssembleDiffPair(), PNS::NODE::AssembleLine(), PNS::HOLE::Clone(), PNS::VIA::Clone(), PNS::HOLE::MakeCircularHole(), PNS::VIA::operator=(), PNS_LOG_FILE::parseCommonPnsProps(), PNS::SOLID::SetHole(), PNS::VIA::SetHole(), and PNS::VIA::VIA().
|
inlineinherited |
Definition at line 196 of file pns_item.h.
References PNS::ITEM::m_net.
Referenced by PNS::LINE::AppendVia(), PNS::NODE::AssembleLine(), PNS::LINE_PLACER::buildInitialLine(), PNS::VIA::Clone(), PCB_TUNING_PATTERN::EditStart(), PNS::LINE_PLACER::FixRoute(), PNS_KICAD_IFACE_BASE::ImportSizes(), PNS::LINE_PLACER::initPlacement(), PNS::ROUTER::isStartingPointRoutable(), PNS::LINE::LINE(), PNS::LINE::operator=(), PNS::VIA::operator=(), PNS_LOG_FILE::parseCommonPnsProps(), PCB_TUNING_PATTERN::recoverBaseline(), updateLine(), and PNS::VIA::VIA().
|
inline |
Definition at line 367 of file pns_diff_pair.h.
References m_net_n, and m_net_p.
Referenced by PNS::DIFF_PAIR_PLACER::routeHead(), and PNS::DIFF_PAIR_PLACER::Start().
|
inlineinherited |
Set the node that owns this item.
An item can belong to a single NODE or be unowned.
Definition at line 76 of file pns_item.h.
References PNS::OWNABLE_ITEM::m_owner.
Referenced by PNS::ITEM_SET::Add(), PNS::NODE::addArc(), PNS::NODE::addHole(), PNS::NODE::addSegment(), PNS::NODE::addSolid(), PNS::NODE::addVia(), PNS::LINE::AppendVia(), PNS::NODE::AssembleLine(), PNS::HOLE::Clone(), PNS::NODE::Commit(), PNS::NODE::doRemove(), PNS::LINE::LINE(), PNS::LINE::operator=(), PNS::ITEM_SET::Prepend(), PNS::NODE::Remove(), PNS::SOLID::SetHole(), and PNS::VIA::SetHole().
|
inlineinherited |
Definition at line 188 of file pns_item.h.
References PNS::ITEM::m_parent.
Referenced by PNS_KICAD_IFACE::AddItem(), PNS_KICAD_IFACE_GENERATOR::AddItem(), and PCB_TUNING_PATTERN::EditStart().
|
inlinevirtualinherited |
Reimplemented in PNS::LINE.
Definition at line 252 of file pns_item.h.
References PNS::ITEM::m_rank.
Referenced by PNS::NODE::Commit().
|
inlineinherited |
Definition at line 270 of file pns_item.h.
References PNS::ITEM::m_routable.
|
inline |
Definition at line 361 of file pns_diff_pair.h.
|
inline |
Definition at line 347 of file pns_diff_pair.h.
Referenced by PNS::DIFF_PAIR_PLACER::attemptWalk(), PNS::DP_GATEWAYS::FitGateways(), PNS::DIFF_PAIR_PLACER::FixRoute(), PNS::OPTIMIZER::mergeDpStep(), PNS::DP_MEANDER_PLACER::Move(), and PNS::DIFF_PAIR_PLACER::tryWalkDp().
|
inline |
Definition at line 414 of file pns_diff_pair.h.
References PNS::VIA::ALL_LAYERS, m_via_n, m_via_p, and PNS::VIA::SetDiameter().
Referenced by PNS::DIFF_PAIR_PLACER::UpdateSizes().
|
inline |
Definition at line 420 of file pns_diff_pair.h.
References m_via_n, m_via_p, and PNS::VIA::SetDrill().
Referenced by PNS::DIFF_PAIR_PLACER::UpdateSizes().
|
inline |
Definition at line 373 of file pns_diff_pair.h.
References m_n, m_p, m_width, and SHAPE_LINE_CHAIN::SetWidth().
Referenced by PNS::TOPOLOGY::AssembleDiffPair(), PNS::DIFF_PAIR_PLACER::routeHead(), and PNS::DIFF_PAIR_PLACER::UpdateSizes().
|
inlinevirtualinherited |
Return the geometrical shape of the item.
Used for collision detection and spatial indexing.
aLayer | is the layer to query shape for (items may have different shapes on different layers) |
Reimplemented in PNS::ARC, PNS::HOLE, PNS::LINE, PNS::SEGMENT, PNS::SOLID, and PNS::VIA.
Definition at line 229 of file pns_item.h.
Referenced by PNS_TEST_DEBUG_DECORATOR::AddItem(), PNS::TOPOLOGY::AssembleCluster(), PNS::TOPOLOGY::AssembleDiffPair(), PNS::DP_GATEWAYS::BuildFromPrimitivePair(), PNS::ITEM::collideSimple(), PNS::OPTIMIZER::computeBreakouts(), PNS::OPTIMIZER::customBreakouts(), PNS_KICAD_IFACE::HideItem(), PNS::SHOVE::onCollidingVia(), PNS::HIT_VISITOR::operator()(), PNS::VIA::PushoutForce(), PNS::INDEX::Query(), ROUTER_PREVIEW_ITEM::ROUTER_PREVIEW_ITEM(), and ROUTER_PREVIEW_ITEM::Update().
|
inlineinherited |
Definition at line 89 of file pns_link_holder.h.
References PNS::LINK_HOLDER::IsLinked(), and PNS::LINK_HOLDER::m_links.
double PNS::DIFF_PAIR::Skew | ( | ) | const |
Definition at line 833 of file pns_diff_pair.cpp.
References SHAPE_LINE_CHAIN::Length(), m_n, and m_p.
Referenced by PNS::DIFF_PAIR_PLACER::tryWalkDp().
double PNS::DIFF_PAIR::TotalLength | ( | ) | const |
Definition at line 920 of file pns_diff_pair.cpp.
References SHAPE_LINE_CHAIN::Length(), m_n, and m_p.
Referenced by CoupledLengthFactor().
|
inlinevirtualinherited |
Return a list of layers that have unique (potentially different) shapes.
Reimplemented in PNS::VIA.
Definition at line 237 of file pns_item.h.
Referenced by PNS::ITEM::RelevantShapeLayers().
|
inlineinherited |
Return the list of links from the owning node that constitute this line (or NULL if the line is not linked).
Definition at line 47 of file pns_link_holder.h.
References alg::contains(), alg::delete_matching(), and PNS::LINK_HOLDER::m_links.
Referenced by PNS::LINE::RemoveVia(), and PNS::SHOVE::replaceLine().
|
inlinevirtualinherited |
Reimplemented in PNS::LINE.
Definition at line 249 of file pns_item.h.
References PNS::ITEM::m_marker.
Referenced by PNS::NODE::Commit(), and PNS::DRAGGER::Start().
|
inlineprivate |
Definition at line 493 of file pns_diff_pair.h.
References PNS::LINE::AppendVia(), PNS::ITEM::Layers(), m_hasVias, m_width, PNS::ITEM::SetLayer(), PNS::ITEM::SetNet(), PNS::LINE::SetShape(), and PNS::LINE::SetWidth().
|
inline |
Definition at line 380 of file pns_diff_pair.h.
References m_width.
Referenced by PNS::findCoupledVertices(), PNS::DP_MEANDER_PLACER::Move(), and PNS::DP_MEANDER_PLACER::Start().
|
private |
Definition at line 514 of file pns_diff_pair.h.
Referenced by DIFF_PAIR().
|
private |
Definition at line 511 of file pns_diff_pair.h.
Referenced by DIFF_PAIR(), Gap(), and SetGap().
|
private |
Definition at line 515 of file pns_diff_pair.h.
Referenced by BuildInitial(), CoupledLength(), CoupledSegmentPairs(), DIFF_PAIR(), GapConstraint(), and SetGap().
|
private |
Definition at line 508 of file pns_diff_pair.h.
Referenced by AppendVias(), EndingPrimitives(), EndsWithVias(), RemoveVias(), and updateLine().
|
protectedinherited |
Definition at line 315 of file pns_item.h.
Referenced by PNS::ITEM::IsCompoundShapePrimitive(), PNS::ITEM::ITEM(), and PNS::ITEM::SetIsCompoundShapePrimitive().
|
protectedinherited |
Definition at line 314 of file pns_item.h.
Referenced by PNS::ITEM::IsFreePad(), PNS::ITEM::ITEM(), and PNS::ITEM::SetIsFreePad().
|
protectedinherited |
Definition at line 313 of file pns_item.h.
Referenced by PNS::HOLE::Clone(), PNS::VIA::Clone(), PNS::ITEM::IsVirtual(), PNS::ITEM::ITEM(), PNS::VIA::operator=(), PNS::VIA::VIA(), and PNS::VVIA::VVIA().
|
protectedinherited |
Definition at line 303 of file pns_item.h.
Referenced by PNS::ITEM::collideSimple(), PNS::ITEM::ITEM(), PNS::ITEM::Kind(), PNS::ITEM::KindStr(), and PNS::ITEM::OfKind().
|
protectedinherited |
Definition at line 306 of file pns_item.h.
Referenced by PNS::ARC::ARC(), PNS::ARC::Clone(), PNS::SEGMENT::Clone(), PNS::VIA::Clone(), PNS::ITEM::collideSimple(), PNS::JOINT::Dump(), PNS::VIA::EffectiveLayer(), PNS::ITEM::Format(), PNS::ITEM::ITEM(), PNS::JOINT::JOINT(), PNS::ITEM::Layers(), PNS::LINE::LINE(), PNS::JOINT::Merge(), PNS::LINE::operator=(), PNS::JOINT::Overlaps(), PNS::SEGMENT::SEGMENT(), PNS::SOLID::SetHole(), PNS::VIA::SetHole(), PNS::ITEM::SetLayer(), PNS::ITEM::SetLayers(), PNS::VIA::SetStackMode(), PNS::VIA::UniqueShapeLayers(), and PNS::JOINT::Unlink().
|
private |
Definition at line 505 of file pns_diff_pair.h.
Referenced by ClearLinks(), NLine(), and RemoveVias().
|
private |
Definition at line 505 of file pns_diff_pair.h.
Referenced by ClearLinks(), PLine(), and RemoveVias().
|
protectedinherited |
Definition at line 114 of file pns_link_holder.h.
Referenced by PNS::LINK_HOLDER::ClearLinks(), ClearLinks(), PNS::LINE::ClipVertexRange(), PNS::LINK_HOLDER::ContainsLink(), PNS::LINK_HOLDER::copyLinks(), PNS::LINK_HOLDER::GetLink(), PNS::LINE::HasLockedSegments(), PNS::LINK_HOLDER::IsLinked(), PNS::LINK_HOLDER::Link(), PNS::LINK_HOLDER::LinkCount(), PNS::LINK_HOLDER::Links(), PNS::LINE::Mark(), PNS::LINE::Marker(), PNS::LINE::Rank(), PNS::LINE::Reverse(), PNS::LINE::SetRank(), PNS::LINK_HOLDER::ShowLinks(), PNS::LINK_HOLDER::Unlink(), and PNS::LINE::Unmark().
|
mutableprotectedinherited |
Definition at line 310 of file pns_item.h.
Referenced by PNS::ARC::ARC(), PNS::ARC::Clone(), PNS::HOLE::Clone(), PNS::SEGMENT::Clone(), PNS::VIA::Clone(), PNS::ITEM::ITEM(), PNS::LINE::LINE(), PNS::ITEM::Mark(), PNS::LINE::Mark(), PNS::ITEM::Marker(), PNS::LINE::Marker(), PNS::LINE::operator=(), PNS::VIA::operator=(), PNS::SEGMENT::SEGMENT(), PNS::ITEM::Unmark(), PNS::LINE::Unmark(), and PNS::VIA::VIA().
|
private |
Definition at line 513 of file pns_diff_pair.h.
Referenced by DIFF_PAIR().
|
protectedinherited |
Definition at line 308 of file pns_item.h.
Referenced by PNS::ITEM::ITEM(), PNS::LINE::LINE(), PNS::LINE::operator=(), and PNS::SOLID::SOLID().
|
private |
Definition at line 504 of file pns_diff_pair.h.
Referenced by Append(), BuildInitial(), CheckConnectionAngle(), Clear(), CN(), CoupledSegmentPairs(), DIFF_PAIR(), Empty(), NLine(), SetShape(), SetWidth(), Skew(), and TotalLength().
|
protectedinherited |
Definition at line 309 of file pns_item.h.
Referenced by PNS::LINE::AppendVia(), PNS::ARC::ARC(), PNS::ARC::Clone(), PNS::SEGMENT::Clone(), PNS::ITEM::ITEM(), PNS::LINE::LINE(), PNS::ITEM::Net(), PNS::HOLE::Net(), PNS::LINE::operator=(), PNS::SEGMENT::SEGMENT(), and PNS::ITEM::SetNet().
|
private |
Definition at line 509 of file pns_diff_pair.h.
Referenced by DIFF_PAIR(), NetN(), NLine(), and SetNets().
|
private |
Definition at line 509 of file pns_diff_pair.h.
Referenced by DIFF_PAIR(), NetP(), PLine(), and SetNets().
|
protectedinherited |
Definition at line 87 of file pns_item.h.
Referenced by PNS::OWNABLE_ITEM::BelongsTo(), PNS::ITEM::ITEM(), PNS::LINE::operator=(), PNS::OWNABLE_ITEM::Owner(), and PNS::OWNABLE_ITEM::SetOwner().
|
private |
Definition at line 504 of file pns_diff_pair.h.
Referenced by Append(), BuildInitial(), CheckConnectionAngle(), Clear(), CoupledSegmentPairs(), CP(), DIFF_PAIR(), Empty(), PLine(), SetShape(), SetWidth(), Skew(), and TotalLength().
|
protectedinherited |
Definition at line 305 of file pns_item.h.
Referenced by PNS::ITEM::BoardItem(), PNS::HOLE::BoardItem(), PNS::HOLE::Clone(), PNS::VIA::Clone(), PNS::ITEM::collideSimple(), PNS::ITEM::ITEM(), PNS::ITEM::Parent(), and PNS::ITEM::SetParent().
|
protectedinherited |
Definition at line 311 of file pns_item.h.
Referenced by PNS::ARC::ARC(), PNS::ARC::Clone(), PNS::HOLE::Clone(), PNS::SEGMENT::Clone(), PNS::VIA::Clone(), PNS::ITEM::ITEM(), PNS::LINE::LINE(), PNS::LINE::operator=(), PNS::VIA::operator=(), PNS::ITEM::Rank(), PNS::LINE::Rank(), PNS::SEGMENT::SEGMENT(), PNS::ITEM::SetRank(), PNS::LINE::SetRank(), and PNS::VIA::VIA().
|
protectedinherited |
Definition at line 312 of file pns_item.h.
Referenced by PNS::ITEM::IsRoutable(), PNS::ITEM::ITEM(), and PNS::ITEM::SetRoutable().
|
private |
Definition at line 506 of file pns_diff_pair.h.
Referenced by AppendVias(), EndingPrimitives(), NLine(), SetViaDiameter(), and SetViaDrill().
|
private |
Definition at line 506 of file pns_diff_pair.h.
Referenced by AppendVias(), EndingPrimitives(), PLine(), SetViaDiameter(), and SetViaDrill().
|
private |
Definition at line 512 of file pns_diff_pair.h.
Referenced by DIFF_PAIR().
|
private |
Definition at line 510 of file pns_diff_pair.h.
Referenced by CoupledLength(), CoupledSegmentPairs(), DIFF_PAIR(), SetWidth(), updateLine(), and Width().