00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _TESTSTELSPHERICALGEOMETRY_HPP_
00021 #define _TESTSTELSPHERICALGEOMETRY_HPP_
00022
00023 #include <QObject>
00024 #include <QtTest>
00025 #include "StelSphereGeometry.hpp"
00026
00027 class TestStelSphericalGeometry : public QObject
00028 {
00029 Q_OBJECT
00030 private slots:
00031 void initTestCase();
00032 void testOctahedronPolygon();
00033 void testSphericalCap();
00034 void testContains();
00035 void testPlaneIntersect2();
00036 void testGreatCircleIntersection();
00037 void testSphericalPolygon();
00038 void testConsistency();
00039 void testLoading();
00040 void testEnlarge();
00041 void benchmarkContains();
00042 void benchmarkCheckValid();
00043 void benchmarkSphericalCap();
00044 void benchmarkGetIntersection();
00045 void testSerialize();
00046 void benchmarkCreatePolygon();
00047 private:
00048 SphericalPolygon holySquare;
00049 SphericalPolygon bigSquare;
00050 SphericalPolygon smallSquare;
00051 SphericalPolygon opositeSquare;
00052 SphericalConvexPolygon bigSquareConvex;
00053 SphericalConvexPolygon smallSquareConvex;
00054 SphericalConvexPolygon triangle;
00055 SphericalPolygon northPoleSquare;
00056 SphericalPolygon southPoleSquare;
00057 };
00058
00059 #endif // _TESTSTELSPHERICALGEOMETRY_HPP_