RavEngine
Loading...
Searching...
No Matches
physx::NpActorTemplate< APIClass > Class Template Referenceabstract

#include <NpActorTemplate.h>

Inheritance diagram for physx::NpActorTemplate< APIClass >:
[legend]
Collaboration diagram for physx::NpActorTemplate< APIClass >:
[legend]

Public Member Functions

 NpActorTemplate (PxBaseFlags baseFlags)
 
virtual void exportExtraData (PxSerializationContext &context)
 
virtual void importExtraData (PxDeserializationContext &context)
 
virtual void resolveReferences (PxDeserializationContext &context)
 
 NpActorTemplate (PxType concreteType, PxBaseFlags baseFlags, NpType::Enum type)
 
virtual void release ()=0
 
virtual PxActorType::Enum getType () const =0
 
virtual PxScene * getScene () const PX_OVERRIDE
 
virtual void setName (const char *) PX_OVERRIDE
 
virtual const char * getName () const PX_OVERRIDE
 
virtual PxBounds3 getWorldBounds (float inflation=1.01f) const =0
 
virtual void setActorFlag (PxActorFlag::Enum flag, bool value) PX_OVERRIDE
 
virtual void setActorFlags (PxActorFlags inFlags) PX_OVERRIDE
 
virtual PxActorFlags getActorFlags () const PX_OVERRIDE
 
virtual void setDominanceGroup (PxDominanceGroup dominanceGroup) PX_OVERRIDE
 
virtual PxDominanceGroup getDominanceGroup () const PX_OVERRIDE
 
virtual void setOwnerClient (PxClientID inClient) PX_OVERRIDE
 
virtual PxClientID getOwnerClient () const PX_OVERRIDE
 
virtual PxAggregate * getAggregate () const PX_OVERRIDE
 
- Public Member Functions inherited from physx::NpActor
 NpActor (const PxEMPTY)
 
void exportExtraData (PxSerializationContext &stream)
 
void importExtraData (PxDeserializationContext &context)
 
void resolveReferences (PxDeserializationContext &context)
 
 NpActor (NpType::Enum type)
 
void removeConstraints (PxRigidActor &owner)
 
void removeFromAggregate (PxActor &owner)
 
NpAggregate * getNpAggregate (PxU32 &index) const
 
void setAggregate (NpAggregate *np, PxActor &owner)
 
PxAggregate * getAggregate () const
 
void scSetDominanceGroup (PxDominanceGroup v)
 
void scSetOwnerClient (PxClientID inId)
 
void removeConstraintsFromScene ()
 
PX_FORCE_INLINE void addConstraintsToScene ()
 
PxU32 findConnector (NpConnectorType::Enum type, PxBase *object) const
 
void addConnector (NpConnectorType::Enum type, PxBase *object, const char *errMsg)
 
void removeConnector (PxActor &owner, NpConnectorType::Enum type, PxBase *object, const char *errorMsg)
 
PxU32 getNbConnectors (NpConnectorType::Enum type) const
 
const PxActor * getPxActor () const
 
PX_FORCE_INLINE NpConnectorIterator getConnectorIterator (NpConnectorType::Enum type)
 
template<typename T >
PxU32 getConnectors (NpConnectorType::Enum type, T **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const
 
PX_INLINE PxActorFlags getActorFlags () const
 
PX_INLINE PxDominanceGroup getDominanceGroup () const
 
PX_INLINE PxClientID getOwnerClient () const
 
PX_INLINE void scSetActorFlags (PxActorFlags v)
 
PX_FORCE_INLINE const Sc::ActorCore & getActorCore () const
 
PX_FORCE_INLINE Sc::ActorCore & getActorCore ()
 
PX_INLINE const Sc::RigidCore & getScRigidCore () const
 
PX_INLINE Sc::RigidCore & getScRigidCore ()
 
PX_FORCE_INLINE void scSwitchToNoSim ()
 
PX_FORCE_INLINE void scSwitchFromNoSim ()
 
- Public Member Functions inherited from physx::NpBase
 NpBase (const PxEMPTY)
 
 NpBase (NpType::Enum type)
 
PX_INLINE bool isAPIWriteForbidden () const
 
PX_INLINE bool isAPIWriteForbiddenExceptSplitSim () const
 
PX_FORCE_INLINE NpType::Enum getNpType () const
 
PX_FORCE_INLINE void setNpScene (NpScene *scene)
 
PX_FORCE_INLINE NpScene * getNpScene () const
 
PX_FORCE_INLINE PxU32 getBaseIndex () const
 
PX_FORCE_INLINE void setBaseIndex (PxU32 index)
 
- 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 Member Functions

PX_FORCE_INLINE void setActorFlagInternal (PxActorFlag::Enum flag, bool value)
 
PX_FORCE_INLINE void setActorFlagsInternal (PxActorFlags inFlags)
 

Additional Inherited Members

- Static Public Member Functions inherited from physx::NpActor
static void getBinaryMetaData (PxOutputStream &stream)
 
static NpShapeManager * getShapeManager_ (PxRigidActor &actor)
 
static const NpShapeManager * getShapeManager_ (const PxRigidActor &actor)
 
static NpActor & getFromPxActor (PxActor &actor)
 
static const NpActor & getFromPxActor (const PxActor &actor)
 
static NpScene * getNpSceneFromActor (const PxActor &actor)
 
static void onActorRelease (PxActor *actor)
 
- Static Public Member Functions inherited from physx::NpBase
static void getBinaryMetaData (PxOutputStream &stream)
 
- Static Public Attributes inherited from physx::NpActor
static const Offsets sOffsets
 
static const NpOffsets sNpOffsets
 
- Protected Attributes inherited from physx::NpActor
const char * mName
 
NpConnectorArray * mConnectorArray
 
- Protected Attributes inherited from physx::NpBase
PxU32 mFreeSlot
 

Detailed Description

template<class APIClass>
class physx::NpActorTemplate< APIClass >

This is an API class. API classes run in a different thread than the simulation. For the sake of simplicity they have their own methods, and they do not call simulation methods directly. To set simulation state, they also have their own custom set methods in the implementation classes.

Changing the data layout of this class breaks the binary serialization format. See comments for PX_BINARY_SERIAL_VERSION.

Member Function Documentation

◆ getName()

template<class APIClass >
const char * physx::NpActorTemplate< APIClass >::getName ( ) const
virtual

Reimplemented in physx::NpSoftBody.

◆ getType()

template<class APIClass >
virtual PxActorType::Enum physx::NpActorTemplate< APIClass >::getType ( ) const
pure virtual

Implemented in physx::NpSoftBody.

◆ getWorldBounds()

template<class APIClass >
virtual PxBounds3 physx::NpActorTemplate< APIClass >::getWorldBounds ( float  inflation = 1.01f) const
pure virtual

Implemented in physx::NpSoftBody.

◆ release()

template<class APIClass >
virtual void physx::NpActorTemplate< APIClass >::release ( )
pure virtual

◆ setName()

template<class APIClass >
void physx::NpActorTemplate< APIClass >::setName ( const char *  debugName)
virtual

Reimplemented in physx::NpSoftBody.


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