RavEngine
Loading...
Searching...
No Matches
physx::Gu::SoftBodyMesh Class Reference
Inheritance diagram for physx::Gu::SoftBodyMesh:
[legend]
Collaboration diagram for physx::Gu::SoftBodyMesh:
[legend]

Public Member Functions

virtual const char * getConcreteTypeName () const
 Returns string name of dynamic type.
 
virtual void exportExtraData (PxSerializationContext &ctx)
 
void importExtraData (PxDeserializationContext &)
 
virtual void release ()
 Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
 
void resolveReferences (PxDeserializationContext &)
 
virtual void requiresObjects (PxProcessPxBaseCallback &)
 
virtual void acquireReference ()
 Acquires a counted reference to this object.
 
virtual PxU32 getReferenceCount () const
 Returns the reference count of the object.
 
virtual void onRefCountZero ()
 
 SoftBodyMesh (MeshFactory *factory, SoftBodyMeshData &data)
 
void setMeshFactory (MeshFactory *factory)
 
virtual const PxTetrahedronMesh * getCollisionMesh () const
 Const accecssor to the softbody's collision mesh.
 
virtual PxTetrahedronMesh * getCollisionMesh ()
 Accecssor to the softbody's collision mesh.
 
PX_FORCE_INLINE const BVTetrahedronMesh * getCollisionMeshFast () const
 
PX_FORCE_INLINE BVTetrahedronMesh * getCollisionMeshFast ()
 
virtual const PxTetrahedronMesh * getSimulationMesh () const
 Const accessor to the softbody's simulation mesh.
 
virtual PxTetrahedronMesh * getSimulationMesh ()
 Accecssor to the softbody's simulation mesh.
 
PX_FORCE_INLINE const TetrahedronMesh * getSimulationMeshFast () const
 
PX_FORCE_INLINE TetrahedronMesh * getSimulationMeshFast ()
 
virtual const PxSoftBodyAuxData * getSoftBodyAuxData () const
 Const accessor to the softbodies simulation state.
 
virtual PxSoftBodyAuxData * getSoftBodyAuxData ()
 Accessor to the softbody's auxilary data like mass and rest pose information.
 
PX_FORCE_INLINE const SoftBodyAuxData * getSoftBodyAuxDataFast () const
 
PX_FORCE_INLINE SoftBodyAuxData * getSoftBodyAuxDataFast ()
 
- Public Member Functions inherited from physx::PxBase
template<class T >
T * is ()
 
template<class T >
const T * is () const
 
PX_FORCE_INLINE PxType getConcreteType () const
 Returns concrete type of object.
 
PX_FORCE_INLINE void setBaseFlag (PxBaseFlag::Enum flag, bool value)
 Set PxBaseFlag

 
PX_FORCE_INLINE void setBaseFlags (PxBaseFlags inFlags)
 Set PxBaseFlags

 
PX_FORCE_INLINE PxBaseFlags getBaseFlags () const
 Returns PxBaseFlags.
 
virtual bool isReleasable () const
 Whether the object is subordinate.
 
- 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)
 

Protected Attributes

TetrahedronMesh * mSimulationMesh
 
BVTetrahedronMesh * mCollisionMesh
 
SoftBodyAuxData * mSoftBodyAuxData
 
MeshFactory * mMeshFactory
 
- Protected Attributes inherited from physx::PxBase
PxType mConcreteType
 
PxBaseFlags mBaseFlags
 
PxU32 mBuiltInRefCount
 

Additional Inherited Members

- Protected Member Functions inherited from physx::PxSoftBodyMesh
PX_INLINE PxSoftBodyMesh (PxType concreteType, PxBaseFlags baseFlags)
 
PX_INLINE PxSoftBodyMesh (PxBaseFlags baseFlags)
 
virtual bool isKindOf (const char *name) const
 Returns whether a given type name matches with the type of this instance.
 
- Protected Member Functions inherited from physx::PxRefCounted
PX_INLINE PxRefCounted (PxType concreteType, PxBaseFlags baseFlags)
 
PX_INLINE PxRefCounted (PxBaseFlags baseFlags)
 
- Protected Member Functions inherited from physx::PxBase
PX_INLINE PxBase (PxType concreteType, PxBaseFlags baseFlags)
 Constructor setting concrete type and base flags.
 
PX_INLINE PxBase (PxBaseFlags baseFlags)
 Deserialization constructor setting base flags.
 
virtual ~PxBase ()
 Destructor.
 
template<class T >
bool typeMatch () const
 

Member Function Documentation

◆ acquireReference()

virtual void physx::Gu::SoftBodyMesh::acquireReference ( )
inlinevirtual

Acquires a counted reference to this object.

This method increases the reference count of the object by 1. Decrement the reference count by calling release()

Implements physx::PxRefCounted.

◆ getCollisionMesh() [1/2]

virtual PxTetrahedronMesh * physx::Gu::SoftBodyMesh::getCollisionMesh ( )
inlinevirtual

Accecssor to the softbody's collision mesh.

See also
PxTetrahedronMesh

Implements physx::PxSoftBodyMesh.

◆ getCollisionMesh() [2/2]

virtual const PxTetrahedronMesh * physx::Gu::SoftBodyMesh::getCollisionMesh ( ) const
inlinevirtual

Const accecssor to the softbody's collision mesh.

See also
PxTetrahedronMesh

Implements physx::PxSoftBodyMesh.

◆ getConcreteTypeName()

virtual const char * physx::Gu::SoftBodyMesh::getConcreteTypeName ( ) const
inlinevirtual

Returns string name of dynamic type.

Returns
Class name of most derived type of this object.

Implements physx::PxBase.

◆ getReferenceCount()

virtual PxU32 physx::Gu::SoftBodyMesh::getReferenceCount ( ) const
inlinevirtual

Returns the reference count of the object.

At creation, the reference count of the object is 1. Every other object referencing this object increments the count by 1. When the reference count reaches 0, and only then, the object gets destroyed automatically.

Returns
the current reference count.

Implements physx::PxRefCounted.

◆ getSimulationMesh() [1/2]

virtual PxTetrahedronMesh * physx::Gu::SoftBodyMesh::getSimulationMesh ( )
inlinevirtual

Accecssor to the softbody's simulation mesh.

See also
PxTetrahedronMesh

Implements physx::PxSoftBodyMesh.

◆ getSimulationMesh() [2/2]

virtual const PxTetrahedronMesh * physx::Gu::SoftBodyMesh::getSimulationMesh ( ) const
inlinevirtual

Const accessor to the softbody's simulation mesh.

See also
PxTetrahedronMesh

Implements physx::PxSoftBodyMesh.

◆ getSoftBodyAuxData() [1/2]

virtual PxSoftBodyAuxData * physx::Gu::SoftBodyMesh::getSoftBodyAuxData ( )
inlinevirtual

Accessor to the softbody's auxilary data like mass and rest pose information.

See also
PxSoftBodyAuxData

Implements physx::PxSoftBodyMesh.

◆ getSoftBodyAuxData() [2/2]

virtual const PxSoftBodyAuxData * physx::Gu::SoftBodyMesh::getSoftBodyAuxData ( ) const
inlinevirtual

Const accessor to the softbodies simulation state.

See also
PxSoftBodyAuxData

Implements physx::PxSoftBodyMesh.

◆ onRefCountZero()

void SoftBodyMesh::onRefCountZero ( )
virtual

Reimplemented from physx::PxRefCounted.

◆ release()

void SoftBodyMesh::release ( )
virtual

Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.

See also
PxPhysics.createTetrahedronMesh()

Implements physx::PxSoftBodyMesh.


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