Open CASCADE Technology
7.1.0.beta
|
Set of abstract entities (bounded by BVH boxes). This is the minimal geometry interface needed to construct BVH. More...
#include <BVH_Set.hxx>
Public Types | |
typedef BVH_Box< T, N > | BVH_BoxNt |
Public Member Functions | |
BVH_Set () | |
Creates new abstract set of objects. More... | |
virtual | ~BVH_Set ()=0 |
Releases resources of set of objects. More... | |
virtual BVH_Box< T, N > | Box () const |
Returns AABB of the entire set of objects. More... | |
virtual Standard_Integer | Size () const =0 |
Returns total number of objects. More... | |
virtual BVH_Box< T, N > | Box (const Standard_Integer theIndex) const =0 |
Returns AABB of the given object. More... | |
virtual T | Center (const Standard_Integer theIndex, const Standard_Integer theAxis) const =0 |
Returns centroid position along the given axis. More... | |
virtual void | Swap (const Standard_Integer theIndex1, const Standard_Integer theIndex2)=0 |
Performs transposing the two given objects in the set. More... | |
Set of abstract entities (bounded by BVH boxes). This is the minimal geometry interface needed to construct BVH.
T | Numeric data type |
N | Vector dimension |
Releases resources of set of objects.
Returns AABB of the entire set of objects.
Reimplemented in OpenGl_TriangleSet, BVH_PrimitiveSet< T, N >, BVH_PrimitiveSet< Standard_Real, 3 >, BVH_PrimitiveSet< Standard_ShortReal, N >, BVH_Geometry< T, N >, and BVH_Geometry< Standard_ShortReal, 3 >.
|
pure virtual |
Returns AABB of the given object.
Implemented in Select3D_SensitiveSet::BvhPrimitiveSet, BVH_ObjectSet< T, N >, BVH_ObjectSet< Standard_ShortReal, N >, BVH_Triangulation< T, N >, BVH_Triangulation< Standard_ShortReal, 3 >, SelectMgr_SensitiveEntitySet, OpenGl_BVHClipPrimitiveTrsfPersSet, BRepExtrema_TriangleSet, and OpenGl_BVHClipPrimitiveSet.
|
pure virtual |
Returns centroid position along the given axis.
Implemented in OpenGl_TriangleSet, Select3D_SensitiveSet::BvhPrimitiveSet, BVH_ObjectSet< T, N >, BVH_ObjectSet< Standard_ShortReal, N >, SelectMgr_SensitiveEntitySet, BVH_Triangulation< T, N >, BVH_Triangulation< Standard_ShortReal, 3 >, BRepExtrema_TriangleSet, OpenGl_BVHClipPrimitiveTrsfPersSet, and OpenGl_BVHClipPrimitiveSet.
|
pure virtual |
Returns total number of objects.
Implemented in Select3D_SensitiveSet::BvhPrimitiveSet, SelectMgr_SensitiveEntitySet, BVH_ObjectSet< T, N >, BVH_ObjectSet< Standard_ShortReal, N >, BVH_Triangulation< T, N >, BVH_Triangulation< Standard_ShortReal, 3 >, OpenGl_BVHClipPrimitiveTrsfPersSet, BRepExtrema_TriangleSet, and OpenGl_BVHClipPrimitiveSet.
|
pure virtual |
Performs transposing the two given objects in the set.
Implemented in Select3D_SensitiveSet::BvhPrimitiveSet, BVH_ObjectSet< T, N >, BVH_ObjectSet< Standard_ShortReal, N >, SelectMgr_SensitiveEntitySet, BVH_Triangulation< T, N >, BVH_Triangulation< Standard_ShortReal, 3 >, OpenGl_BVHClipPrimitiveTrsfPersSet, BRepExtrema_TriangleSet, and OpenGl_BVHClipPrimitiveSet.