Open CASCADE Technology  7.1.0.beta
Public Member Functions | Protected Attributes

Select3D_SensitiveSet::BvhPrimitiveSet 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_SensitiveSet.hxx>

Inheritance diagram for Select3D_SensitiveSet::BvhPrimitiveSet:
Inheritance graph
[legend]

Public Member Functions

 BvhPrimitiveSet ()
 Empty constructor. More...
 
 ~BvhPrimitiveSet ()
 Destructor. More...
 
void SetSensitiveSet (Select3D_SensitiveSet *theSensitiveSet)
 Setup sensitivity set. More...
 
virtual Standard_Integer Size () const override
 Returns the length of set of sensitives. More...
 
virtual Select3D_BndBox3d Box (const Standard_Integer theIdx) const override
 Returns bounding box of sensitive with index theIdx. More...
 
virtual Standard_Real Center (const Standard_Integer theIdx, const Standard_Integer theAxis) const 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) 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...
 
- 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

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_SensitiveSet::BvhPrimitiveSet::BvhPrimitiveSet ( )
inline

Empty constructor.

Select3D_SensitiveSet::BvhPrimitiveSet::~BvhPrimitiveSet ( )
inline

Destructor.

Member Function Documentation

virtual Select3D_BndBox3d Select3D_SensitiveSet::BvhPrimitiveSet::Box ( const Standard_Integer  theIdx) const
inlineoverridevirtual

Returns bounding box of sensitive with index theIdx.

Implements BVH_Set< Standard_Real, N >.

virtual Standard_Real Select3D_SensitiveSet::BvhPrimitiveSet::Center ( const Standard_Integer  theIdx,
const Standard_Integer  theAxis 
) const
inlineoverridevirtual

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_SensitiveSet::BvhPrimitiveSet::GetBVH ( )
inline

Returns the tree built for set of sensitives.

void Select3D_SensitiveSet::BvhPrimitiveSet::SetSensitiveSet ( Select3D_SensitiveSet theSensitiveSet)
inline

Setup sensitivity set.

virtual Standard_Integer Select3D_SensitiveSet::BvhPrimitiveSet::Size ( void  ) const
inlineoverridevirtual

Returns the length of set of sensitives.

Implements BVH_Set< Standard_Real, N >.

virtual void Select3D_SensitiveSet::BvhPrimitiveSet::Swap ( const Standard_Integer  theIdx1,
const Standard_Integer  theIdx2 
)
inlineoverridevirtual

Swaps items with indexes theIdx1 and theIdx2 in the set.

Implements BVH_Set< Standard_Real, N >.

Field Documentation

Select3D_SensitiveSet* Select3D_SensitiveSet::BvhPrimitiveSet::mySensitiveSet
protected

Set of sensitive entities.


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