1 #ifndef COIN_SBOCTTREE_H
2 #define COIN_SBOCTTREE_H
36 #include <Inventor/SbVec3f.h>
37 #include <Inventor/lists/SbList.h>
38 #include <Inventor/SbBox3f.h>
49 SbBool (*ptinsidefunc)(
void *
const item,
const SbVec3f & pt);
50 SbBool (*insideboxfunc)(
void *
const item,
const SbBox3f & box);
51 SbBool (*insidespherefunc)(
void *
const item,
const SbSphere & sphere);
52 SbBool (*insideplanesfunc)(
void *
const item,
63 const int maxitemspernode = 64);
66 void addItem(
void *
const item);
67 void removeItem(
void *
const item);
68 void findItems(
const SbVec3f & pos,
70 const SbBool removeduplicates = TRUE)
const;
71 void findItems(
const SbBox3f & box,
73 const SbBool removeduplicates = TRUE)
const;
74 void findItems(
const SbSphere & sphere,
76 const SbBool removeduplicates = TRUE)
const;
77 void findItems(
const SbPlane *
const planes,
80 const SbBool removeduplicates= TRUE)
const;
82 const SbBox3f & getBoundingBox(
void)
const;
84 void debugTree(FILE * fp);
87 SbOctTreeNode * topnode;
94 #endif // !COIN_SBOCTTREE_H