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)
 
void SetLayerContext (int aLayer)
 
void ClearLayerContext ()
 

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
 
std::optional< int > m_layerContext
 

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

◆ ClearLayerContext()

void PNS::OBSTACLE_VISITOR::ClearLayerContext ( )
inlineinherited

◆ operator()()

◆ SetLayerContext()

void PNS::OBSTACLE_VISITOR::SetLayerContext ( int  aLayer)
inlineinherited

◆ 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 195 of file pns_node.h.

Referenced by operator()().

◆ m_layerContext

std::optional<int> PNS::OBSTACLE_VISITOR::m_layerContext
protectedinherited

◆ m_node

const NODE* PNS::OBSTACLE_VISITOR::m_node
protectedinherited

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

Definition at line 197 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 198 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: