Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
geom_algorithms_test_simplification.cc File Reference
#include "geom_algorithms_test_common.h"
#include <cmath>
Include dependency graph for geom_algorithms_test_simplification.cc:

Go to the source code of this file.

Functions

static bool is_subsequence (const Array< Point > &original, const Array< Point > &sub)
 
static Array< Pointpoly_verts (const Polygon &poly)
 
static Polygon make_circle (size_t n, double radius=10.0, double cx=0.0, double cy=0.0)
 
 TEST_F (GeomAlgorithmsTest, DP_StraightLine)
 
 TEST_F (GeomAlgorithmsTest, DP_LShape)
 
 TEST_F (GeomAlgorithmsTest, DP_Zigzag)
 
 TEST_F (GeomAlgorithmsTest, DP_Rectangle_Closed)
 
 TEST_F (GeomAlgorithmsTest, DP_EpsilonZero_KeepsAll)
 
 TEST_F (GeomAlgorithmsTest, DP_LargeEpsilon_MinimalOutput)
 
 TEST_F (GeomAlgorithmsTest, DP_TwoPoints)
 
 TEST_F (GeomAlgorithmsTest, DP_CircleApprox_Progressive)
 
 TEST_F (GeomAlgorithmsTest, VW_SmallTriangleRemoval)
 
 TEST_F (GeomAlgorithmsTest, VW_Staircase)
 
 TEST_F (GeomAlgorithmsTest, VW_Rectangle_Closed)
 
 TEST_F (GeomAlgorithmsTest, VW_ThresholdZero_KeepsAll)
 
 TEST_F (GeomAlgorithmsTest, VW_LargeThreshold_MinimalOutput)
 
 TEST_F (GeomAlgorithmsTest, VW_TwoPoints)
 
 TEST_F (GeomAlgorithmsTest, VW_CircleApprox_Closed)
 
 TEST_F (GeomAlgorithmsTest, Simplification_SubsequenceProperty_DP)
 
 TEST_F (GeomAlgorithmsTest, Simplification_SubsequenceProperty_VW)
 
 TEST_F (GeomAlgorithmsTest, Simplification_CountProperty)
 
 TEST_F (GeomAlgorithmsTest, DP_FirstLastPreserved)
 
 TEST_F (GeomAlgorithmsTest, VW_FirstLastPreserved)
 
 TEST_F (GeomAlgorithmsTest, DP_DynListOverload)
 
 TEST_F (GeomAlgorithmsTest, VW_DynListOverload)
 
 TEST_F (GeomAlgorithmsTest, Chaikin_Triangle_OneIteration)
 
 TEST_F (GeomAlgorithmsTest, Chaikin_Square_OneIteration)
 
 TEST_F (GeomAlgorithmsTest, Chaikin_VertexCount_Closed)
 
 TEST_F (GeomAlgorithmsTest, Chaikin_VertexCount_Open)
 
 TEST_F (GeomAlgorithmsTest, Chaikin_ClosedPolygon_RemainsValid)
 
 TEST_F (GeomAlgorithmsTest, Chaikin_Circle_ConvergesToCircle)
 
 TEST_F (GeomAlgorithmsTest, Chaikin_CustomRatio)
 
 TEST_F (GeomAlgorithmsTest, Chaikin_DomainErrors)
 
 TEST_F (GeomAlgorithmsTest, Chaikin_DynListOverload)
 
 TEST_F (GeomAlgorithmsTest, Chaikin_TwoPoints_Open)
 

Function Documentation

◆ is_subsequence()

static bool is_subsequence ( const Array< Point > &  original,
const Array< Point > &  sub 
)
static

◆ make_circle()

static Polygon make_circle ( size_t  n,
double  radius = 10.0,
double  cx = 0.0,
double  cy = 0.0 
)
static

◆ poly_verts()

static Array< Point > poly_verts ( const Polygon poly)
static

◆ TEST_F() [1/32]

◆ TEST_F() [2/32]

◆ TEST_F() [3/32]

◆ TEST_F() [4/32]

◆ TEST_F() [5/32]

TEST_F ( GeomAlgorithmsTest  ,
Chaikin_DynListOverload   
)

◆ TEST_F() [6/32]

◆ TEST_F() [7/32]

◆ TEST_F() [8/32]

TEST_F ( GeomAlgorithmsTest  ,
Chaikin_TwoPoints_Open   
)

◆ TEST_F() [9/32]

◆ TEST_F() [10/32]

TEST_F ( GeomAlgorithmsTest  ,
Chaikin_VertexCount_Open   
)

◆ TEST_F() [11/32]

◆ TEST_F() [12/32]

TEST_F ( GeomAlgorithmsTest  ,
DP_DynListOverload   
)

◆ TEST_F() [13/32]

TEST_F ( GeomAlgorithmsTest  ,
DP_EpsilonZero_KeepsAll   
)

◆ TEST_F() [14/32]

TEST_F ( GeomAlgorithmsTest  ,
DP_FirstLastPreserved   
)

◆ TEST_F() [15/32]

TEST_F ( GeomAlgorithmsTest  ,
DP_LargeEpsilon_MinimalOutput   
)

◆ TEST_F() [16/32]

◆ TEST_F() [17/32]

◆ TEST_F() [18/32]

TEST_F ( GeomAlgorithmsTest  ,
DP_StraightLine   
)

◆ TEST_F() [19/32]

TEST_F ( GeomAlgorithmsTest  ,
DP_TwoPoints   
)

◆ TEST_F() [20/32]

◆ TEST_F() [21/32]

◆ TEST_F() [22/32]

TEST_F ( GeomAlgorithmsTest  ,
Simplification_SubsequenceProperty_DP   
)

◆ TEST_F() [23/32]

TEST_F ( GeomAlgorithmsTest  ,
Simplification_SubsequenceProperty_VW   
)

◆ TEST_F() [24/32]

TEST_F ( GeomAlgorithmsTest  ,
VW_CircleApprox_Closed   
)

◆ TEST_F() [25/32]

TEST_F ( GeomAlgorithmsTest  ,
VW_DynListOverload   
)

◆ TEST_F() [26/32]

TEST_F ( GeomAlgorithmsTest  ,
VW_FirstLastPreserved   
)

◆ TEST_F() [27/32]

TEST_F ( GeomAlgorithmsTest  ,
VW_LargeThreshold_MinimalOutput   
)

◆ TEST_F() [28/32]

TEST_F ( GeomAlgorithmsTest  ,
VW_Rectangle_Closed   
)

◆ TEST_F() [29/32]

TEST_F ( GeomAlgorithmsTest  ,
VW_SmallTriangleRemoval   
)

◆ TEST_F() [30/32]

TEST_F ( GeomAlgorithmsTest  ,
VW_Staircase   
)

◆ TEST_F() [31/32]

TEST_F ( GeomAlgorithmsTest  ,
VW_ThresholdZero_KeepsAll   
)

◆ TEST_F() [32/32]

TEST_F ( GeomAlgorithmsTest  ,
VW_TwoPoints   
)