xmsgrid  1.0
TrTin.t.h
Go to the documentation of this file.
1 #pragma once
2 #ifdef CXX_TEST
3 //------------------------------------------------------------------------------
8 //------------------------------------------------------------------------------
9 
10 // 3. Standard Library Headers
11 
12 // 4. External Library Headers
13 #include <boost/shared_ptr.hpp>
14 
15 // 5. Shared Headers
16 #include <cxxtest/TestSuite.h>
17 
18 // 6. Non-shared Headers
19 
20 //----- Namespace declaration --------------------------------------------------
21 
22 // namespace xms {
23 
24 //----- Forward declarations ---------------------------------------------------
25 namespace xms
26 {
27 class TrTin;
28 }
29 //----- Classes ----------------------------------------------------------------
30 
32 class TrTinUnitTests : public CxxTest::TestSuite
33 {
34 public:
35  void test1();
37  void testSwap();
38  // void testFirstBoundaryPoint();
39  void testBoundaries();
40  void testDeleteTriangles();
41  void testDeletePoints();
43 };
44 
45 //----- Global functions -------------------------------------------------------
46 
47 boost::shared_ptr<xms::TrTin> trBuildTestTin();
48 boost::shared_ptr<xms::TrTin> trBuildTestTin2();
49 boost::shared_ptr<xms::TrTin> trBuildTestTin6();
50 boost::shared_ptr<xms::TrTin> trBuildTestTin7();
51 boost::shared_ptr<xms::TrTin> trBuildTestTin8();
52 boost::shared_ptr<xms::TrTin> trBuildTestTin9();
53 
54 //} // namespace xms
55 #endif
boost::shared_ptr< xms::TrTin > trBuildTestTin2()
Builds a simple TIN for testing.
Definition: TrTin.cpp:1487
boost::shared_ptr< xms::TrTin > trBuildTestTin8()
Builds a simple TIN with a hole in the middle and a concavity.
Definition: TrTin.cpp:1599
void testBoundaries()
Tests TrTin::GetBoundaryPoints and TrTin::GetBoundaryPolys.
Definition: TrTin.cpp:2050
boost::shared_ptr< xms::TrTin > trBuildTestTin6()
Builds a simple TIN for testing.
Definition: TrTin.cpp:1521
boost::shared_ptr< xms::TrTin > trBuildTestTin()
Builds a simple TIN with a hole in the middle.
Definition: TrTin.cpp:1451
boost::shared_ptr< xms::TrTin > trBuildTestTin7()
Builds a simple TIN for testing.
Definition: TrTin.cpp:1565
Tests for TrTin.
Definition: TrTin.t.h:32
void testRemoveLongThinTrianglesOnPerimeter()
Tests TrTin::RemoveLongThinTrianglesOnPerimeter.
Definition: TrTin.cpp:2187
void testSwap()
Definition: TrTin.cpp:1941
boost::shared_ptr< xms::TrTin > trBuildTestTin9()
Builds a TIN with long thin triangles for testing.
Definition: TrTin.cpp:1635
XMS Namespace.
Definition: geoms.cpp:34
void testDeletePoints()
Tests TrTin::DeletePoints.
Definition: TrTin.cpp:2141
void test1()
Tests a bunch of the TrTin methods.
Definition: TrTin.cpp:1671
void testOptimizeTriangulation()
Definition: TrTin.cpp:1888
void testDeleteTriangles()
Tests TrTin::DeleteTriangles.
Definition: TrTin.cpp:2079