SpherePackingScenarioGenerator
|
00001 /* 00002 * CalculateDTest.h 00003 * 00004 * Created on: Aug 22, 2011 00005 * Author: tanlin 00006 */ 00007 00008 #ifndef CalculateDTest_H_ 00009 #define CalculateDTest_H_ 00010 00011 #include <math.h> 00012 #include <algorithm> 00013 #include <functional> 00014 00015 #include "algorithms/GhostSphere.h" 00016 #include "tarch/tests/TestCase.h" 00017 #include "algorithms/AbstractSpherePacking.h" 00018 #include "algorithms/ls2/RandomPacking.h" 00019 #include "tarch/logging/Log.h" 00020 00021 namespace tests { 00022 class CalculateDTest; 00023 } 00024 00025 class tests::CalculateDTest :public tarch::tests::TestCase 00026 { 00027 private: 00028 static tarch::logging::Log _log; 00029 void testSpheres(); 00030 void testGhostSphere(); 00031 void deleteCalculateD(); 00032 void simpleshow(); 00033 double oneDimensionDistance(double r1,double r2); 00034 void cacluatedistance(std::vector<algorithms::geometries::SphereGeometry> &Spheres); 00035 algorithms::AbstractSpherePacking *_SpherePacking; 00036 public: 00037 CalculateDTest(); 00038 virtual ~CalculateDTest(); 00039 virtual void run(); 00040 virtual void setUp(); 00041 }; 00042 00043 #endif /* CalculateDTest_H_ */