RavEngine
Loading...
Searching...
No Matches
physx::PxDynamicArrayReportCallback< T > Class Template Reference

Dynamic array report callback. More...

#include <PxReportCallback.h>

Inheritance diagram for physx::PxDynamicArrayReportCallback< T >:
[legend]
Collaboration diagram for physx::PxDynamicArrayReportCallback< T >:
[legend]

Public Member Functions

 PxDynamicArrayReportCallback (PxArray< T > &results)
 
virtual bool flushResults (PxU32 nbItems, const T *)
 Reports query results to users.
 
- Public Member Functions inherited from physx::PxReportCallback< T >
 PxReportCallback (T *buffer=NULL, PxU32 capacity=0)
 

Public Attributes

PxArray< T > & mResults
 
- Public Attributes inherited from physx::PxReportCallback< T >
T * mBuffer
 
PxU32 mCapacity
 
PxU32 mSize
 Current number of items in the buffer. This is entirely managed by the system.
 

Detailed Description

template<class T>
class physx::PxDynamicArrayReportCallback< T >

Dynamic array report callback.

This callback emulates the behavior of pushing results to a (user-provided) dynamic array.

This customized callback does not actually call users back during the query, results are available afterwards in the provided dynamic array. This would be the same as having a PxArray directly in the query interface.

See also
PxReportCallback

Member Function Documentation

◆ flushResults()

template<class T >
virtual bool physx::PxDynamicArrayReportCallback< T >::flushResults ( PxU32  nbItems,
const T *  items 
)
inlinevirtual

Reports query results to users.

This will be called by the system as many times as necessary to report all results.

Parameters
[in]nbItemsNumber of reported items
[in]itemsarray of reported items
Returns
true to continue the query, false to abort the query

Implements physx::PxReportCallback< T >.


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