KiCad PCB EDA Suite
|
Classes | |
struct | ITEM_KEY |
Public Member Functions | |
MOCK_RULE_RESOLVER () | |
virtual | ~MOCK_RULE_RESOLVER () |
virtual int | Clearance (const PNS::ITEM *aA, const PNS::ITEM *aB, bool aUseClearanceEpsilon=true) override |
virtual PNS::NET_HANDLE | DpCoupledNet (PNS::NET_HANDLE aNet) override |
virtual int | DpNetPolarity (PNS::NET_HANDLE aNet) override |
virtual bool | DpNetPair (const PNS::ITEM *aItem, PNS::NET_HANDLE &aNetP, PNS::NET_HANDLE &aNetN) override |
virtual int | NetCode (PNS::NET_HANDLE aNet) override |
virtual wxString | NetName (PNS::NET_HANDLE aNet) override |
virtual bool | QueryConstraint (PNS::CONSTRAINT_TYPE aType, const PNS::ITEM *aItemA, const PNS::ITEM *aItemB, int aLayer, PNS::CONSTRAINT *aConstraint) override |
int | ClearanceEpsilon () const override |
bool | IsInNetTie (const PNS::ITEM *aA) override |
bool | IsNetTieExclusion (const PNS::ITEM *aItem, const VECTOR2I &aCollisionPos, const PNS::ITEM *aCollidingItem) override |
bool | IsDrilledHole (const PNS::ITEM *aItem) override |
bool | IsNonPlatedSlot (const PNS::ITEM *aItem) override |
bool | IsKeepout (const PNS::ITEM *aObstacle, const PNS::ITEM *aItem, bool *aEnforce) override |
void | AddMockRule (PNS::CONSTRAINT_TYPE aType, const PNS::ITEM *aItemA, const PNS::ITEM *aItemB, PNS::CONSTRAINT &aConstraint) |
virtual void | ClearCacheForItems (std::vector< const ITEM * > &aItems) |
virtual void | ClearCaches () |
virtual void | ClearTemporaryCaches () |
Public Attributes | |
int | m_defaultClearance = 200000 |
int | m_defaultHole2Hole = 220000 |
int | m_defaultHole2Copper = 210000 |
Private Attributes | |
std::map< ITEM_KEY, PNS::CONSTRAINT > | m_ruleMap |
int | m_clearanceEpsilon |
Definition at line 90 of file test_pns_basics.cpp.
|
inline |
Definition at line 93 of file test_pns_basics.cpp.
|
inlinevirtual |
Definition at line 97 of file test_pns_basics.cpp.
|
inline |
Definition at line 262 of file test_pns_basics.cpp.
References MOCK_RULE_RESOLVER::ITEM_KEY::a, MOCK_RULE_RESOLVER::ITEM_KEY::b, m_ruleMap, and MOCK_RULE_RESOLVER::ITEM_KEY::type.
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 99 of file test_pns_basics.cpp.
References PNS::CT_CLEARANCE, PNS::CT_EDGE_CLEARANCE, PNS::CT_HOLE_CLEARANCE, PNS::CT_HOLE_TO_HOLE, PNS_LAYER_RANGE::End(), PNS_LAYER_RANGE::Intersection(), isCopper(), isEdge(), isHole(), PNS::ITEM::Layers(), PNS::CONSTRAINT::m_Value, MINOPTMAX< T >::Min(), PCB_LAYER_ID_COUNT, PCBNEW_LAYER_ID_START, QueryConstraint(), and PNS_LAYER_RANGE::Start().
|
inlineoverridevirtual |
Reimplemented from PNS::RULE_RESOLVER.
Definition at line 214 of file test_pns_basics.cpp.
References m_clearanceEpsilon.
|
inlinevirtualinherited |
Reimplemented in PNS_PCBNEW_RULE_RESOLVER.
Definition at line 167 of file pns_node.h.
Referenced by PNS::NODE::releaseGarbage(), PNS::ROUTER::updateView(), and PNS::NODE::~NODE().
|
inlinevirtualinherited |
Reimplemented in PNS_PCBNEW_RULE_RESOLVER.
Definition at line 168 of file pns_node.h.
Referenced by PNS::ROUTER::StartDragging(), and PNS::ROUTER::StartRouting().
|
inlinevirtualinherited |
Reimplemented in PNS_PCBNEW_RULE_RESOLVER.
Definition at line 169 of file pns_node.h.
Referenced by PNS::ROUTER::Move().
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 157 of file test_pns_basics.cpp.
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 160 of file test_pns_basics.cpp.
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 158 of file test_pns_basics.cpp.
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 253 of file test_pns_basics.cpp.
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 245 of file test_pns_basics.cpp.
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 257 of file test_pns_basics.cpp.
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 247 of file test_pns_basics.cpp.
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 255 of file test_pns_basics.cpp.
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 166 of file test_pns_basics.cpp.
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 171 of file test_pns_basics.cpp.
|
inlineoverridevirtual |
Implements PNS::RULE_RESOLVER.
Definition at line 176 of file test_pns_basics.cpp.
References MOCK_RULE_RESOLVER::ITEM_KEY::a, MOCK_RULE_RESOLVER::ITEM_KEY::b, PNS::CT_CLEARANCE, PNS::CT_HOLE_CLEARANCE, PNS::CT_HOLE_TO_HOLE, m_defaultClearance, m_defaultHole2Copper, m_defaultHole2Hole, m_ruleMap, PNS::CONSTRAINT::m_Type, PNS::CONSTRAINT::m_Value, MINOPTMAX< T >::SetMin(), and MOCK_RULE_RESOLVER::ITEM_KEY::type.
Referenced by Clearance().
|
private |
Definition at line 280 of file test_pns_basics.cpp.
Referenced by ClearanceEpsilon().
int MOCK_RULE_RESOLVER::m_defaultClearance = 200000 |
Definition at line 274 of file test_pns_basics.cpp.
Referenced by QueryConstraint().
int MOCK_RULE_RESOLVER::m_defaultHole2Copper = 210000 |
Definition at line 276 of file test_pns_basics.cpp.
Referenced by QueryConstraint().
int MOCK_RULE_RESOLVER::m_defaultHole2Hole = 220000 |
Definition at line 275 of file test_pns_basics.cpp.
Referenced by QueryConstraint().
|
private |
Definition at line 279 of file test_pns_basics.cpp.
Referenced by AddMockRule(), and QueryConstraint().