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);
50 int numPoints()
const;
51 SbVec3f getPoint(
const int idx)
const;
52 void getPoint(
const int idx,
SbVec3f & pt)
const;
53 void * getUserData(
const int idx)
const;
54 void setUserData(
const int idx,
void *
const data);
56 int addPoint(
const SbVec3f & pt,
void *
const userdata = NULL);
57 int removePoint(
const SbVec3f & pt);
58 void removePoint(
const int idx);
59 int findPoint(
const SbVec3f & pos)
const;
60 int findClosest(
const SbVec3f & pos)
const;
61 void clear(
const int initsize = 4);
65 const SbBox3f & getBBox()
const;
66 const SbVec3f * getPointsArrayPtr()
const;
70 void findPoints(
const SbSphere & sphere, SbList <int> & array)
const;
71 int findClosest(
const SbSphere & sphere, SbList <int> & array)
const;
74 friend class coin_bspnode;
75 SbList <SbVec3f> pointsArray;
76 SbList <void *> userdataArray;
77 coin_bspnode * topnode;
The SbBSPTree class provides a binary space partitioning container.
Definition SbBSPTree.h:45
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
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.