RavEngine
Loading...
Searching...
No Matches
physx::Gu::DynamicPruner Class Referenceabstract

#include <GuPruner.h>

Inheritance diagram for physx::Gu::DynamicPruner:
[legend]
Collaboration diagram for physx::Gu::DynamicPruner:
[legend]

Public Member Functions

virtual void setRebuildRateHint (PxU32 nbStepsForRebuild)=0
 
virtual bool buildStep (bool synchronousCall=true)=0
 
virtual bool prepareBuild ()=0
 
- Public Member Functions inherited from physx::Gu::Pruner
virtual bool addObjects (PrunerHandle *results, const PxBounds3 *bounds, const PrunerPayload *data, const PxTransform *transforms, PxU32 count, bool hasPruningStructure)=0
 Adds objects to the pruner.
 
virtual void removeObjects (const PrunerHandle *handles, PxU32 count, PrunerPayloadRemovalCallback *removalCallback)=0
 Removes objects from the pruner.
 
virtual void updateObjects (const PrunerHandle *handles, PxU32 count, float inflation=0.0f, const PxU32 *boundsIndices=NULL, const PxBounds3 *newBounds=NULL, const PxTransform32 *newTransforms=NULL)=0
 Updates objects with new bounds & transforms.
 
virtual void purge ()=0
 Gets rid of internal accel struct.

 
virtual void commit ()=0
 Makes the queries consistent with previous changes.
 
virtual void merge (const void *mergeParams)=0
 Merges pruning structure to current pruner, parameters may differ for each pruner implementation.
 
virtual bool raycast (const PxVec3 &origin, const PxVec3 &unitDir, PxReal &inOutDistance, PrunerRaycastCallback &) const =0
 
virtual bool overlap (const Gu::ShapeData &queryVolume, PrunerOverlapCallback &) const =0
 
virtual bool sweep (const Gu::ShapeData &queryVolume, const PxVec3 &unitDir, PxReal &inOutDistance, PrunerRaycastCallback &) const =0
 
virtual const PrunerPayload & getPayloadData (PrunerHandle handle, PrunerPayloadData *data=NULL) const =0
 Retrieves the object's payload and data associated with the handle.
 
virtual void preallocate (PxU32 nbEntries)=0
 Preallocate space.
 
virtual bool setTransform (PrunerHandle handle, const PxTransform &transform)=0
 Sets object's transform.
 
virtual bool isDynamic () const
 
virtual void getGlobalBounds (PxBounds3 &) const =0
 
- Public Member Functions inherited from physx::Gu::BasePruner
virtual void shiftOrigin (const PxVec3 &shift)=0
 
virtual void visualize (PxRenderOutput &, PxU32, PxU32) const
 
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Detailed Description

Pruner building accel structure over time base class

Member Function Documentation

◆ buildStep()

virtual bool physx::Gu::DynamicPruner::buildStep ( bool  synchronousCall = true)
pure virtual

Steps the accel structure build. synchronousCall specifies if initialization can happen. It should not initialize build when called from a different thread returns true if finished

Implemented in physx::Gu::AABBPruner.

◆ prepareBuild()

virtual bool physx::Gu::DynamicPruner::prepareBuild ( )
pure virtual

Prepares new tree build returns true if new tree is needed

Implemented in physx::Gu::AABBPruner.

◆ setRebuildRateHint()

virtual void physx::Gu::DynamicPruner::setRebuildRateHint ( PxU32  nbStepsForRebuild)
pure virtual

sets the rebuild hint rate used for step building the accel structure.

Implemented in physx::Gu::AABBPruner.


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