Open CASCADE Technology  6.9.1
Public Member Functions | Protected Attributes
Select3D_BVHPrimitiveContent Class Reference

The purpose of this class is to provide a link between BVH_PrimitiveSet and Select3D_SensitiveSet instance to build BVH tree for set of sensitives. More...

#include <Select3D_BVHPrimitiveContent.hxx>

Inheritance diagram for Select3D_BVHPrimitiveContent:
Inheritance graph
[legend]

Public Member Functions

 Select3D_BVHPrimitiveContent (const Handle< Select3D_SensitiveSet > &theSensitiveSet)
 Initializes new linear BVH builder for the set of sensitives theSensitiveSet given. More...
 
 ~Select3D_BVHPrimitiveContent ()
 
virtual Standard_Integer Size () const Standard_OVERRIDE
 Returns the length of set of sensitives. More...
 
virtual Select3D_BndBox3d Box (const Standard_Integer theIdx) const Standard_OVERRIDE
 Returns bounding box of sensitive with index theIdx. More...
 
virtual Standard_Real Center (const Standard_Integer theIdx, const Standard_Integer theAxis) const Standard_OVERRIDE
 Returns center of sensitive with index theIdx in the set along the given axis theAxis. More...
 
virtual void Swap (const Standard_Integer theIdx1, const Standard_Integer theIdx2) Standard_OVERRIDE
 Swaps items with indexes theIdx1 and theIdx2 in the set. More...
 
const NCollection_Handle< BVH_Tree< Standard_Real, 3 > > & GetBVH ()
 Returns the tree built for set of sensitives. More...
 
Standard_Integer GetLeafNodeSize () const
 Returns a number of nodes in 1 BVH leaf. More...
 
- Public Member Functions inherited from BVH_PrimitiveSet< Standard_Real, 3 >
 BVH_PrimitiveSet ()
 Creates set of abstract primitives. More...
 
virtual ~BVH_PrimitiveSet ()
 Releases resources of set of abstract primitives. More...
 
virtual BVH_Box< Standard_Real, N > Box () const
 Returns AABB of primitive set. More...
 
virtual const NCollection_Handle< BVH_Tree< Standard_Real, N > > & BVH ()
 Returns BVH tree (and builds it if necessary). More...
 
virtual const NCollection_Handle< BVH_Builder< Standard_Real, N > > & Builder () const
 Returns the method (builder) used to construct BVH. More...
 
virtual void SetBuilder (NCollection_Handle< BVH_Builder< Standard_Real, N > > &theBuilder)
 Sets the method (builder) used to construct BVH. More...
 
- Public Member Functions inherited from BVH_Object< Standard_Real, N >
 BVH_Object ()
 Creates new abstract geometric object. More...
 
virtual ~BVH_Object ()=0
 Releases resources of geometric object. More...
 
virtual const NCollection_Handle< BVH_Properties > & Properties () const
 Returns properties of the geometric object. More...
 
virtual void SetProperties (const NCollection_Handle< BVH_Properties > &theProperties)
 Sets properties of the geometric object. More...
 
virtual void MarkDirty ()
 Marks object state as outdated (needs BVH rebuilding). More...
 
- Public Member Functions inherited from BVH_Set< Standard_Real, N >
 BVH_Set ()
 Creates new abstract set of objects. More...
 
virtual ~BVH_Set ()=0
 Releases resources of set of objects. More...
 

Protected Attributes

Handle< Select3D_SensitiveSetmySensitiveSet
 Set of sensitive entities. More...
 
- Protected Attributes inherited from BVH_PrimitiveSet< Standard_Real, 3 >
NCollection_Handle< BVH_Tree< Standard_Real, N > > myBVH
 Constructed bottom-level BVH. More...
 
NCollection_Handle< BVH_Builder< Standard_Real, N > > myBuilder
 Builder for bottom-level BVH. More...
 
BVH_Box< Standard_Real, N > myBox
 Cached bounding box of geometric primitives. More...
 
- Protected Attributes inherited from BVH_Object< Standard_Real, N >
Standard_Boolean myIsDirty
 Marks internal object state as outdated. More...
 
NCollection_Handle< BVH_PropertiesmyProperties
 Generic properties assigned to the object. More...
 

Additional Inherited Members

- Public Types inherited from BVH_Set< Standard_Real, N >
typedef BVH_Box< Standard_Real, N > BVH_BoxNt
 
- Protected Member Functions inherited from BVH_PrimitiveSet< Standard_Real, 3 >
virtual void Update ()
 Updates BVH of primitive set. More...
 

Detailed Description

The purpose of this class is to provide a link between BVH_PrimitiveSet and Select3D_SensitiveSet instance to build BVH tree for set of sensitives.

Constructor & Destructor Documentation

Select3D_BVHPrimitiveContent::Select3D_BVHPrimitiveContent ( const Handle< Select3D_SensitiveSet > &  theSensitiveSet)

Initializes new linear BVH builder for the set of sensitives theSensitiveSet given.

Select3D_BVHPrimitiveContent::~Select3D_BVHPrimitiveContent ( )
inline

Member Function Documentation

virtual Select3D_BndBox3d Select3D_BVHPrimitiveContent::Box ( const Standard_Integer  theIdx) const
virtual

Returns bounding box of sensitive with index theIdx.

Implements BVH_Set< Standard_Real, N >.

virtual Standard_Real Select3D_BVHPrimitiveContent::Center ( const Standard_Integer  theIdx,
const Standard_Integer  theAxis 
) const
virtual

Returns center of sensitive with index theIdx in the set along the given axis theAxis.

Implements BVH_Set< Standard_Real, N >.

const NCollection_Handle<BVH_Tree<Standard_Real, 3> >& Select3D_BVHPrimitiveContent::GetBVH ( )

Returns the tree built for set of sensitives.

Standard_Integer Select3D_BVHPrimitiveContent::GetLeafNodeSize ( ) const
inline

Returns a number of nodes in 1 BVH leaf.

virtual Standard_Integer Select3D_BVHPrimitiveContent::Size ( ) const
virtual

Returns the length of set of sensitives.

Implements BVH_Set< Standard_Real, N >.

virtual void Select3D_BVHPrimitiveContent::Swap ( const Standard_Integer  theIdx1,
const Standard_Integer  theIdx2 
)
virtual

Swaps items with indexes theIdx1 and theIdx2 in the set.

Implements BVH_Set< Standard_Real, N >.

Field Documentation

Handle< Select3D_SensitiveSet > Select3D_BVHPrimitiveContent::mySensitiveSet
protected

Set of sensitive entities.


The documentation for this class was generated from the following file: