Helios++
Helios software for LiDAR simulations
KDTreeBuildType.h
1 #pragma once
2 
12 public:
13  // *** ATTRIBUTES *** //
14  // ******************** //
25  bool left;
30  vector<Primitive *> primitives;
35  int depth;
40  int index;
41 
42  // *** CONSTRUCTION / DESTRUCTION *** //
43  // ************************************ //
48  parent(nullptr),
49  left(false),
50  primitives(0),
51  depth(-1),
52  index(-1)
53  {}
54 
64  bool const left,
65  vector<Primitive *> &primitives,
66  int const depth,
67  int const index
68  ) :
69  parent(parent),
70  left(left),
72  depth(depth),
73  index(index)
74  {}
75 
76  virtual ~KDTreeBuildType() = default;
77 
78 
79 };
Build type to wrap data required for recursive building of KDTree nodes when using a KDTreeFactory ba...
Definition: KDTreeBuildType.h:11
KDTreeNode * parent
The parent node.
Definition: KDTreeBuildType.h:19
vector< Primitive * > primitives
Primitives to build KDTree node from.
Definition: KDTreeBuildType.h:30
int index
Index of node at current depth.
Definition: KDTreeBuildType.h:40
KDTreeBuildType()
Default constructor for KDTreeBuildType.
Definition: KDTreeBuildType.h:47
bool left
True if given node is a left child, false otherwise. Notice root node is not left nor right,...
Definition: KDTreeBuildType.h:25
KDTreeBuildType(KDTreeNode *parent, bool const left, vector< Primitive * > &primitives, int const depth, int const index)
Constructor for KDTreeBuildType with attributes as arguments.
Definition: KDTreeBuildType.h:62
int depth
Depth of node.
Definition: KDTreeBuildType.h:35
Class representing a KDTree node.
Definition: KDTreeNode.h:9