KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS::NODE::DEFAULT_OBSTACLE_VISITOR Struct Reference
Inheritance diagram for PNS::NODE::DEFAULT_OBSTACLE_VISITOR:
PNS::OBSTACLE_VISITOR

Public Member Functions

 DEFAULT_OBSTACLE_VISITOR (COLLISION_SEARCH_CONTEXT *aCtx, const ITEM *aItem)
 
virtual ~DEFAULT_OBSTACLE_VISITOR ()
 
bool operator() (ITEM *aCandidate) override
 
void SetWorld (const NODE *aNode, const NODE *aOverride=nullptr)
 

Public Attributes

COLLISION_SEARCH_CONTEXTm_ctx
 

Protected Member Functions

bool visit (ITEM *aCandidate)
 

Protected Attributes

const ITEMm_item
 the item we are looking for collisions with
 
const NODEm_node
 node we are searching in (either root or a branch)
 
const NODEm_override
 node that overrides root entries
 

Detailed Description

Definition at line 215 of file pns_node.cpp.

Constructor & Destructor Documentation

◆ DEFAULT_OBSTACLE_VISITOR()

PNS::NODE::DEFAULT_OBSTACLE_VISITOR::DEFAULT_OBSTACLE_VISITOR ( COLLISION_SEARCH_CONTEXT aCtx,
const ITEM aItem 
)
inline

Definition at line 219 of file pns_node.cpp.

◆ ~DEFAULT_OBSTACLE_VISITOR()

virtual PNS::NODE::DEFAULT_OBSTACLE_VISITOR::~DEFAULT_OBSTACLE_VISITOR ( )
inlinevirtual

Definition at line 225 of file pns_node.cpp.

Member Function Documentation

◆ operator()()

◆ SetWorld()

void PNS::OBSTACLE_VISITOR::SetWorld ( const NODE aNode,
const NODE aOverride = nullptr 
)
inherited

◆ visit()

bool PNS::OBSTACLE_VISITOR::visit ( ITEM aCandidate)
protectedinherited

Definition at line 203 of file pns_node.cpp.

References PNS::OBSTACLE_VISITOR::m_override, and PNS::NODE::Overrides().

Referenced by operator()().

Member Data Documentation

◆ m_ctx

COLLISION_SEARCH_CONTEXT* PNS::NODE::DEFAULT_OBSTACLE_VISITOR::m_ctx

Definition at line 217 of file pns_node.cpp.

Referenced by operator()().

◆ m_item

const ITEM* PNS::OBSTACLE_VISITOR::m_item
protectedinherited

the item we are looking for collisions with

Definition at line 191 of file pns_node.h.

Referenced by operator()().

◆ m_node

const NODE* PNS::OBSTACLE_VISITOR::m_node
protectedinherited

node we are searching in (either root or a branch)

Definition at line 193 of file pns_node.h.

Referenced by operator()(), and PNS::OBSTACLE_VISITOR::SetWorld().

◆ m_override

const NODE* PNS::OBSTACLE_VISITOR::m_override
protectedinherited

node that overrides root entries

Definition at line 194 of file pns_node.h.

Referenced by PNS::OBSTACLE_VISITOR::SetWorld(), and PNS::OBSTACLE_VISITOR::visit().


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