Helios++
Helios software for LiDAR simulations
KDTreeNodeRoot Class Reference

Class representing the root node of a KDTree. More...

#include <KDTreeNodeRoot.h>

Inheritance diagram for KDTreeNodeRoot:
Collaboration diagram for KDTreeNodeRoot:

Public Member Functions

 KDTreeNodeRoot ()
 Constructor for KDTree root node.
 
- Public Member Functions inherited from KDTreeNode
void computeKDTreeStats (KDTreeNode *root, int depth=0)
 Analyze KDTree computing its max depth and the minimum and maximum number of primitives considering all nodes. More...
 
void writeObject (std::string path)
 Serialize KDTree. More...
 

Static Public Member Functions

static KDTreeNodeRootbuild (const std::vector< Primitive *> &primitives)
 KDTree build method. More...
 
- Static Public Member Functions inherited from KDTreeNode
static KDTreeNodebuildRecursive (std::vector< Primitive *> primitives, int depth)
 Recursively build a KDTree for given primitives. More...
 
static KDTreeNodereadObject (std::string path)
 Import a serialized KDTree from file. More...
 

Public Attributes

int stats_maxNumPrimsInLeaf
 Maximum number of primitives considering all leaves.
 
int stats_minNumPrimsInLeaf
 Minimum number of primitives considering all leaves.
 
int stats_maxDepthReached
 Maximum depth of the KDTree.
 
- Public Attributes inherited from KDTreeNode
KDTreeNodeleft = nullptr
 Pointer to node at left side on space partition. Can be nullptr if there is no left side node.
 
KDTreeNoderight = nullptr
 
double splitPos = 0
 Point position at corresponding split axis.
 
int splitAxis = 0
 Space axis to consider at current depth.
 
std::vector< Primitive * > primitives
 Vector of primitives associated with the node.
 

Private Member Functions

template<typename Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 

Detailed Description

Class representing the root node of a KDTree.

Member Function Documentation

◆ build()

KDTreeNodeRoot * KDTreeNodeRoot::build ( const std::vector< Primitive *> &  primitives)
static

KDTree build method.

Parameters
primitivesPrimitives to build KDTree splitting them
Returns
Pointer to root node of built KDTree

The documentation for this class was generated from the following files: