32 #ifndef ActorKdTree_INCLUDE_ONCE 33 #define ActorKdTree_INCLUDE_ONCE 64 VL_DEBUG_SET_OBJECT_NAME()
66 virtual int childrenCount()
const;
77 void buildKdTree(
ActorCollection& actors,
int max_depth=100,
float minimum_volume=0);
81 void rebuildKdTree(
int max_depth=100,
float minimum_volume=0);
114 ref<ActorKdTree> kdtreeFromNonLeafyActors(
int max_depth=100,
float minimum_volume=0);
126 mChildN->mParent =
NULL;
134 mChildP->mParent =
NULL;
144 void compileTree_internal(
ActorCollection& acts,
int& counter,
int max_depth=100,
float minimum_volume=0);
Associates a Renderable object to an Effect and Transform.
ref< ActorKdTree > mChildP
ActorKdTree * childP()
Returns the child node that lies in the positive space defined by the splitting plane.
const ActorKdTree * childP() const
Returns the child node that lies in the positive space defined by the splitting plane.
const Plane & plane() const
Returns the splitting plane used to divide its two child nodes.
ActorTreeAbstract * mParent
The Plane class defines a plane using a normal and an origin.
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
Visualization Library main namespace.
ActorKdTree * childN()
Returns the child node that lies in the negative space defined by the splitting plane.
const ActorKdTree * childN() const
Returns the child node that lies in the negative space defined by the splitting plane.
The ActorTreeAbstract class implements the interface of a generic tree containing Actors in its nodes...
#define VLGRAPHICS_EXPORT
ActorKdTree class extends the ActorTreeAbstract class implementing a space partitioning scheme based ...
Defined as a simple subclass of Collection<Actor>, see Collection for more information.
ref< ActorKdTree > mChildN