This is the documentation for Enlighten.
class Enlighten GeoClusterNodeForest
class Enlighten::GeoClusterNodeForest
Debugging output representation of a set of clustering metric hierarchies.
Functions
Name | Description |
|---|---|
Add a tree to the forest. | |
Builds an array of nodes where each nodes stores the starting index and number of leaf cluster nodes that it covers. | |
Builds an array of nodes similar to BuildRangeArray just for a single level in the tree. | |
Locate a node with the given linear index in the forest. | |
Find the ancestor(s) of a given node. | |
Find the ancestor(s) of a given node. | |
Get the number of levels in each hierarchy in the forest. | |
Get the total number of nodes in the forest. | |
Get the number of nodes at a given level in the forest. | |
Get the number of trees in the forest. | |
Get the tree with the given idx. | |
Loads object from the provided stream. | |
Saves object to the provided stream. |
void Enlighten::GeoClusterNodeForest::AddTree
public: void AddTree
(
GeoClusterNodeTree * tree
)
Add a tree to the forest.
bool Enlighten::GeoClusterNodeForest::BuildRangeArray
public: bool BuildRangeArray
(
ClusterRangeArray & rangeArray
) const
Builds an array of nodes where each nodes stores the starting index and number of leaf cluster nodes that it covers.
This assumes that a given cluster is made up of a contiguous range of leaf level cluster indices. NOTE: The leaves of the tree are triangles which are ignored since the purpose is to retrieve the (sub)clusters making up a given cluster node.
bool Enlighten::GeoClusterNodeForest::BuildRangeArray
public: bool BuildRangeArray
(
ClusterRangeArray & rangeArray,
const Geo::s32 & level
) const
Builds an array of nodes similar to BuildRangeArray just for a single level in the tree.