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

Public Member Functions

 HIT_VISITOR (ITEM_SET &aTab, const VECTOR2I &aPoint)
 
virtual ~HIT_VISITOR ()
 
bool operator() (ITEM *aItem) override
 
void SetWorld (const NODE *aNode, const NODE *aOverride=nullptr)
 

Public Attributes

ITEM_SETm_items
 
const VECTOR2Im_point
 

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 460 of file pns_node.cpp.

Constructor & Destructor Documentation

◆ HIT_VISITOR()

PNS::HIT_VISITOR::HIT_VISITOR ( ITEM_SET aTab,
const VECTOR2I aPoint 
)
inline

Definition at line 465 of file pns_node.cpp.

◆ ~HIT_VISITOR()

virtual PNS::HIT_VISITOR::~HIT_VISITOR ( )
inlinevirtual

Definition at line 471 of file pns_node.cpp.

Member Function Documentation

◆ operator()()

bool PNS::HIT_VISITOR::operator() ( ITEM aItem)
inlineoverridevirtual

◆ SetWorld()

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

◆ visit()

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

Member Data Documentation

◆ 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 PNS::NODE::DEFAULT_OBSTACLE_VISITOR::operator()().

◆ m_items

ITEM_SET& PNS::HIT_VISITOR::m_items

Definition at line 462 of file pns_node.cpp.

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 PNS::NODE::DEFAULT_OBSTACLE_VISITOR::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().

◆ m_point

const VECTOR2I& PNS::HIT_VISITOR::m_point

Definition at line 463 of file pns_node.cpp.

Referenced by operator()().


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