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>
38 #endif // COIN_INTERNAL
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;
74 friend class coin_bspnode;
77 coin_bspnode * topnode;
82 #endif // !COIN_SBBSPTREE_H
int getLength(void) const
Definition: SbPList.h:94
void setUserData(const int idx, void *const data)
Definition: SbBSPTree.cpp:409
void append(const int item)
Definition: SbIntList.h:36
const Type * getArrayPtr(const int start=0) const
Definition: SbList.h:168
The SbIntList class is a container for integer list arrays.
Definition: SbIntList.h:31
float getRadius(void) const
Definition: SbSphere.cpp:125
SbBSPTree(const int maxnodepts=64, const int initsize=4)
Definition: SbBSPTree.cpp:345
void setRadius(const float radius)
Definition: SbSphere.cpp:98
void truncate(const int length, const int dofit=0)
Definition: SbList.h:149
int addPoint(const SbVec3f &pt, void *const userdata=NULL)
Definition: SbBSPTree.cpp:426
const SbVec3f & getMin(void) const
Definition: SbBox3f.cpp:122
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition: SbBox3f.h:37
SbBool pointInside(const SbVec3f &p) const
Definition: SbSphere.cpp:237
int numPoints() const
Definition: SbBSPTree.cpp:365
const SbVec3f * getPointsArrayPtr() const
Definition: SbBSPTree.cpp:543
void append(const Type item)
Definition: SbList.h:98
float length(void) const
Definition: SbVec3f.cpp:356
const SbVec3f & getMax(void) const
Definition: SbBox3f.cpp:134
void makeEmpty(void)
Definition: SbBox3f.cpp:424
The SbSphere class is a representation of a sphere.
Definition: SbSphere.h:33
int getLength(void) const
Definition: SbList.h:145
The SbBSPTree class provides a binary space partitioning container.
Definition: SbBSPTree.h:45
~SbBSPTree()
Definition: SbBSPTree.cpp:356
const SbBox3f & getBBox() const
Definition: SbBSPTree.cpp:487
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
void clear(const int initsize=4)
Definition: SbBSPTree.cpp:473
const SbVec3f & getCenter(void) const
Definition: SbSphere.cpp:114
int removePoint(const SbVec3f &pt)
Definition: SbBSPTree.cpp:442
void findPoints(const SbSphere &sphere, SbIntList &array) const
Definition: SbBSPTree.cpp:554
int findClosest(const SbVec3f &pos) const
Definition: SbBSPTree.cpp:496
void extendBy(const SbVec3f &point)
Definition: SbBox3f.cpp:178
SbVec3f getPoint(const int idx) const
Definition: SbBSPTree.cpp:375
void * getUserData(const int idx) const
Definition: SbBSPTree.cpp:397
int findPoint(const SbVec3f &pos) const
Definition: SbBSPTree.cpp:464
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17