1#ifndef COIN_SBBSPTREE_H
2#define COIN_SBBSPTREE_H
28#include <Inventor/lists/SbList.h>
29#include <Inventor/SbVec3f.h>
30#include <Inventor/SbBox3f.h>
33 #define COIN_ALLOW_SBINTLIST
34 #include <Inventor/lists/SbIntList.h>
35 #undef COIN_ALLOW_SBINTLIST
37 #include <Inventor/lists/SbIntList.h>
47 SbBSPTree(
const int maxnodepts = 64,
const int initsize = 4);
61 void clear(
const int initsize = 4);
74 friend class coin_bspnode;
75 SbList <SbVec3f> pointsArray;
76 SbList <void *> userdataArray;
77 coin_bspnode * topnode;
SbVec3f getPoint(const int idx) const
Definition SbBSPTree.cpp:375
int numPoints() const
Definition SbBSPTree.cpp:365
int findPoint(const SbVec3f &pos) const
Definition SbBSPTree.cpp:464
void setUserData(const int idx, void *const data)
Definition SbBSPTree.cpp:409
const SbVec3f * getPointsArrayPtr() const
Definition SbBSPTree.cpp:543
void findPoints(const SbSphere &sphere, SbIntList &array) const
Definition SbBSPTree.cpp:554
SbBSPTree(const int maxnodepts=64, const int initsize=4)
Definition SbBSPTree.cpp:345
int findClosest(const SbVec3f &pos) const
Definition SbBSPTree.cpp:496
int addPoint(const SbVec3f &pt, void *const userdata=NULL)
Definition SbBSPTree.cpp:426
const SbBox3f & getBBox() const
Definition SbBSPTree.cpp:487
int removePoint(const SbVec3f &pt)
Definition SbBSPTree.cpp:442
void clear(const int initsize=4)
Definition SbBSPTree.cpp:473
void * getUserData(const int idx) const
Definition SbBSPTree.cpp:397
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3f.h:37
The SbIntList class is a container for integer list arrays.
Definition SbIntList.h:31
The SbSphere class is a representation of a sphere.
Definition SbSphere.h:33
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:37