KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS::OBSTACLE_VISITOR Class Referenceabstract

#include <pns_node.h>

Inheritance diagram for PNS::OBSTACLE_VISITOR:
PNS::HIT_VISITOR PNS::NODE::DEFAULT_OBSTACLE_VISITOR

Public Member Functions

 OBSTACLE_VISITOR (const ITEM *aItem)
 
virtual ~OBSTACLE_VISITOR ()
 
void SetWorld (const NODE *aNode, const NODE *aOverride=nullptr)
 
virtual bool operator() (ITEM *aCandidate)=0
 

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

Constructor & Destructor Documentation

◆ OBSTACLE_VISITOR()

PNS::OBSTACLE_VISITOR::OBSTACLE_VISITOR ( const ITEM aItem)

Definition at line 188 of file pns_node.cpp.

◆ ~OBSTACLE_VISITOR()

virtual PNS::OBSTACLE_VISITOR::~OBSTACLE_VISITOR ( )
inlinevirtual

Definition at line 179 of file pns_node.h.

Member Function Documentation

◆ operator()()

virtual bool PNS::OBSTACLE_VISITOR::operator() ( ITEM aCandidate)
pure virtual

◆ SetWorld()

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

Definition at line 196 of file pns_node.cpp.

References m_node, and m_override.

Referenced by PNS::NODE::HitTest(), and PNS::NODE::QueryColliding().

◆ visit()

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

Definition at line 203 of file pns_node.cpp.

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

Referenced by PNS::NODE::DEFAULT_OBSTACLE_VISITOR::operator()().

Member Data Documentation

◆ m_item

const ITEM* PNS::OBSTACLE_VISITOR::m_item
protected

the item we are looking for collisions with

Definition at line 191 of file pns_node.h.

Referenced by PNS::NODE::DEFAULT_OBSTACLE_VISITOR::operator()().

◆ m_node

const NODE* PNS::OBSTACLE_VISITOR::m_node
protected

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

Definition at line 193 of file pns_node.h.

Referenced by PNS::NODE::DEFAULT_OBSTACLE_VISITOR::operator()(), and SetWorld().

◆ m_override

const NODE* PNS::OBSTACLE_VISITOR::m_override
protected

node that overrides root entries

Definition at line 194 of file pns_node.h.

Referenced by SetWorld(), and visit().


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