![]() |
NDEVR
API Documentation
|
A polymorphic spatial tree that can instantiate either a KDTree or RTree at runtime based on configuration. More...
Public Types | |
| enum | TreeType { e_KD , R } |
| Enumerates the available spatial tree implementations. More... | |
Public Member Functions | |
| void | createKDTree (uint04 leaf_size) |
| Creates a KDTree with the specified leaf size. | |
| void | createRTree (uint04 leaf_size) |
| Creates an RTree with the specified leaf size. | |
Public Attributes | |
| uint04 | m_bucket_size |
| The bucket size for leaf nodes. | |
| TreeObject * | m_object |
| Pointer to the underlying tree implementation. | |
| TreeType | m_type |
| The currently selected tree type. | |
A polymorphic spatial tree that can instantiate either a KDTree or RTree at runtime based on configuration.
Definition at line 42 of file VirtualTree.h.
| enum VirtualTree::TreeType |
Enumerates the available spatial tree implementations.
| Enumerator | |
|---|---|
| e_KD | KD-Tree spatial index. |
| R | R-Tree spatial index. |
Definition at line 48 of file VirtualTree.h.
|
inline |
Creates a KDTree with the specified leaf size.
| [in] | leaf_size | The number of elements per leaf node. |
Definition at line 59 of file VirtualTree.h.
References m_object.
|
inline |
Creates an RTree with the specified leaf size.
| [in] | leaf_size | The number of elements per leaf node. |
Definition at line 80 of file VirtualTree.h.
References m_object.