KiCad PCB EDA Suite
|
Store starting/ending primitives (pads, vias or segments) for a differential pair. More...
#include <pns_diff_pair.h>
Public Member Functions | |
DP_PRIMITIVE_PAIR () | |
DP_PRIMITIVE_PAIR (const DP_PRIMITIVE_PAIR &aOther) | |
DP_PRIMITIVE_PAIR (ITEM *aPrimP, ITEM *aPrimN) | |
DP_PRIMITIVE_PAIR (const VECTOR2I &aAnchorP, const VECTOR2I &aAnchorN) | |
~DP_PRIMITIVE_PAIR () | |
void | SetAnchors (const VECTOR2I &aAnchorP, const VECTOR2I &aAnchorN) |
const VECTOR2I & | AnchorP () const |
const VECTOR2I & | AnchorN () const |
DP_PRIMITIVE_PAIR & | operator= (const DP_PRIMITIVE_PAIR &aOther) |
ITEM * | PrimP () const |
ITEM * | PrimN () const |
bool | Directional () const |
DIRECTION_45 | DirP () const |
DIRECTION_45 | DirN () const |
void | CursorOrientation (const VECTOR2I &aCursorPos, VECTOR2I &aMidpoint, VECTOR2I &aDirection) const |
void | dump () |
Private Member Functions | |
DIRECTION_45 | anchorDirection (const ITEM *aItem, const VECTOR2I &aP) const |
Private Attributes | |
ITEM * | m_primP |
ITEM * | m_primN |
VECTOR2I | m_anchorP |
VECTOR2I | m_anchorN |
Store starting/ending primitives (pads, vias or segments) for a differential pair.
Definition at line 119 of file pns_diff_pair.h.
|
inline |
Definition at line 122 of file pns_diff_pair.h.
PNS::DP_PRIMITIVE_PAIR::DP_PRIMITIVE_PAIR | ( | const DP_PRIMITIVE_PAIR & | aOther | ) |
Definition at line 62 of file pns_diff_pair.cpp.
References PNS::ITEM::Clone(), m_anchorN, m_anchorP, m_primN, and m_primP.
Definition at line 37 of file pns_diff_pair.cpp.
References PNS::ITEM::Anchor(), PNS::ITEM::Clone(), m_anchorN, m_anchorP, m_primN, and m_primP.
PNS::DP_PRIMITIVE_PAIR::~DP_PRIMITIVE_PAIR | ( | ) |
Definition at line 92 of file pns_diff_pair.cpp.
|
private |
Definition at line 108 of file pns_diff_pair.cpp.
References PNS::ITEM::Anchor(), PNS::ITEM::ARC_T, PNS::ITEM::OfKind(), and PNS::ITEM::SEGMENT_T.
|
inline |
Definition at line 134 of file pns_diff_pair.h.
References m_anchorN.
Referenced by PNS::DP_GATEWAYS::buildDpContinuation(), PNS::DP_GATEWAYS::BuildFromPrimitivePair(), and PNS::ROUTER::isStartingPointRoutable().
|
inline |
Definition at line 133 of file pns_diff_pair.h.
References m_anchorP.
Referenced by PNS::DP_GATEWAYS::buildDpContinuation(), PNS::DP_GATEWAYS::BuildFromPrimitivePair(), and PNS::ROUTER::isStartingPointRoutable().
void PNS::DP_PRIMITIVE_PAIR::CursorOrientation | ( | const VECTOR2I & | aCursorPos, |
VECTOR2I & | aMidpoint, | ||
VECTOR2I & | aDirection | ||
) | const |
Definition at line 120 of file pns_diff_pair.cpp.
References SEG::A, PNS::ITEM::Anchor(), SEG::ApproxParallel(), SEG::B, VECTOR2< T >::Dot(), m_primN, m_primP, PNS::ITEM::OfKind(), VECTOR2< T >::Resize(), and PNS::ITEM::SEGMENT_T.
bool PNS::DP_PRIMITIVE_PAIR::Directional | ( | ) | const |
Definition at line 99 of file pns_diff_pair.cpp.
References PNS::ITEM::ARC_T, m_primP, PNS::ITEM::OfKind(), and PNS::ITEM::SEGMENT_T.
Referenced by PNS::DP_GATEWAYS::buildDpContinuation().
DIRECTION_45 PNS::DP_PRIMITIVE_PAIR::DirN | ( | ) | const |
Definition at line 165 of file pns_diff_pair.cpp.
References anchorDirection(), m_anchorN, and m_primN.
Referenced by PNS::DP_GATEWAYS::buildDpContinuation().
DIRECTION_45 PNS::DP_PRIMITIVE_PAIR::DirP | ( | ) | const |
Definition at line 159 of file pns_diff_pair.cpp.
References anchorDirection(), m_anchorP, and m_primP.
Referenced by PNS::DP_GATEWAYS::buildDpContinuation().
|
inline |
Definition at line 150 of file pns_diff_pair.h.
References m_anchorN, m_anchorP, m_primN, m_primP, VECTOR2< T >::x, and VECTOR2< T >::y.
DP_PRIMITIVE_PAIR & PNS::DP_PRIMITIVE_PAIR::operator= | ( | const DP_PRIMITIVE_PAIR & | aOther | ) |
Definition at line 77 of file pns_diff_pair.cpp.
References PNS::ITEM::Clone(), m_anchorN, m_anchorP, m_primN, and m_primP.
|
inline |
Definition at line 139 of file pns_diff_pair.h.
References m_primN.
Referenced by PNS::DP_GATEWAYS::BuildFromPrimitivePair(), PNS::ROUTER::isStartingPointRoutable(), and PNS::DIFF_PAIR_PLACER::Start().
|
inline |
Definition at line 138 of file pns_diff_pair.h.
References m_primP.
Referenced by PNS::DP_GATEWAYS::BuildFromPrimitivePair(), PNS::ROUTER::isStartingPointRoutable(), and PNS::DIFF_PAIR_PLACER::Start().
Definition at line 47 of file pns_diff_pair.cpp.
References m_anchorN, and m_anchorP.
Referenced by PNS::DIFF_PAIR::EndingPrimitives(), and PNS::DIFF_PAIR_PLACER::FindDpPrimitivePair().
|
private |
Definition at line 161 of file pns_diff_pair.h.
Referenced by AnchorN(), DirN(), DP_PRIMITIVE_PAIR(), dump(), operator=(), and SetAnchors().
|
private |
Definition at line 161 of file pns_diff_pair.h.
Referenced by AnchorP(), DirP(), DP_PRIMITIVE_PAIR(), dump(), operator=(), and SetAnchors().
|
private |
Definition at line 160 of file pns_diff_pair.h.
Referenced by CursorOrientation(), DirN(), DP_PRIMITIVE_PAIR(), dump(), operator=(), PrimN(), and ~DP_PRIMITIVE_PAIR().
|
private |
Definition at line 159 of file pns_diff_pair.h.
Referenced by CursorOrientation(), Directional(), DirP(), DP_PRIMITIVE_PAIR(), dump(), operator=(), PrimP(), and ~DP_PRIMITIVE_PAIR().