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

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

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.

References m_items, m_point, and PNS::OBSTACLE_VISITOR::OBSTACLE_VISITOR().

◆ ~HIT_VISITOR()

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

Definition at line 471 of file pns_node.cpp.

Member Function Documentation

◆ ClearLayerContext()

void PNS::OBSTACLE_VISITOR::ClearLayerContext ( )
inlineinherited

Definition at line 188 of file pns_node.h.

References m_layerContext.

◆ operator()()

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

Implements PNS::OBSTACLE_VISITOR.

Definition at line 475 of file pns_node.cpp.

References SHAPE::Collide(), m_items, m_point, and PNS::ITEM::Shape().

◆ SetLayerContext()

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

Definition at line 187 of file pns_node.h.

References m_layerContext.

◆ SetWorld()

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

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)
protectedinherited

Definition at line 203 of file pns_node.cpp.

References m_override.

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

Member Data Documentation

◆ m_item

const ITEM* PNS::OBSTACLE_VISITOR::m_item
protectedinherited

the item we are looking for collisions with

Definition at line 196 of file pns_node.h.

Referenced by OBSTACLE_VISITOR(), and 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 HIT_VISITOR(), and 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 198 of file pns_node.h.

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

◆ m_override

const NODE* PNS::OBSTACLE_VISITOR::m_override
protectedinherited

node that overrides root entries

Definition at line 199 of file pns_node.h.

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

◆ m_point

const VECTOR2I& PNS::HIT_VISITOR::m_point

Definition at line 463 of file pns_node.cpp.

Referenced by HIT_VISITOR(), and operator()().


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