KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_shape_line_chain.cpp File Reference

Go to the source code of this file.

Classes

struct  SLC_CASES
 NOTE: Collision of SHAPE_LINE_CHAIN with arcs is tested in test_shape_arc.cpp. More...
 
struct  CLOSE_TOGGLE_SHAPE_CASE
 
struct  REMOVE_SHAPE_CASE
 

Functions

 BOOST_AUTO_TEST_CASE (ClipperConstructorCase1)
 
 BOOST_AUTO_TEST_CASE (ArcToPolyline)
 
 BOOST_AUTO_TEST_CASE (ArcToPolylineLargeCoords)
 
 BOOST_AUTO_TEST_CASE (SetClosedDuplicatePoint)
 
 BOOST_AUTO_TEST_CASE (ToggleClosed)
 
 BOOST_AUTO_TEST_CASE (PointInPolygon)
 
 BOOST_AUTO_TEST_CASE (SimplifyDuplicatePoint)
 
 BOOST_AUTO_TEST_CASE (SimplifyKeepEndPoint)
 
 BOOST_AUTO_TEST_CASE (SimplifyPNSChain)
 
 BOOST_AUTO_TEST_CASE (SimplifyComplexChain)
 
 BOOST_AUTO_TEST_CASE (RemoveShape)
 
 BOOST_AUTO_TEST_CASE (RemoveShapeAfterSimplify)
 
 BOOST_AUTO_TEST_CASE (ShapeCount)
 
 BOOST_AUTO_TEST_CASE (NextShape)
 
 BOOST_AUTO_TEST_CASE (AppendArc)
 
 BOOST_AUTO_TEST_CASE (ArcWrappingToStartSharedPoints)
 
 BOOST_AUTO_TEST_CASE (Split)
 
 BOOST_AUTO_TEST_CASE (Slice)
 
 BOOST_AUTO_TEST_CASE (NearestPointPt)
 
 BOOST_AUTO_TEST_CASE (ReplaceChain)
 

Variables

static const std::vector< CLOSE_TOGGLE_SHAPE_CASEclose_toggle_shape_cases
 
static const std::vector< REMOVE_SHAPE_CASEremove_shape_cases
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/20]

◆ BOOST_AUTO_TEST_CASE() [2/20]

BOOST_AUTO_TEST_CASE ( ArcToPolyline  )

◆ BOOST_AUTO_TEST_CASE() [3/20]

BOOST_AUTO_TEST_CASE ( ArcToPolylineLargeCoords  )

◆ BOOST_AUTO_TEST_CASE() [4/20]

◆ BOOST_AUTO_TEST_CASE() [5/20]

◆ BOOST_AUTO_TEST_CASE() [6/20]

BOOST_AUTO_TEST_CASE ( NearestPointPt  )

◆ BOOST_AUTO_TEST_CASE() [7/20]

BOOST_AUTO_TEST_CASE ( NextShape  )

Definition at line 637 of file test_shape_line_chain.cpp.

◆ BOOST_AUTO_TEST_CASE() [8/20]

BOOST_AUTO_TEST_CASE ( PointInPolygon  )

Definition at line 370 of file test_shape_line_chain.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/20]

◆ BOOST_AUTO_TEST_CASE() [10/20]

◆ BOOST_AUTO_TEST_CASE() [11/20]

◆ BOOST_AUTO_TEST_CASE() [12/20]

◆ BOOST_AUTO_TEST_CASE() [13/20]

BOOST_AUTO_TEST_CASE ( ShapeCount  )

Definition at line 620 of file test_shape_line_chain.cpp.

◆ BOOST_AUTO_TEST_CASE() [14/20]

◆ BOOST_AUTO_TEST_CASE() [15/20]

◆ BOOST_AUTO_TEST_CASE() [16/20]

◆ BOOST_AUTO_TEST_CASE() [17/20]

BOOST_AUTO_TEST_CASE ( SimplifyPNSChain  )

◆ BOOST_AUTO_TEST_CASE() [18/20]

◆ BOOST_AUTO_TEST_CASE() [19/20]

◆ BOOST_AUTO_TEST_CASE() [20/20]

Variable Documentation

◆ close_toggle_shape_cases

const std::vector<CLOSE_TOGGLE_SHAPE_CASE> close_toggle_shape_cases
static
Initial value:
=
{
{ "Circle1Arc", SLC_CASES().Circle1Arc, true, 1, 15, 1, 16 },
{ "Circle2Arcs", SLC_CASES().Circle2Arcs, true, 2, 16, 2, 17 },
{ "ArcsCoincident", SLC_CASES().ArcsCoincident, false, 2, 14, 3, 14 },
{ "ArcsCoincidentClosed", SLC_CASES().ArcsCoincidentClosed, true, 3, 14, 2, 14 },
{ "ArcsIndependent", SLC_CASES().ArcsIndependent, false, 3, 18, 4, 18 },
{ "DuplicateArcs", SLC_CASES().DuplicateArcs, false, 4, 20, 5, 20 },
{ "ArcAndPoint", SLC_CASES().ArcAndPoint, false, 2, 10, 3, 10 },
{ "ArcsAndSegMixed", SLC_CASES().ArcsAndSegMixed, false, 4, 19, 5, 19 },
{ "OnePoint", SLC_CASES().OnePoint, false, 0, 1, 0, 1 },
{ "TwoPoints", SLC_CASES().TwoPoints, false, 1, 2, 2, 2 },
{ "ThreePoints", SLC_CASES().ThreePoints, false, 2, 3, 3, 3 },
}
NOTE: Collision of SHAPE_LINE_CHAIN with arcs is tested in test_shape_arc.cpp.
SHAPE_LINE_CHAIN Circle1Arc
SHAPE_LINE_CHAIN ArcsCoincident
SHAPE_LINE_CHAIN DuplicateArcs
SHAPE_LINE_CHAIN Circle2Arcs
SHAPE_LINE_CHAIN ArcsCoincidentClosed
SHAPE_LINE_CHAIN TwoPoints
SHAPE_LINE_CHAIN ArcsIndependent
SHAPE_LINE_CHAIN ThreePoints
SHAPE_LINE_CHAIN ArcAndPoint
SHAPE_LINE_CHAIN ArcsAndSegMixed
SHAPE_LINE_CHAIN OnePoint

Definition at line 326 of file test_shape_line_chain.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ remove_shape_cases

const std::vector<REMOVE_SHAPE_CASE> remove_shape_cases
static

Definition at line 509 of file test_shape_line_chain.cpp.

Referenced by BOOST_AUTO_TEST_CASE().