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)
 
void SetLayerContext (int aLayer)
 
void ClearLayerContext ()
 
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
 
std::optional< int > m_layerContext
 

Detailed Description

Definition at line 175 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 180 of file pns_node.h.

Member Function Documentation

◆ ClearLayerContext()

void PNS::OBSTACLE_VISITOR::ClearLayerContext ( )
inline

Definition at line 187 of file pns_node.h.

References m_layerContext.

Referenced by PNS::LAYER_CONTEXT_SETTER::~LAYER_CONTEXT_SETTER().

◆ operator()()

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

◆ SetLayerContext()

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

Definition at line 186 of file pns_node.h.

References m_layerContext.

Referenced by PNS::LAYER_CONTEXT_SETTER::LAYER_CONTEXT_SETTER().

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

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

◆ m_layerContext

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

◆ m_node

const NODE* PNS::OBSTACLE_VISITOR::m_node
protected

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

Definition at line 197 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 198 of file pns_node.h.

Referenced by SetWorld(), and visit().


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