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

#include <pns_via.h>

Inheritance diagram for PNS::VVIA:
PNS::VIA PNS::LINKED_ITEM PNS::ITEM PNS::OWNABLE_ITEM PNS::ITEM_OWNER

Public Types

enum class  STACK_MODE { NORMAL , FRONT_INNER_BACK , CUSTOM }
 
typedef uint64_t UNIQ_ID
 
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

 VVIA (const VECTOR2I &aPos, int aLayer, int aDiameter, NET_HANDLE aNet)
 
bool HasHole () const override
 
STACK_MODE StackMode () const
 
void SetStackMode (STACK_MODE aStackMode)
 
int EffectiveLayer (int aLayer) const
 
std::vector< int > UniqueShapeLayers () const override
 Return a list of layers that have unique (potentially different) shapes.
 
bool HasUniqueShapeLayers () const override
 
const VECTOR2IPos () const
 
void SetPos (const VECTOR2I &aPos)
 
VIATYPE ViaType () const
 
void SetViaType (VIATYPE aViaType)
 
UNCONNECTED_LAYER_MODE UnconnectedLayerMode () const
 
void SetUnconnectedLayerMode (UNCONNECTED_LAYER_MODE aMode)
 
bool ConnectsLayer (int aLayer) const
 
int Diameter (int aLayer) const
 
void SetDiameter (int aLayer, int aDiameter)
 
bool PadstackMatches (const VIA &aOther) const
 
int Drill () const
 
void SetDrill (int aDrill)
 
void SetHoleLayers (const PNS_LAYER_RANGE &aLayers)
 
const PNS_LAYER_RANGEHoleLayers () const
 
void SetHolePostMachining (const std::optional< PAD_DRILL_POST_MACHINING_MODE > &aPostMachining)
 
std::optional< PAD_DRILL_POST_MACHINING_MODEHolePostMachining () const
 
void SetSecondaryDrill (const std::optional< int > &aDrill)
 
std::optional< int > SecondaryDrill () const
 
void SetSecondaryHoleLayers (const std::optional< PNS_LAYER_RANGE > &aLayers)
 
std::optional< PNS_LAYER_RANGESecondaryHoleLayers () const
 
void SetSecondaryHolePostMachining (const std::optional< PAD_DRILL_POST_MACHINING_MODE > &aPostMachining)
 
std::optional< PAD_DRILL_POST_MACHINING_MODESecondaryHolePostMachining () const
 
bool IsFree () const
 
void SetIsFree (bool aIsFree)
 
bool PushoutForce (NODE *aNode, const VECTOR2I &aDirection, VECTOR2I &aForce, int aCollisionMask=ITEM::ANY_T, int aMaxIterations=10)
 
bool PushoutForce (NODE *aNode, const ITEM *aOther, VECTOR2I &aForce)
 
const SHAPEShape (int aLayer) const override
 Return the geometrical shape of the item.
 
VIAClone () const override
 Return a deep copy of the item.
 
const SHAPE_LINE_CHAIN Hull (int aClearance=0, int aWalkaroundThickness=0, int aLayer=-1) const override
 
virtual VECTOR2I Anchor (int n) const override
 
virtual int AnchorCount () const override
 
OPT_BOX2I ChangedArea (const VIA *aOther) const
 
const VIA_HANDLE MakeHandle () const
 
virtual void SetHole (HOLE *aHole) override
 
virtual HOLEHole () const override
 
virtual const std::string Format () const override
 
void ResetUid ()
 
UNIQ_ID Uid () const
 
virtual void SetWidth (int aWidth)
 
virtual int Width () 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_ITEMParent () const
 
void SetSourceItem (BOARD_ITEM *aSourceItem)
 
BOARD_ITEMGetSourceItem () const
 
virtual BOARD_ITEMBoardItem () const
 
void SetNet (NET_HANDLE aNet)
 
virtual NET_HANDLE Net () const
 
const PNS_LAYER_RANGELayers () 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.
 
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
 
bool IsLocked () const
 
void SetRoutable (bool aRoutable)
 
bool IsRoutable () const
 
void SetIsFreePad (bool aIsFreePad=true)
 
bool IsFreePad () const
 
virtual ITEMParentPadVia () const
 
bool IsVirtual () const
 
void SetIsCompoundShapePrimitive ()
 
bool IsCompoundShapePrimitive () const
 
virtual const NODEOwningNode () const
 
const ITEM_OWNEROwner () 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 Public Attributes

static constexpr int ALL_LAYERS = 0
 
static constexpr int INNER_LAYERS = 1
 

Protected Attributes

UNIQ_ID m_uid
 
PnsKind m_kind
 
BOARD_ITEMm_parent
 
BOARD_ITEMm_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_OWNERm_owner
 

Private Member Functions

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

Static Private Member Functions

static UNIQ_ID genNextUid ()
 

Private Attributes

STACK_MODE m_stackMode
 
std::map< int, int > m_diameters
 May contain 1..n diameters depending on m_stackMode.
 
std::map< int, SHAPE_CIRCLEm_shapes
 
int m_drill
 
VECTOR2I m_pos
 
VIATYPE m_viaType
 
UNCONNECTED_LAYER_MODE m_unconnectedLayerMode
 
bool m_isFree
 
HOLEm_hole
 
PNS_LAYER_RANGE m_holeLayers
 
std::optional< PNS_LAYER_RANGEm_secondaryHoleLayers
 
std::optional< int > m_secondaryDrill
 
std::optional< PAD_DRILL_POST_MACHINING_MODEm_primaryPostMachining
 
std::optional< PAD_DRILL_POST_MACHINING_MODEm_secondaryPostMachining
 

Detailed Description

Definition at line 366 of file pns_via.h.

Member Typedef Documentation

◆ UNIQ_ID

typedef uint64_t PNS::LINKED_ITEM::UNIQ_ID
inherited

Definition at line 33 of file pns_linked_item.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.

◆ STACK_MODE

enum class PNS::VIA::STACK_MODE
stronginherited
Enumerator
NORMAL 
FRONT_INNER_BACK 
CUSTOM 

Definition at line 62 of file pns_via.h.

Constructor & Destructor Documentation

◆ VVIA()

PNS::VVIA::VVIA ( const VECTOR2I & aPos,
int aLayer,
int aDiameter,
NET_HANDLE aNet )
inline

Definition at line 369 of file pns_via.h.

References PNS::ITEM::m_isVirtual, and PNS::VIA::VIA().

Member Function Documentation

◆ Anchor()

virtual VECTOR2I PNS::VIA::Anchor ( int n) const
inlineoverridevirtualinherited

Reimplemented from PNS::ITEM.

Definition at line 313 of file pns_via.h.

References m_pos.

◆ AnchorCount()

virtual int PNS::VIA::AnchorCount ( ) const
inlineoverridevirtualinherited

Reimplemented from PNS::ITEM.

Definition at line 318 of file pns_via.h.

◆ 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

◆ ChangedArea()

OPT_BOX2I PNS::VIA::ChangedArea ( const VIA * aOther) const
inherited

Definition at line 290 of file pns_via.cpp.

References SHAPE::BBox(), BOX2< Vec >::Merge(), Pos(), Shape(), UniqueShapeLayers(), and VIA().

Referenced by PNS::ChangedArea().

◆ ClassOf()

static bool PNS::VIA::ClassOf ( const ITEM * aItem)
inlinestaticinherited

Definition at line 190 of file pns_via.h.

References PNS::ITEM::Kind(), and PNS::ITEM::VIA_T.

◆ Clone()

◆ 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
aOtheris the item to check collision against.
Returns
true, if a collision was found.

Definition at line 305 of file pns_item.cpp.

References collideSimple(), and ITEM().

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().

◆ collideSimple()

◆ ConnectsLayer()

bool PNS::VIA::ConnectsLayer ( int aLayer) const
inherited

Definition at line 78 of file pns_via.cpp.

References PNS::ITEM::m_layers, m_unconnectedLayerMode, and START_END_ONLY.

◆ Diameter()

◆ Drill()

int PNS::VIA::Drill ( ) const
inlineinherited

Definition at line 246 of file pns_via.h.

References m_drill.

Referenced by comparePnsItems(), and PNS::shouldWeConsiderHoleCollisions().

◆ EffectiveLayer()

int PNS::VIA::EffectiveLayer ( int aLayer) const
inherited

Definition at line 33 of file pns_via.cpp.

References ALL_LAYERS, CUSTOM, FRONT_INNER_BACK, PNS::ITEM::m_layers, m_stackMode, and NORMAL.

Referenced by Diameter(), PushoutForce(), SetDiameter(), and Shape().

◆ Format()

const std::string PNS::VIA::Format ( ) const
overridevirtualinherited

Reimplemented from PNS::ITEM.

Definition at line 320 of file pns_via.cpp.

References PNS::ITEM::Format(), SHAPE::Format(), m_drill, and Shape().

◆ genNextUid()

LINKED_ITEM::UNIQ_ID PNS::LINKED_ITEM::genNextUid ( )
staticprivateinherited

Definition at line 362 of file pns_item.cpp.

Referenced by LINKED_ITEM(), and ResetUid().

◆ GetSourceItem()

◆ HasHole()

bool PNS::VVIA::HasHole ( ) const
inlineoverridevirtual

Reimplemented from PNS::VIA.

Definition at line 375 of file pns_via.h.

◆ HasUniqueShapeLayers()

bool PNS::VIA::HasUniqueShapeLayers ( ) const
inlineoverridevirtualinherited

Reimplemented from PNS::ITEM.

Definition at line 203 of file pns_via.h.

◆ Hole()

virtual HOLE * PNS::VIA::Hole ( ) const
inlineoverridevirtualinherited

Reimplemented from PNS::ITEM.

Definition at line 339 of file pns_via.h.

References m_hole.

Referenced by PNS::NODE::addVia(), PNS::DIFF_PAIR::AppendVias(), and PNS::NODE::Remove().

◆ HoleLayers()

const PNS_LAYER_RANGE & PNS::VIA::HoleLayers ( ) const
inlineinherited

Definition at line 257 of file pns_via.h.

References m_holeLayers.

◆ HolePostMachining()

std::optional< PAD_DRILL_POST_MACHINING_MODE > PNS::VIA::HolePostMachining ( ) const
inlineinherited

Definition at line 264 of file pns_via.h.

References m_primaryPostMachining.

◆ Hull()

const SHAPE_LINE_CHAIN PNS::VIA::Hull ( int aClearance = 0,
int aWalkaroundThickness = 0,
int aLayer = -1 ) const
overridevirtualinherited

◆ IsCompoundShapePrimitive()

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

Definition at line 301 of file pns_item.h.

References m_isCompoundShapePrimitive.

◆ IsFree()

bool PNS::VIA::IsFree ( ) const
inlineinherited

Definition at line 293 of file pns_via.h.

References m_isFree.

◆ IsFreePad()

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

Definition at line 288 of file pns_item.h.

References m_isFreePad, and ParentPadVia().

Referenced by collideSimple().

◆ IsLocked()

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

◆ IsRoutable()

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

Definition at line 284 of file pns_item.h.

References m_routable.

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

◆ IsVirtual()

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

◆ Kind()

◆ KindStr()

std::string PNS::ITEM::KindStr ( ) const
inherited
Returns
the kind of the item, as string

Definition at line 315 of file pns_item.cpp.

References ARC_T, DIFF_PAIR_T, HOLE_T, JOINT_T, LINE_T, m_kind, SEGMENT_T, SOLID_T, and VIA_T.

Referenced by PNS::TOPOLOGY::AssembleTrivialPath(), PNS::TOPOLOGY::AssembleTuningPath(), Format(), and PNS::TOOL_BASE::pickSingleItem().

◆ 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(), 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::FindDpPrimitivePair(), PNS::NODE::FindJoint(), PNS::NODE::FindLinesBetweenJoints(), PNS::NODE::findRedundantArc(), PNS::NODE::findRedundantArc(), PNS::NODE::findRedundantSegment(), PNS::NODE::findRedundantSegment(), PNS::NODE::FixupVirtualVias(), PNS::ROUTER::GetNearestRatnestAnchor(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), PNS_KICAD_IFACE_BASE::IsFlashedOnLayer(), Layer(), 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::SHOVE::shoveIteration(), PNS::COMPONENT_DRAGGER::Start(), 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().

◆ MakeHandle()

const VIA_HANDLE PNS::VIA::MakeHandle ( ) const
inherited

◆ Mark()

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

Reimplemented in PNS::LINE.

Definition at line 261 of file pns_item.h.

References m_marker.

◆ Marker()

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

Reimplemented in PNS::LINE.

Definition at line 263 of file pns_item.h.

References m_marker.

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

◆ Net()

virtual NET_HANDLE PNS::ITEM::Net ( ) const
inlinevirtualinherited

Reimplemented in PNS::HOLE, and PNS::JOINT.

Definition at line 210 of file pns_item.h.

References 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::ARC::ARC(), PNS::TOPOLOGY::AssembleDiffPair(), PNS::NODE::AssembleLine(), PNS::LINE_PLACER::buildInitialLine(), PNS::KEEP_TOPOLOGY_CONSTRAINT::Check(), PNS::VIA::Clone(), collideSimple(), comparePnsItems(), PNS_KICAD_IFACE::createBoardItem(), PNS::DIFF_PAIR::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(), Format(), PNS_PCBNEW_RULE_RESOLVER::getBoardItem(), PNS_KICAD_IFACE_BASE::ImportSizes(), ROUTER_TOOL::InlineDrag(), PNS_PCBNEW_RULE_RESOLVER::IsNetTieExclusion(), PNS::ROUTER::isStartingPointRoutable(), PNS::LINE::LINE(), PNS::NODE::LockJoint(), PNS::VIA::MakeHandle(), PNS::LINE_PLACER::Move(), PNS::JOINT::NextSegment(), PNS::VIA::operator=(), 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::LINE_PLACER::Start(), PCB_TUNING_PATTERN::Update(), and PNS::VIA::VIA().

◆ OfKind()

◆ 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::inheritTrackWidth(), 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().

◆ PadstackMatches()

bool PNS::VIA::PadstackMatches ( const VIA & aOther) const
inherited

Definition at line 108 of file pns_via.cpp.

References Diameter(), UniqueShapeLayers(), and VIA().

Referenced by PNS::shouldWeConsiderHoleCollisions().

◆ Parent()

◆ ParentPadVia()

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

◆ Pos()

◆ PushoutForce() [1/2]

bool PNS::VIA::PushoutForce ( NODE * aNode,
const ITEM * aOther,
VECTOR2I & aForce )
inherited

◆ PushoutForce() [2/2]

◆ Rank()

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

Reimplemented in PNS::LINE.

Definition at line 266 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 94 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().

◆ ResetUid()

void PNS::LINKED_ITEM::ResetUid ( )
inlineinherited

Definition at line 46 of file pns_linked_item.h.

References genNextUid(), and m_uid.

◆ SecondaryDrill()

std::optional< int > PNS::VIA::SecondaryDrill ( ) const
inlineinherited

Definition at line 271 of file pns_via.h.

References m_secondaryDrill.

◆ SecondaryHoleLayers()

std::optional< PNS_LAYER_RANGE > PNS::VIA::SecondaryHoleLayers ( ) const
inlineinherited

Definition at line 278 of file pns_via.h.

References m_secondaryHoleLayers.

◆ SecondaryHolePostMachining()

std::optional< PAD_DRILL_POST_MACHINING_MODE > PNS::VIA::SecondaryHolePostMachining ( ) const
inlineinherited

Definition at line 288 of file pns_via.h.

References m_secondaryPostMachining.

◆ SetDiameter()

void PNS::VIA::SetDiameter ( int aLayer,
int aDiameter )
inlineinherited

◆ SetDrill()

void PNS::VIA::SetDrill ( int aDrill)
inlineinherited

Definition at line 248 of file pns_via.h.

References m_drill, and m_hole.

◆ SetHole()

virtual void PNS::VIA::SetHole ( HOLE * aHole)
inlineoverridevirtualinherited

Reimplemented from PNS::ITEM.

Definition at line 327 of file pns_via.h.

References m_hole, and m_holeLayers.

Referenced by Clone(), operator=(), VIA(), VIA(), and VIA().

◆ SetHoleLayers()

void PNS::VIA::SetHoleLayers ( const PNS_LAYER_RANGE & aLayers)
inherited

Definition at line 87 of file pns_via.cpp.

References m_hole, and m_holeLayers.

Referenced by Clone(), VIA(), and VIA().

◆ SetHolePostMachining()

void PNS::VIA::SetHolePostMachining ( const std::optional< PAD_DRILL_POST_MACHINING_MODE > & aPostMachining)
inlineinherited

Definition at line 259 of file pns_via.h.

References m_primaryPostMachining.

◆ SetIsCompoundShapePrimitive()

void PNS::ITEM::SetIsCompoundShapePrimitive ( )
inlineinherited

Definition at line 300 of file pns_item.h.

References m_isCompoundShapePrimitive.

◆ SetIsFree()

void PNS::VIA::SetIsFree ( bool aIsFree)
inlineinherited

Definition at line 294 of file pns_via.h.

References m_isFree.

◆ SetIsFreePad()

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

Definition at line 286 of file pns_item.h.

References m_isFreePad.

◆ SetLayer()

◆ SetLayers()

◆ SetNet()

◆ SetOwner()

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

◆ SetParent()

◆ SetPos()

void PNS::VIA::SetPos ( const VECTOR2I & aPos)
inlineinherited

◆ SetRank()

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

Reimplemented in PNS::LINE.

Definition at line 265 of file pns_item.h.

References m_rank.

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

◆ SetRoutable()

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

Definition at line 283 of file pns_item.h.

References m_routable.

◆ SetSecondaryDrill()

void PNS::VIA::SetSecondaryDrill ( const std::optional< int > & aDrill)
inlineinherited

Definition at line 266 of file pns_via.h.

References m_secondaryDrill.

◆ SetSecondaryHoleLayers()

void PNS::VIA::SetSecondaryHoleLayers ( const std::optional< PNS_LAYER_RANGE > & aLayers)
inlineinherited

Definition at line 273 of file pns_via.h.

References m_secondaryHoleLayers.

◆ SetSecondaryHolePostMachining()

void PNS::VIA::SetSecondaryHolePostMachining ( const std::optional< PAD_DRILL_POST_MACHINING_MODE > & aPostMachining)
inlineinherited

Definition at line 283 of file pns_via.h.

References m_secondaryPostMachining.

◆ 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().

◆ SetStackMode()

void PNS::VIA::SetStackMode ( STACK_MODE aStackMode)
inherited

Definition at line 96 of file pns_via.cpp.

References FRONT_INNER_BACK, PNS::ITEM::m_layers, and m_stackMode.

◆ SetUnconnectedLayerMode()

void PNS::VIA::SetUnconnectedLayerMode ( UNCONNECTED_LAYER_MODE aMode)
inlineinherited

Definition at line 222 of file pns_via.h.

References m_unconnectedLayerMode.

◆ SetViaType()

void PNS::VIA::SetViaType ( VIATYPE aViaType)
inlineinherited

Definition at line 219 of file pns_via.h.

References m_viaType.

◆ SetWidth()

virtual void PNS::LINKED_ITEM::SetWidth ( int aWidth)
inlinevirtualinherited

Reimplemented in PNS::ARC, and PNS::SEGMENT.

Definition at line 53 of file pns_linked_item.h.

◆ Shape()

const SHAPE * PNS::VIA::Shape ( int aLayer) const
inlineoverridevirtualinherited

Return the geometrical shape of the item.

Used for collision detection and spatial indexing.

Parameters
aLayeris the layer to query shape for (items may have different shapes on different layers)

Reimplemented from PNS::ITEM.

Definition at line 301 of file pns_via.h.

References EffectiveLayer(), and m_shapes.

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

◆ StackMode()

STACK_MODE PNS::VIA::StackMode ( ) const
inlineinherited

Definition at line 195 of file pns_via.h.

References m_stackMode.

◆ Uid()

UNIQ_ID PNS::LINKED_ITEM::Uid ( ) const
inlineinherited

◆ UnconnectedLayerMode()

UNCONNECTED_LAYER_MODE PNS::VIA::UnconnectedLayerMode ( ) const
inlineinherited

Definition at line 221 of file pns_via.h.

References m_unconnectedLayerMode.

◆ UniqueShapeLayers()

std::vector< int > PNS::VIA::UniqueShapeLayers ( ) const
overridevirtualinherited

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

Reimplemented from PNS::ITEM.

Definition at line 56 of file pns_via.cpp.

References ALL_LAYERS, CUSTOM, FRONT_INNER_BACK, INNER_LAYERS, PNS::ITEM::m_layers, m_stackMode, and NORMAL.

Referenced by ChangedArea(), and PadstackMatches().

◆ Unmark()

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

Reimplemented in PNS::LINE.

Definition at line 262 of file pns_item.h.

References m_marker.

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

◆ ViaType()

VIATYPE PNS::VIA::ViaType ( ) const
inlineinherited

Definition at line 218 of file pns_via.h.

References m_viaType.

◆ Width()

virtual int PNS::LINKED_ITEM::Width ( ) const
inlinevirtualinherited

Member Data Documentation

◆ ALL_LAYERS

int PNS::VIA::ALL_LAYERS = 0
staticconstexprinherited

◆ INNER_LAYERS

int PNS::VIA::INNER_LAYERS = 1
staticconstexprinherited

Definition at line 78 of file pns_via.h.

Referenced by UniqueShapeLayers().

◆ m_diameters

std::map<int, int> PNS::VIA::m_diameters
privateinherited

May contain 1..n diameters depending on m_stackMode.

Definition at line 347 of file pns_via.h.

Referenced by Clone(), Diameter(), operator=(), SetDiameter(), VIA(), VIA(), and VIA().

◆ m_drill

int PNS::VIA::m_drill
privateinherited

Definition at line 350 of file pns_via.h.

Referenced by Clone(), Drill(), Format(), operator=(), SetDrill(), VIA(), VIA(), and VIA().

◆ m_hole

HOLE* PNS::VIA::m_hole
privateinherited

Definition at line 355 of file pns_via.h.

Referenced by Hole(), Hull(), SetDrill(), SetHole(), SetHoleLayers(), SetPos(), VIA(), VIA(), VIA(), and ~VIA().

◆ m_holeLayers

PNS_LAYER_RANGE PNS::VIA::m_holeLayers
privateinherited

Definition at line 356 of file pns_via.h.

Referenced by Clone(), HoleLayers(), operator=(), SetHole(), SetHoleLayers(), and VIA().

◆ m_isCompoundShapePrimitive

bool PNS::ITEM::m_isCompoundShapePrimitive
protectedinherited

Definition at line 332 of file pns_item.h.

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

◆ m_isFree

bool PNS::VIA::m_isFree
privateinherited

Definition at line 354 of file pns_via.h.

Referenced by Clone(), IsFree(), operator=(), SetIsFree(), VIA(), VIA(), and VIA().

◆ m_isFreePad

bool PNS::ITEM::m_isFreePad
protectedinherited

Definition at line 331 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 316 of file pns_item.h.

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

◆ m_layers

◆ m_marker

◆ m_movable

◆ m_net

◆ m_owner

const ITEM_OWNER* PNS::OWNABLE_ITEM::m_owner
protectedinherited

◆ m_parent

◆ m_pos

VECTOR2I PNS::VIA::m_pos
privateinherited

Definition at line 351 of file pns_via.h.

Referenced by Anchor(), Clone(), Hull(), operator=(), Pos(), SetDiameter(), SetPos(), VIA(), VIA(), and VIA().

◆ m_primaryPostMachining

std::optional<PAD_DRILL_POST_MACHINING_MODE> PNS::VIA::m_primaryPostMachining
privateinherited

Definition at line 361 of file pns_via.h.

Referenced by Clone(), HolePostMachining(), operator=(), SetHolePostMachining(), VIA(), VIA(), and VIA().

◆ m_rank

◆ m_routable

bool PNS::ITEM::m_routable
protectedinherited

◆ m_secondaryDrill

std::optional<int> PNS::VIA::m_secondaryDrill
privateinherited

Definition at line 359 of file pns_via.h.

Referenced by Clone(), operator=(), SecondaryDrill(), SetSecondaryDrill(), VIA(), VIA(), and VIA().

◆ m_secondaryHoleLayers

std::optional<PNS_LAYER_RANGE> PNS::VIA::m_secondaryHoleLayers
privateinherited

Definition at line 358 of file pns_via.h.

Referenced by Clone(), operator=(), SecondaryHoleLayers(), SetSecondaryHoleLayers(), VIA(), VIA(), and VIA().

◆ m_secondaryPostMachining

std::optional<PAD_DRILL_POST_MACHINING_MODE> PNS::VIA::m_secondaryPostMachining
privateinherited

◆ m_shapes

std::map<int, SHAPE_CIRCLE> PNS::VIA::m_shapes
privateinherited

Definition at line 348 of file pns_via.h.

Referenced by Clone(), operator=(), SetDiameter(), SetPos(), Shape(), VIA(), and VIA().

◆ m_sourceItem

◆ m_stackMode

STACK_MODE PNS::VIA::m_stackMode
privateinherited

◆ m_uid

UNIQ_ID PNS::LINKED_ITEM::m_uid
protectedinherited

◆ m_unconnectedLayerMode

UNCONNECTED_LAYER_MODE PNS::VIA::m_unconnectedLayerMode
privateinherited

◆ m_viaType

VIATYPE PNS::VIA::m_viaType
privateinherited

Definition at line 352 of file pns_via.h.

Referenced by Clone(), operator=(), SetViaType(), VIA(), VIA(), VIA(), and ViaType().


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