13 #include <cxxtest/TestSuite.h> 15 #pragma warning(disable : 4103) // boost code: alignment change 16 #include <boost/timer/timer.hpp> 52 virtual void CheckPoint(
const xms::Pt3d& a_pt) = 0;
virtual void Setup()
Setup the polygons.
void testConvexHull()
Test building a convex hull.
Tests for functions in geoms.cpp.
virtual void GetResults()
Get the timer results and do some assertions.
virtual double MaxTime()=0
virtual void CheckPoint(const xms::Pt3d &a_pt)=0
boost::timer::cpu_timer m_timer
Timer.
int m_status
Status (in, out, on) of at least one pt.
void DoTest()
Run the test. This is the main function to call.
XM_DISALLOW_COPY_AND_ASSIGN(GmPointInPolyUnitTests)
Hide compiler generated copy and assign.
GmPointInPolyUnitTests()
constructor
void test_gmPointInPolygon2D_Speed()
Test lots of points for timing purposes. Only in release, not debug.
void test_gmComputePolygonCentroid()
int m_count
Number of points checked.
std::vector< xms::Pt3d > m_inPoly
Input polygon.
virtual void CheckPoints()
Check a lot of points to see if they are in the polys.
Used for speed tests of various point in poly functions / classes.
void test_gmComputeCentroid()
std::vector< xms::Pt3d > m_outPoly
Output polygon.
void testDoLineSegmentsCross()
Test determining if two lines intersect.