KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS::JOINT Class Reference

A 2D point on a given set of layers and belonging to a certain net, that links together a number of board items. More...

#include <pns_joint.h>

Inheritance diagram for PNS::JOINT:
PNS::ITEM PNS::OWNABLE_ITEM PNS::ITEM_OWNER

Classes

struct  HASH_TAG
 Joints are hashed by their position, layers and net. More...
 
struct  JOINT_TAG_HASH
 

Public Types

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

 JOINT ()
 
 JOINT (const VECTOR2I &aPos, const PNS_LAYER_RANGE &aLayers, NET_HANDLE aNet=nullptr)
 
 JOINT (const JOINT &aB)
 
ITEM * Clone () const override
 Return a deep copy of the item.
 
bool IsLineCorner (bool aAllowLockedSegs=false) const
 Check if a joint connects two segments of the same net, layer, and width.
 
bool IsNonFanoutVia () const
 
bool IsStitchingVia () const
 
bool IsTrivialEndpoint () const
 
bool IsTraceWidthChange () const
 
void Link (ITEM *aItem)
 Link the joint to a given board item (when it's added to the NODE).
 
bool Unlink (ITEM *aItem)
 Unlink a given board item from the joint (upon its removal from a NODE)
 
LINKED_ITEM * NextSegment (LINKED_ITEM *aCurrent, bool aAllowLockedSegs=false) const
 For trivial joints, return the segment adjacent to (aCurrent).
 
VIA * Via () const
 
const HASH_TAG & Tag () const
 trivial accessors
 
const VECTOR2I & Pos () const
 
NET_HANDLE Net () const override
 
const std::vector< ITEM * > & LinkList () const
 
const ITEM_SET & CLinks () const
 
ITEM_SET & Links ()
 
int LinkCount (int aMask=-1) const
 
void Dump () const
 
bool operator== (const JOINT &rhs) const
 
void Merge (const JOINT &aJoint)
 
bool Overlaps (const JOINT &rhs) const
 
void Lock (bool aLock=true)
 
bool IsLocked () 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
 
void SetSourceItem (BOARD_ITEM *aSourceItem)
 
BOARD_ITEM * GetSourceItem () const
 
virtual BOARD_ITEM * BoardItem () const
 
void SetNet (NET_HANDLE aNet)
 
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
 
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
 

Protected Attributes

PnsKind m_kind
 
BOARD_ITEM * m_parent
 
BOARD_ITEM * m_sourceItem
 
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

bool collideSimple (const ITEM *aHead, const NODE *aNode, int aLayer, COLLISION_SEARCH_CONTEXT *aCtx) const
 

Private Attributes

HASH_TAG m_tag
 hash tag for unordered_multimap
 
ITEM_SET m_linkedItems
 list of items linked to this joint
 
bool m_locked
 locked (non-movable) flag
 

Detailed Description

A 2D point on a given set of layers and belonging to a certain net, that links together a number of board items.

A hash table of joints is used by the router to follow connectivity between the items.

Definition at line 42 of file pns_joint.h.

Member Enumeration Documentation

◆ PnsKind

enum PNS::ITEM::PnsKind
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 101 of file pns_item.h.

Constructor & Destructor Documentation

◆ JOINT() [1/3]

PNS::JOINT::JOINT ( )
inline

Definition at line 67 of file pns_joint.h.

References PNS::ITEM::ITEM(), PNS::ITEM::JOINT_T, m_locked, and m_tag.

Referenced by JOINT(), Merge(), operator==(), and Overlaps().

◆ JOINT() [2/3]

PNS::JOINT::JOINT ( const VECTOR2I & aPos,
const PNS_LAYER_RANGE & aLayers,
NET_HANDLE aNet = nullptr )
inline

Definition at line 70 of file pns_joint.h.

References PNS::ITEM::ITEM(), PNS::ITEM::JOINT_T, PNS::ITEM::m_layers, m_locked, and m_tag.

◆ JOINT() [3/3]

PNS::JOINT::JOINT ( const JOINT & aB)
inline

Member Function Documentation

◆ Anchor()

◆ AnchorCount()

virtual int PNS::ITEM::AnchorCount ( ) const
inlinevirtualinherited

Reimplemented in PNS::ARC, PNS::LINE, PNS::SEGMENT, PNS::SOLID, and PNS::VIA.

Definition at line 277 of file pns_item.h.

Referenced by PNS::TOPOLOGY::AssembleDiffPair().

◆ BelongsTo()

bool PNS::OWNABLE_ITEM::BelongsTo ( const ITEM_OWNER * aNode) const
inlineinherited
Returns
true if the item is owned by the node aNode.

Definition at line 82 of file pns_item.h.

References m_owner.

Referenced by PNS::NODE::addSolid(), PNS::NODE::addVia(), PNS::NODE::doRemove(), PNS::LINE::operator=(), PNS::NODE::Remove(), and PNS::NODE::~NODE().

◆ BoardItem()

virtual BOARD_ITEM * PNS::ITEM::BoardItem ( ) const
inlinevirtualinherited

◆ CLinks()

◆ Clone()

ITEM * PNS::JOINT::Clone ( ) const
inlineoverridevirtual

Return a deep copy of the item.

Implements PNS::ITEM.

Definition at line 90 of file pns_joint.h.

References PNS::ITEM::ITEM().

◆ Collide()

bool PNS::ITEM::Collide ( const ITEM * aHead,
const NODE * aNode,
int aLayer,
COLLISION_SEARCH_CONTEXT * aCtx = nullptr ) const
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.

Parameters
aHeadis the item to test for collision.
aNodeis the item to check for collision against.
aLayeris the layer to check for collision against.
aCtxis the collision search context.
Returns
true, if a collision was found.

Definition at line 305 of file pns_item.cpp.

References collideSimple(), and ITEM().

Referenced by BOOST_FIXTURE_TEST_CASE(), 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().

◆ collideSimple()

◆ Dump()

void PNS::JOINT::Dump ( ) const

Definition at line 1443 of file pns_node.cpp.

References LinkCount(), PNS::ITEM::m_layers, and m_tag.

◆ Format()

const std::string PNS::ITEM::Format ( ) const
virtualinherited

◆ GetSourceItem()

◆ HasHole()

virtual bool PNS::ITEM::HasHole ( ) const
inlinevirtualinherited

◆ HasUniqueShapeLayers()

virtual bool PNS::ITEM::HasUniqueShapeLayers ( ) const
inlinevirtualinherited

Reimplemented in PNS::VIA.

Definition at line 256 of file pns_item.h.

Referenced by RelevantShapeLayers().

◆ Hole()

virtual HOLE * PNS::ITEM::Hole ( ) const
inlinevirtualinherited

◆ Hull()

virtual const SHAPE_LINE_CHAIN PNS::ITEM::Hull ( int aClearance = 0,
int aWalkaroundThickness = 0,
int aLayer = -1 ) const
inlinevirtualinherited

◆ IsCompoundShapePrimitive()

bool PNS::ITEM::IsCompoundShapePrimitive ( ) const
inlineinherited

Definition at line 305 of file pns_item.h.

References m_isCompoundShapePrimitive.

◆ IsFreePad()

bool PNS::ITEM::IsFreePad ( ) const
inlineinherited

◆ IsLineCorner()

bool PNS::JOINT::IsLineCorner ( bool aAllowLockedSegs = false) const
inline

Check if a joint connects two segments of the same net, layer, and width.

Parameters
aAllowLockedSegswill consider joints between locked and unlocked segments as trivial
Returns
true if the joint is a trivial line corner

Definition at line 102 of file pns_joint.h.

References PNS::ITEM::ARC_T, PNS::ITEM::IsLocked(), PNS::ITEM::ITEM(), m_linkedItems, PNS::ITEM::SEGMENT_T, and PNS::LINKED_ITEM::Width().

Referenced by PNS::PLACEMENT_ALGO::simplifyNewLine().

◆ IsLocked()

bool PNS::JOINT::IsLocked ( ) const
inline

Definition at line 361 of file pns_joint.h.

References m_locked.

Referenced by PNS::NODE::followLine(), Merge(), and PNS::SHOVE::pushOrShoveVia().

◆ IsNonFanoutVia()

bool PNS::JOINT::IsNonFanoutVia ( ) const
inline

◆ IsRoutable()

bool PNS::ITEM::IsRoutable ( ) const
inlineinherited

Definition at line 288 of file pns_item.h.

References m_routable.

Referenced by PNS::NODE::addSolid(), and PNS::NODE::removeSolidIndex().

◆ IsStitchingVia()

bool PNS::JOINT::IsStitchingVia ( ) const
inline

Definition at line 172 of file pns_joint.h.

References m_linkedItems, and PNS::ITEM::VIA_T.

◆ IsTraceWidthChange()

bool PNS::JOINT::IsTraceWidthChange ( ) const
inline

◆ IsTrivialEndpoint()

bool PNS::JOINT::IsTrivialEndpoint ( ) const
inline

Definition at line 177 of file pns_joint.h.

References m_linkedItems, and PNS::ITEM::SEGMENT_T.

Referenced by PNS::MULTI_DRAGGER::Start().

◆ IsVirtual()

bool PNS::ITEM::IsVirtual ( ) const
inlineinherited

◆ Kind()

◆ KindStr()

std::string PNS::ITEM::KindStr ( ) const
inherited

◆ Layer()

◆ Layers()

const PNS_LAYER_RANGE & PNS::ITEM::Layers ( ) const
inlineinherited

Definition at line 212 of file pns_item.h.

References 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::ARC::ARC(), PNS::TOPOLOGY::AssembleDiffPair(), PNS::NODE::AssembleLine(), BOOST_FIXTURE_TEST_CASE(), PNS::KEEP_TOPOLOGY_CONSTRAINT::Check(), MOCK_RULE_RESOLVER::Clearance(), PNS_PCBNEW_RULE_RESOLVER::Clearance(), PNS::HOLE::Clone(), PNS::VIA::Clone(), collideSimple(), comparePnsItems(), PNS_KICAD_IFACE::createBoardItem(), PNS::DIFF_PAIR_PLACER::findDpEndingPrimitives(), PNS::NODE::FindJoint(), PNS::NODE::FindLinesBetweenJoints(), PNS::NODE::findRedundantArc(), PNS::NODE::findRedundantArc(), PNS::NODE::findRedundantSegment(), PNS::NODE::findRedundantSegment(), PNS::NODE::FixupVirtualVias(), PNS::LOGGER::formatRouterItemAsJSON(), PNS::ROUTER::GetNearestRatnestAnchor(), ROUTER_TOOL::handleLayerSwitch(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), Layer(), LayersOverlap(), PNS::LINE::LINE(), PNS::NODE::LockJoint(), PNS::VIA::MakeHandle(), TEMP_CLEARANCE_CACHE_KEY::makeSide(), 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::SHOVE::shoveIteration(), PNS::COMPONENT_DRAGGER::Start(), PNS::DRAGGER::startDragArc(), ROUTER_PREVIEW_ITEM::Update(), PNS::DIFF_PAIR::updateLine(), and PNS::VIA::VIA().

◆ LayersOverlap()

bool PNS::ITEM::LayersOverlap ( const ITEM * aOther) const
inlineinherited

Return true if the set of layers spanned by aOther overlaps our layers.

Definition at line 221 of file pns_item.h.

References ITEM(), Layers(), and PNS_LAYER_RANGE::Overlaps().

Referenced by PNS::SHOVE::onCollidingArc(), PNS::SHOVE::onCollidingSegment(), PNS::NODE::rebuildJoint(), and PNS::SHOVE::ShoveObstacleLine().

◆ Link()

void PNS::JOINT::Link ( ITEM * aItem)
inline

Link the joint to a given board item (when it's added to the NODE).

Definition at line 215 of file pns_joint.h.

References PNS::ITEM::ITEM(), and m_linkedItems.

Referenced by PNS::NODE::linkJoint().

◆ LinkCount()

◆ LinkList()

◆ Links()

ITEM_SET & PNS::JOINT::Links ( )
inline

Definition at line 317 of file pns_joint.h.

References m_linkedItems.

◆ Lock()

void PNS::JOINT::Lock ( bool aLock = true)
inline

Definition at line 356 of file pns_joint.h.

References m_locked.

Referenced by PNS::NODE::LockJoint().

◆ Mark()

virtual void PNS::ITEM::Mark ( int aMarker) const
inlinevirtualinherited

Reimplemented in PNS::LINE.

Definition at line 265 of file pns_item.h.

References m_marker.

Referenced by BOOST_FIXTURE_TEST_CASE().

◆ Marker()

virtual int PNS::ITEM::Marker ( ) const
inlinevirtualinherited

Reimplemented in PNS::LINE.

Definition at line 267 of file pns_item.h.

References m_marker.

Referenced by PNS::ARC::ARC(), IsLocked(), PNS::SHOVE::pushOrShoveVia(), and ROUTER_PREVIEW_ITEM::Update().

◆ Merge()

void PNS::JOINT::Merge ( const JOINT & aJoint)
inline

◆ Net()

NET_HANDLE PNS::JOINT::Net ( ) const
inlineoverridevirtual

◆ NextSegment()

LINKED_ITEM * PNS::JOINT::NextSegment ( LINKED_ITEM * aCurrent,
bool aAllowLockedSegs = false ) const
inline

For trivial joints, return the segment adjacent to (aCurrent).

For non-trival ones, return NULL, indicating the end of line.

Definition at line 240 of file pns_joint.h.

References PNS::ITEM::ARC_T, PNS::ITEM::IsLocked(), PNS::ITEM::IsVirtual(), PNS::ITEM::ITEM(), PNS::ITEM::Kind(), PNS::ITEM::Layers(), m_linkedItems, PNS::ITEM::Net(), PNS::ITEM::OfKind(), PNS_LAYER_RANGE::Overlaps(), PNS::ITEM::SEGMENT_T, PNS::ITEM::SOLID_T, and PNS::ITEM::VIA_T.

Referenced by PNS::NODE::followLine().

◆ OfKind()

bool PNS::ITEM::OfKind ( int aKindMask) const
inlineinherited
Returns
true if the item's type matches the mask aKindMask.

Definition at line 181 of file pns_item.h.

References m_kind.

Referenced by RECOVERED_LAYER_IFACE::AddItem(), PNS::DP_PRIMITIVE_PAIR::anchorDirection(), PNS::TOPOLOGY::AssembleTrivialPath(), PNS::TOPOLOGY::AssembleTuningPath(), PNS::ROUTER::BreakSegmentOrArc(), PNS::DP_GATEWAYS::BuildFromPrimitivePair(), PNS::ChangedArea(), PNS::TOOL_BASE::checkSnap(), PNS_KICAD_IFACE::DisplayItem(), PNS::OPTIMIZER::fanoutCleanup(), PNS::DIFF_PAIR_PLACER::findDpMidtraceIntersection(), PNS::SHOVE::fixupViaCollisions(), PNS::TOPOLOGY::followTrivialPath(), PNS_KICAD_IFACE_BASE::GetLengthDelayCalculationItems(), PNS_VIEWER_IFACE::GetLengthDelayCalculationItems(), DIFF_PHASE_SKEW_TOOL::getNetPaths(), ROUTER_TOOL::InlineDrag(), PNS::DRAGGER::IsDragOrigin(), PNS_PCBNEW_RULE_RESOLVER::IsDrilledHole(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), isHole(), isHole(), PNS::LINE_PLACER::Move(), PNS::JOINT::NextSegment(), PNS::SHOVE::onCollidingVia(), PNS::NODE::DEFAULT_OBSTACLE_VISITOR::operator()(), ROUTER_TOOL::OptimizeSelected(), PCB_TUNING_PATTERN::recoverBaseline(), PNS_KICAD_IFACE::RemoveItem(), PNS_KICAD_IFACE_GENERATOR::RemoveItem(), PNS::SHOVE::replaceItems(), PNS::shouldWeConsiderHoleCollisions(), PNS::SHOVE::shoveIteration(), PNS::PLACEMENT_ALGO::simplifyNewLine(), PNS::SplitAdjacentArcs(), PNS::SplitAdjacentSegments(), PNS::DP_MEANDER_PLACER::Start(), PNS::MEANDER_PLACER::Start(), PNS::MEANDER_SKEW_PLACER::Start(), PNS::SHOVE::unwindLineStack(), and PNS::SHOVE::unwindLineStack().

◆ operator==()

bool PNS::JOINT::operator== ( const JOINT & rhs) const
inline

Definition at line 329 of file pns_joint.h.

References JOINT(), m_tag, PNS::JOINT::HASH_TAG::net, and PNS::JOINT::HASH_TAG::pos.

◆ Overlaps()

bool PNS::JOINT::Overlaps ( const JOINT & rhs) const
inline

Definition at line 350 of file pns_joint.h.

References JOINT(), PNS::ITEM::m_layers, m_tag, PNS::JOINT::HASH_TAG::net, and PNS::JOINT::HASH_TAG::pos.

Referenced by Merge().

◆ Owner()

const ITEM_OWNER * PNS::OWNABLE_ITEM::Owner ( ) const
inlineinherited

Return the owner of this item, or NULL if there's none.

Definition at line 72 of file pns_item.h.

References m_owner.

Referenced by PNS_PCBNEW_RULE_RESOLVER::Clearance(), PNS_KICAD_IFACE_BASE::inheritTrackWidthAndDpGap(), PNS::LINE_PLACER::Move(), PNS::ITEM::OwningNode(), and PNS::NODE::Remove().

◆ OwningNode()

const NODE * PNS::ITEM::OwningNode ( ) const
virtualinherited

Definition at line 354 of file pns_item.cpp.

References PNS::OWNABLE_ITEM::Owner(), and ParentPadVia().

Referenced by PNS::SHOVE::shoveIteration().

◆ Parent()

◆ ParentPadVia()

virtual ITEM * PNS::ITEM::ParentPadVia ( ) const
inlinevirtualinherited

◆ Pos()

◆ Rank()

virtual int PNS::ITEM::Rank ( ) const
inlinevirtualinherited

Reimplemented in PNS::LINE.

Definition at line 270 of file pns_item.h.

References m_rank.

Referenced by PNS::ARC::ARC(), PNS::LINE::LINE(), PNS::SHOVE::onCollidingSolid(), and PNS::SHOVE::shoveIteration().

◆ RelevantShapeLayers()

std::set< int > PNS::ITEM::RelevantShapeLayers ( const ITEM * aOther) const
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 83 of file pns_item.cpp.

References HasUniqueShapeLayers(), ITEM(), and UniqueShapeLayers().

Referenced by PNS::SHOVE::onCollidingVia(), PNS::SHOVE::onReverseCollidingVia(), PNS::DIFF_PAIR_PLACER::propagateDpHeadForces(), and PNS::VIA::PushoutForce().

◆ SetHole()

virtual void PNS::ITEM::SetHole ( HOLE * aHole)
inlinevirtualinherited

Reimplemented in PNS::SOLID, and PNS::VIA.

Definition at line 309 of file pns_item.h.

◆ SetIsCompoundShapePrimitive()

void PNS::ITEM::SetIsCompoundShapePrimitive ( )
inlineinherited

Definition at line 304 of file pns_item.h.

References m_isCompoundShapePrimitive.

◆ SetIsFreePad()

void PNS::ITEM::SetIsFreePad ( bool aIsFreePad = true)
inlineinherited

Definition at line 290 of file pns_item.h.

References m_isFreePad.

◆ SetLayer()

◆ SetLayers()

◆ SetNet()

◆ SetOwner()

void PNS::OWNABLE_ITEM::SetOwner ( const ITEM_OWNER * aOwner)
inlineinherited

◆ SetParent()

◆ SetRank()

virtual void PNS::ITEM::SetRank ( int aRank)
inlinevirtualinherited

Reimplemented in PNS::LINE.

Definition at line 269 of file pns_item.h.

References m_rank.

Referenced by PNS::NODE::Commit().

◆ SetRoutable()

void PNS::ITEM::SetRoutable ( bool aRoutable)
inlineinherited

Definition at line 287 of file pns_item.h.

References m_routable.

Referenced by BOOST_FIXTURE_TEST_CASE().

◆ SetSourceItem()

void PNS::ITEM::SetSourceItem ( BOARD_ITEM * aSourceItem)
inlineinherited

Definition at line 201 of file pns_item.h.

References m_sourceItem.

Referenced by PNS::NODE::AssembleLine(), PNS::VIA::operator=(), and PNS::DIFF_PAIR::updateLine().

◆ Shape()

virtual const SHAPE * PNS::ITEM::Shape ( int aLayer) const
inlinevirtualinherited

◆ Tag()

const HASH_TAG & PNS::JOINT::Tag ( ) const
inline

trivial accessors

Definition at line 292 of file pns_joint.h.

References m_tag.

◆ UniqueShapeLayers()

virtual std::vector< int > PNS::ITEM::UniqueShapeLayers ( ) const
inlinevirtualinherited

Return a list of layers that have unique (potentially different) shapes.

Reimplemented in PNS::VIA.

Definition at line 254 of file pns_item.h.

Referenced by RelevantShapeLayers().

◆ Unlink()

bool PNS::JOINT::Unlink ( ITEM * aItem)
inline

Unlink a given board item from the joint (upon its removal from a NODE)

Returns
true if the joint became dangling after unlinking.

Definition at line 228 of file pns_joint.h.

References PNS::ITEM::ITEM(), PNS::ITEM::m_layers, and m_linkedItems.

Referenced by PNS::NODE::unlinkJoint().

◆ Unmark()

virtual void PNS::ITEM::Unmark ( int aMarker = -1) const
inlinevirtualinherited

Reimplemented in PNS::LINE.

Definition at line 266 of file pns_item.h.

References m_marker.

Referenced by PNS::NODE::Commit(), and PNS::DRAGGER::Start().

◆ Via()

VIA * PNS::JOINT::Via ( ) const
inline

Member Data Documentation

◆ m_isCompoundShapePrimitive

bool PNS::ITEM::m_isCompoundShapePrimitive
protectedinherited

Definition at line 336 of file pns_item.h.

Referenced by IsCompoundShapePrimitive(), ITEM(), ITEM(), and SetIsCompoundShapePrimitive().

◆ m_isFreePad

bool PNS::ITEM::m_isFreePad
protectedinherited

Definition at line 335 of file pns_item.h.

Referenced by IsFreePad(), ITEM(), ITEM(), and SetIsFreePad().

◆ m_isVirtual

bool PNS::ITEM::m_isVirtual
protectedinherited

◆ m_kind

PnsKind PNS::ITEM::m_kind
protectedinherited

Definition at line 320 of file pns_item.h.

Referenced by collideSimple(), ITEM(), ITEM(), Kind(), KindStr(), and OfKind().

◆ m_layers

◆ m_linkedItems

ITEM_SET PNS::JOINT::m_linkedItems
private

◆ m_locked

bool PNS::JOINT::m_locked
private

locked (non-movable) flag

Definition at line 374 of file pns_joint.h.

Referenced by IsLocked(), JOINT(), JOINT(), JOINT(), Lock(), and Merge().

◆ m_marker

◆ m_movable

◆ m_net

◆ m_owner

const ITEM_OWNER* PNS::OWNABLE_ITEM::m_owner
protectedinherited

◆ m_parent

◆ m_rank

◆ m_routable

bool PNS::ITEM::m_routable
protectedinherited

◆ m_sourceItem

◆ m_tag

HASH_TAG PNS::JOINT::m_tag
private

hash tag for unordered_multimap

Definition at line 368 of file pns_joint.h.

Referenced by Dump(), JOINT(), JOINT(), JOINT(), Net(), operator==(), Overlaps(), Pos(), and Tag().


The documentation for this class was generated from the following files: