#include <cubetree.h>
AKA: Octree Implements and CubeTree node.
◆ CubeTree() [1/3]
Tree::CubeTree::CubeTree |
( |
| ) |
|
◆ CubeTree() [2/3]
CubeTree storage of 3D vertices with support for duplicate values. A Leaf node holds a counter indicating the number of duplicates stored.
- Parameters
-
◆ CubeTree() [3/3]
Tree::CubeTree::CubeTree |
( |
const CubeTree & | | ) |
|
◆ ~CubeTree()
virtual Tree::CubeTree::~CubeTree |
( |
| ) |
|
|
virtual |
◆ back()
const Vertex3f & Tree::CubeTree::back |
( |
| ) |
const |
|
inline |
◆ begin() [1/2]
HeapArray< Leaf * >::iterator Tree::CubeTree::begin |
( |
| ) |
|
|
inline |
◆ begin() [2/2]
HeapArray< Leaf * >::const_iterator Tree::CubeTree::begin |
( |
| ) |
const |
|
inline |
◆ clear()
void Tree::CubeTree::clear |
( |
| ) |
|
◆ end() [1/2]
HeapArray< Leaf * >::iterator Tree::CubeTree::end |
( |
| ) |
|
|
inline |
◆ end() [2/2]
HeapArray< Leaf * >::const_iterator Tree::CubeTree::end |
( |
| ) |
const |
|
inline |
◆ erase()
void Tree::CubeTree::erase |
( |
Leaf * | pLeaf | ) |
|
Removes and deletes this leaf.
- Parameters
-
◆ find()
Leaf * Tree::CubeTree::find |
( |
const Vertex3f & | vertex, |
|
|
float | precision = 0.0f ) const |
◆ front()
const Vertex3f & Tree::CubeTree::front |
( |
| ) |
const |
|
inline |
◆ getLeaves()
HeapArray< Leaf * > Tree::CubeTree::getLeaves |
( |
| ) |
const |
◆ getVertices() [1/2]
Vector3fArray Tree::CubeTree::getVertices |
( |
bool | unique = false | ) |
const |
◆ getVertices() [2/2]
template<typename INDICES >
Vector3fArray Tree::CubeTree::getVertices |
( |
const INDICES & | c | ) |
const |
|
inline |
- Returns
- The container of vertices.
◆ hasDuplicates()
bool Tree::CubeTree::hasDuplicates |
( |
| ) |
|
◆ insert() [1/2]
HeapArray< Handle > Tree::CubeTree::insert |
( |
const Vector3fArray & | list | ) |
|
- Returns
- An array of indices for the given Leaf pointers containing the vertices;
◆ insert() [2/2]
Handle Tree::CubeTree::insert |
( |
const Vertex3f & | vertex | ) |
|
- Returns
- The index of the Leaf pointer containing the vertex;
◆ nearest()
- Parameters
-
The | vertex to search the tree. |
- Returns
- The closest Leaf in the tree to the vertex passed.
◆ operator const Branch &()
Tree::CubeTree::operator const Branch & |
( |
| ) |
const |
|
inline |
◆ operator const Branch *()
Tree::CubeTree::operator const Branch * |
( |
| ) |
const |
|
inline |
◆ operator HeapArray< Leaf * >()
Tree::CubeTree::operator HeapArray< Leaf * > |
( |
| ) |
|
|
inline |
- Returns
- An array of Leaf pointers inserted by iteration of the tree. NOTE: There are no duplicate Leaves.
◆ operator()()
bool Tree::CubeTree::operator() |
( |
const Vertex3f & | vA, |
|
|
const Vertex3f & | vB ) const |
◆ operator[]() [1/2]
Handle Tree::CubeTree::operator[] |
( |
const Vertex3f & | v | ) |
const |
- Returns
- The base-index of the vertex within pLeaf.
◆ operator[]() [2/2]
const Leaf & Tree::CubeTree::operator[] |
( |
Handle | index | ) |
const |
- Returns
- Reference to the Vertex at the given index.
◆ size()
size_t Tree::CubeTree::size |
( |
| ) |
const |
|
inline |
- Returns
- The number of vertices stored in this tree. NOTE: The Array pLeaf may hold duplicate pointer references.
◆ update() [1/2]
void Tree::CubeTree::update |
( |
| ) |
|
Removes all branches and leaves, and reinserts all leaves. This function should be called any time a leaf has been modified.
◆ update() [2/2]
void Tree::CubeTree::update |
( |
Handle | index, |
|
|
const Vertex3f & | vertex ) |
Updates the Leaf at the given index. Duplicate indices will be unassociated with this Leaf if the index is == Leaf::baseIndex.
- Parameters
-
Index | of Leaf object to update; |
The documentation for this class was generated from the following file: