|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <geometry/shape.h>#include <geometry/shape_arc.h>#include <geometry/shape_circle.h>#include <geometry/shape_line_chain.h>#include <geometry/shape_rect.h>#include <geometry/shape_segment.h>#include <geometry/shape_compound.h>#include <geometry/shape_poly_set.h>#include "fixtures_geometry.h"Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (NearestPoints_CircleToCircle_Separate) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_CircleToCircle_Concentric) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_CircleToCircle_Overlapping) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_CircleToRect_Outside) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_CircleToRect_Inside) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_CircleToSegment) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_CircleToSegment_CenterOnSegment) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_RectToRect_Separate) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_RectToRect_Corner) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_LineChainToLineChain) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_LineChainWithArc) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_ArcToArc) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_ArcToCircle) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_SegmentToSegment) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_SegmentToCircle) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_CompoundShapes) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_PolySetToCircle) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_RectToSegment) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_RectToLineChain) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_SegmentToLineChain) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_CircleToLineChain) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_ArcToRect) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_ArcToSegment) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_ArcToLineChain) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_DistanceValidation) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_SymmetryTest) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_MinimumDistanceValidation) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_LineChainWithMixedArcs) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_DegenerateShapes_ZeroWidthRect) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_DegenerateShapes_ZeroLengthSegment) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_SinglePointLineChain) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_NegativeCoordinates) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_IdenticalShapes) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_ZeroSizeShapes) | |
| BOOST_AUTO_TEST_CASE (NearestPoints_VeryCloseShapes) | |
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_ArcToArc | ) |
Definition at line 200 of file test_shape_nearest_points.cpp.
References SHAPE_ARC::NearestPoints(), result, and VECTOR2< T >::x.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_ArcToCircle | ) |
Definition at line 215 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), circle(), SHAPE_ARC::NearestPoints(), result, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_ArcToLineChain | ) |
Definition at line 392 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), chain, and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_ArcToRect | ) |
Definition at line 362 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE_ARC::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_ArcToSegment | ) |
Definition at line 377 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE_ARC::NearestPoints(), result, and VECTOR2< T >::x.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_CircleToCircle_Concentric | ) |
Definition at line 50 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_CircleToCircle_Overlapping | ) |
Definition at line 64 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_CircleToCircle_Separate | ) |
Definition at line 37 of file test_shape_nearest_points.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_CircleToLineChain | ) |
Definition at line 345 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), chain, circle(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_CircleToRect_Inside | ) |
Definition at line 91 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), circle(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_CircleToRect_Outside | ) |
Definition at line 78 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), circle(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_CircleToSegment | ) |
Definition at line 108 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), circle(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_CircleToSegment_CenterOnSegment | ) |
Definition at line 121 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), circle(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_CompoundShapes | ) |
Definition at line 260 of file test_shape_nearest_points.cpp.
References SHAPE_COMPOUND::AddShape(), BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_DegenerateShapes_ZeroLengthSegment | ) |
Definition at line 514 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), circle(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_DegenerateShapes_ZeroWidthRect | ) |
Definition at line 501 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), circle(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_DistanceValidation | ) |
Definition at line 412 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_IdenticalShapes | ) |
Definition at line 555 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_LineChainToLineChain | ) |
Definition at line 163 of file test_shape_nearest_points.cpp.
References SHAPE_LINE_CHAIN::Append(), BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_LineChainWithArc | ) |
Definition at line 182 of file test_shape_nearest_points.cpp.
References SHAPE_LINE_CHAIN::Append(), BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_LineChainWithMixedArcs | ) |
Definition at line 483 of file test_shape_nearest_points.cpp.
References SHAPE_LINE_CHAIN::Append(), BOOST_CHECK_MESSAGE(), circle(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_MinimumDistanceValidation | ) |
Definition at line 456 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), circle(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_NegativeCoordinates | ) |
Definition at line 541 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_PolySetToCircle | ) |
Definition at line 279 of file test_shape_nearest_points.cpp.
References SHAPE_POLY_SET::Append(), BOOST_CHECK_MESSAGE(), circle(), SHAPE::NearestPoints(), SHAPE_POLY_SET::NewOutline(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_RectToLineChain | ) |
Definition at line 311 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), chain, SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_RectToRect_Corner | ) |
Definition at line 149 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_RectToRect_Separate | ) |
Definition at line 136 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_RectToSegment | ) |
Definition at line 298 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_SegmentToCircle | ) |
Definition at line 246 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), circle(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_SegmentToLineChain | ) |
Definition at line 328 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), chain, SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_SegmentToSegment | ) |
Definition at line 232 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_SinglePointLineChain | ) |
Definition at line 527 of file test_shape_nearest_points.cpp.
References SHAPE_LINE_CHAIN::Append(), circle(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_SymmetryTest | ) |
Definition at line 430 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), and SHAPE::NearestPoints().
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_VeryCloseShapes | ) |
Definition at line 582 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.
| BOOST_AUTO_TEST_CASE | ( | NearestPoints_ZeroSizeShapes | ) |
Definition at line 569 of file test_shape_nearest_points.cpp.
References BOOST_CHECK_MESSAGE(), SHAPE::NearestPoints(), and result.