KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SNAP_INFERENCE_PROVIDER Class Reference

#include <snap_inference.h>

Public Member Functions

void AddPath (SNAP_OBJECT_PATH aPath)
 
void AddBounds (SNAP_OBJECT_BOUNDS aBounds)
 
void AddAlignmentPoint (SNAP_ALIGNMENT_POINT aPoint)
 
void Clear ()
 
void ActivateExtension (const SNAP_STABLE_ID &aId)
 
void ClearExtensions ()
 
std::vector< SNAP_CANDIDATECollectObjectGeometry (const SNAP_SOURCE_CONTEXT &aContext, int aRadius) const
 
std::vector< SNAP_CANDIDATECollectTangentNormal (const SNAP_SOURCE_CONTEXT &aContext, int aRadius, bool aTangentEnabled, bool aNormalEnabled) const
 
std::vector< SNAP_CANDIDATECollectAlignment (const SNAP_SOURCE_CONTEXT &aContext, int aRadius) const
 
std::vector< SNAP_CANDIDATECollectEqualSpacing (const SNAP_SOURCE_CONTEXT &aContext, int aRadius) const
 

Private Member Functions

bool eligible (const SNAP_SOURCE_CONTEXT &aContext, const SNAP_STABLE_ID &aId) const
 
bool eligible (const SNAP_SOURCE_CONTEXT &aContext, const SNAP_OBJECT_BOUNDS &aBounds) const
 
bool eligible (const SNAP_SOURCE_CONTEXT &aContext, const SNAP_ALIGNMENT_POINT &aPoint) const
 

Private Attributes

std::vector< SNAP_OBJECT_PATHm_paths
 
std::vector< SNAP_OBJECT_BOUNDSm_bounds
 
std::vector< SNAP_ALIGNMENT_POINTm_alignmentPoints
 
std::vector< SNAP_STABLE_IDm_activeExtensions
 

Detailed Description

Definition at line 57 of file snap_inference.h.

Member Function Documentation

◆ ActivateExtension()

void SNAP_INFERENCE_PROVIDER::ActivateExtension ( const SNAP_STABLE_ID & aId)

Definition at line 294 of file snap_inference.cpp.

References m_activeExtensions.

Referenced by BOOST_AUTO_TEST_CASE().

◆ AddAlignmentPoint()

void SNAP_INFERENCE_PROVIDER::AddAlignmentPoint ( SNAP_ALIGNMENT_POINT aPoint)

◆ AddBounds()

◆ AddPath()

◆ Clear()

void SNAP_INFERENCE_PROVIDER::Clear ( )

Definition at line 285 of file snap_inference.cpp.

References m_activeExtensions, m_alignmentPoints, m_bounds, and m_paths.

◆ ClearExtensions()

void SNAP_INFERENCE_PROVIDER::ClearExtensions ( )

Definition at line 303 of file snap_inference.cpp.

References m_activeExtensions.

◆ CollectAlignment()

◆ CollectEqualSpacing()

◆ CollectObjectGeometry()

◆ CollectTangentNormal()

◆ eligible() [1/3]

bool SNAP_INFERENCE_PROVIDER::eligible ( const SNAP_SOURCE_CONTEXT & aContext,
const SNAP_ALIGNMENT_POINT & aPoint ) const
private

◆ eligible() [2/3]

bool SNAP_INFERENCE_PROVIDER::eligible ( const SNAP_SOURCE_CONTEXT & aContext,
const SNAP_OBJECT_BOUNDS & aBounds ) const
private

◆ eligible() [3/3]

bool SNAP_INFERENCE_PROVIDER::eligible ( const SNAP_SOURCE_CONTEXT & aContext,
const SNAP_STABLE_ID & aId ) const
private

Member Data Documentation

◆ m_activeExtensions

std::vector<SNAP_STABLE_ID> SNAP_INFERENCE_PROVIDER::m_activeExtensions
private

Definition at line 82 of file snap_inference.h.

Referenced by ActivateExtension(), Clear(), ClearExtensions(), and CollectObjectGeometry().

◆ m_alignmentPoints

std::vector<SNAP_ALIGNMENT_POINT> SNAP_INFERENCE_PROVIDER::m_alignmentPoints
private

Definition at line 81 of file snap_inference.h.

Referenced by AddAlignmentPoint(), Clear(), and CollectAlignment().

◆ m_bounds

std::vector<SNAP_OBJECT_BOUNDS> SNAP_INFERENCE_PROVIDER::m_bounds
private

Definition at line 80 of file snap_inference.h.

Referenced by AddBounds(), Clear(), CollectAlignment(), and CollectEqualSpacing().

◆ m_paths

std::vector<SNAP_OBJECT_PATH> SNAP_INFERENCE_PROVIDER::m_paths
private

Definition at line 79 of file snap_inference.h.

Referenced by AddPath(), Clear(), CollectObjectGeometry(), and CollectTangentNormal().


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