API Documentation
Loading...
Searching...
No Matches
VirtualTree.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: Tree
28File: VirtualTree
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "RTree.h>
34#include "KDTree.h>
35
36namespace NDEVR
37{
38 template<uint01 t_dims, class t_type>
40 {
41 public:
43 {
44 e_KD
45 , R
46 };
50
51 void createKDTree(uint04 leaf_size)
52 {
53 switch (leaf_size)
54 {
55 case 4: m_object = new KDTree<t_dims, t_type, 4>();
56 case 8: m_object = new KDTree<t_dims, t_type, 8>();
57 case 12: m_object = new KDTree<t_dims, t_type, 12>();
58 case 16: m_object = new KDTree<t_dims, t_type, 16>();
59 case 20: m_object = new KDTree<t_dims, t_type, 20>();
60 case 24: m_object = new KDTree<t_dims, t_type, 24>();
61 case 32: m_object = new KDTree<t_dims, t_type, 32>();
62 case 48: m_object = new KDTree<t_dims, t_type, 48>();
63 case 64: m_object = new KDTree<t_dims, t_type, 64>();
64 case 128: m_object = new KDTree<t_dims, t_type, 128>();
65 default:
66 assert(false, "Uncompiled KD Tree Bucket Size");
67 }
68 }
69
70 void createRTree(uint04 leaf_size)
71 {
72 switch (leaf_size)
73 {
74 case 4: m_object = new RTree<t_dims, t_type, 4>();
75 case 8: m_object = new RTree<t_dims, t_type, 8>();
76 case 12: m_object = new RTree<t_dims, t_type, 12>();
77 case 16: m_object = new RTree<t_dims, t_type, 16>();
78 case 20: m_object = new RTree<t_dims, t_type, 20>();
79 case 24: m_object = new RTree<t_dims, t_type, 24>();
80 case 32: m_object = new RTree<t_dims, t_type, 32>();
81 case 48: m_object = new RTree<t_dims, t_type, 48>();
82 case 64: m_object = new RTree<t_dims, t_type, 64>();
83 case 128: m_object = new RTree<t_dims, t_type, 128>();
84 default:
85 assert(false, "Uncompiled R Tree Bucket Size");
86 }
87 }
88 };
89}
Definition KDTree.hpp:870
Definition RTree.hpp:1014
Definition Tree.hpp:48
Definition VirtualTree.h:40
uint04 m_bucket_size
Definition VirtualTree.h:48
void createKDTree(uint04 leaf_size)
Definition VirtualTree.h:51
TreeType m_type
Definition VirtualTree.h:47
void createRTree(uint04 leaf_size)
Definition VirtualTree.h:70
TreeType
Definition VirtualTree.h:43
@ R
Definition VirtualTree.h:45
@ e_KD
Definition VirtualTree.h:44
TreeObject * m_object
Definition VirtualTree.h:49
Definition ACIColor.h:37
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:94