Ocean
Loading...
Searching...
No Matches
TestOctree.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_TEST_TESTGEOMETRY_TEST_OCTREE_H
9#define META_OCEAN_TEST_TESTGEOMETRY_TEST_OCTREE_H
10
12
13#include "ocean/base/Worker.h"
14
16
17namespace Ocean
18{
19
20namespace Test
21{
22
23namespace TestGeometry
24{
25
26/**
27 * This class implements homography tests.
28 * @ingroup testgeometry
29 */
30class OCEAN_TEST_GEOMETRY_EXPORT TestOctree
31{
32 public:
33
34 /**
35 * Tests all octree functions.
36 * @param testDuration Number of seconds for each test, with range (0, infinity)
37 * @param selector The test selector
38 * @return True, if succeeded
39 */
40 static bool test(const double testDuration, const TestSelector& selector);
41
42 /**
43 * Tests the constructor.
44 * @param testDuration Number of seconds for each test, with range (0, infinity)
45 * @return True, if succeeded
46 */
47 static bool testConstructor(const double testDuration);
48
49 /**
50 * Tests the closestPoints() function.
51 * @param testDuration Number of seconds for each test, with range (0, infinity)
52 * @return True, if succeeded
53 */
54 static bool testClosestPoints(const double testDuration);
55
56 /**
57 * Tests the intersectingLeaves() function for rays.
58 * @param testDuration Number of seconds for each test, with range (0, infinity)
59 * @return True, if succeeded
60 */
61 static bool testIntersectingLeavesForRays(const double testDuration);
62
63 /**
64 * Tests edge cases.
65 * @param testDuration Number of seconds for each test, with range (0, infinity)
66 * @return True, if succeeded
67 */
68 static bool testEdgeCases(const double testDuration);
69};
70
71}
72
73}
74
75}
76
77#endif // META_OCEAN_TEST_TESTGEOMETRY_TEST_OCTREE_H
This class implements homography tests.
Definition TestOctree.h:31
static bool testClosestPoints(const double testDuration)
Tests the closestPoints() function.
static bool testEdgeCases(const double testDuration)
Tests edge cases.
static bool testConstructor(const double testDuration)
Tests the constructor.
static bool test(const double testDuration, const TestSelector &selector)
Tests all octree functions.
static bool testIntersectingLeavesForRays(const double testDuration)
Tests the intersectingLeaves() function for rays.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
The namespace covering the entire Ocean framework.
Definition Accessor.h:15