|
KiCad PCB EDA Suite
|
#include <snap/snap_resolver.h>#include "snap_manifold.h"#include <mmh3_hash.h>#include <algorithm>#include <array>#include <cmath>#include <iomanip>#include <ostream>#include <sstream>#include <tuple>Go to the source code of this file.
Functions | |
| std::ostream & | operator<< (std::ostream &aStream, SNAP_RESULT_STATUS aStatus) |
| SNAP_STABLE_ID | MakeDerivedSnapId (SNAP_ID_KIND aKind, const SNAP_STABLE_ID &aSource, int aFeatureIndex, int aSolutionBranch) |
| SNAP_STABLE_ID | MakeIntersectionSnapId (const SNAP_STABLE_ID &aFirst, const SNAP_STABLE_ID &aSecond, int aSolutionBranch) |
| SNAP_STABLE_ID | MakePointSnapId (SNAP_ID_KIND aKind, const VECTOR2I &aPoint, int aFeatureIndex) |
| SNAP_STABLE_ID | MakeCompositeSnapId (SNAP_ID_KIND aKind, const std::vector< SNAP_TARGET_ID > &aTargets, int aFeatureIndex) |
| SNAP_STABLE_ID MakeCompositeSnapId | ( | SNAP_ID_KIND | aKind, |
| const std::vector< SNAP_TARGET_ID > & | aTargets, | ||
| int | aFeatureIndex ) |
Definition at line 485 of file snap_resolver.cpp.
References MMH3_HASH::add(), and MMH3_HASH::addData().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EE_GRID_HELPER::ResolveSnap(), and PCB_GRID_HELPER::ResolveSnap().
| SNAP_STABLE_ID MakeDerivedSnapId | ( | SNAP_ID_KIND | aKind, |
| const SNAP_STABLE_ID & | aSource, | ||
| int | aFeatureIndex, | ||
| int | aSolutionBranch ) |
Definition at line 453 of file snap_resolver.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), SNAP_INFERENCE_PROVIDER::CollectAlignment(), SNAP_INFERENCE_PROVIDER::CollectTangentNormal(), GRID_HELPER::emitSelfAndGridCandidates(), EE_GRID_HELPER::ResolveSnap(), and PCB_GRID_HELPER::ResolveSnap().
| SNAP_STABLE_ID MakeIntersectionSnapId | ( | const SNAP_STABLE_ID & | aFirst, |
| const SNAP_STABLE_ID & | aSecond, | ||
| int | aSolutionBranch ) |
Definition at line 460 of file snap_resolver.cpp.
References INTERSECTION.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SNAP_INFERENCE_PROVIDER::CollectEqualSpacing(), and SNAP_INFERENCE_PROVIDER::CollectObjectGeometry().
| SNAP_STABLE_ID MakePointSnapId | ( | SNAP_ID_KIND | aKind, |
| const VECTOR2I & | aPoint, | ||
| int | aFeatureIndex ) |
Definition at line 474 of file snap_resolver.cpp.
References MMH3_HASH::add(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EE_GRID_HELPER::ResolveSnap(), and PCB_GRID_HELPER::ResolveSnap().
| std::ostream & operator<< | ( | std::ostream & | aStream, |
| SNAP_RESULT_STATUS | aStatus ) |
Definition at line 440 of file snap_resolver.cpp.