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:400
int numPoints() const
Definition SbBSPTree.cpp:390
int findPoint(const SbVec3f &pos) const
Definition SbBSPTree.cpp:503
void setUserData(const int idx, void *const data)
Definition SbBSPTree.cpp:434
const SbVec3f * getPointsArrayPtr() const
Definition SbBSPTree.cpp:582
void findPoints(const SbSphere &sphere, SbIntList &array) const
Definition SbBSPTree.cpp:593
SbBSPTree(const int maxnodepts=64, const int initsize=4)
Definition SbBSPTree.cpp:370
int findClosest(const SbVec3f &pos) const
Definition SbBSPTree.cpp:535
int addPoint(const SbVec3f &pt, void *const userdata=NULL)
Definition SbBSPTree.cpp:451
const SbBox3f & getBBox() const
Definition SbBSPTree.cpp:526
int removePoint(const SbVec3f &pt)
Definition SbBSPTree.cpp:467
void clear(const int initsize=4)
Definition SbBSPTree.cpp:512
void * getUserData(const int idx) const
Definition SbBSPTree.cpp:422
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:40