Base class for objects that can be members of a PxCollection. More...
#include <PxBase.h>
Public Member Functions | |
virtual void | release ()=0 |
Releases the PxBase instance, please check documentation of release in derived class. More... | |
virtual const char * | getConcreteTypeName () const |
Returns string name of dynamic type. More... | |
template<class T > | |
T * | is () |
template<class T > | |
const T * | is () const |
PX_INLINE PxType | getConcreteType () const |
Returns concrete type of object. More... | |
PX_INLINE void | setBaseFlag (PxBaseFlag::Enum flag, bool value) |
Set PxBaseFlag. More... | |
PX_INLINE void | setBaseFlags (PxBaseFlags inFlags) |
Set PxBaseFlags. More... | |
PX_INLINE PxBaseFlags | getBaseFlags () const |
Returns PxBaseFlags. More... | |
virtual bool | isReleasable () const |
Whether the object is subordinate. More... | |
Protected Member Functions | |
PX_INLINE | PxBase (PxType concreteType, PxBaseFlags baseFlags) |
Constructor setting concrete type and base flags. More... | |
PX_INLINE | PxBase (PxBaseFlags baseFlags) |
Deserialization constructor setting base flags. More... | |
virtual | ~PxBase () |
Destructor. More... | |
virtual bool | isKindOf (const char *superClass) const |
Returns whether a given type name matches with the type of this instance. More... | |
template<class T > | |
bool | typeMatch () const |
Protected Attributes | |
PxType | mConcreteType |
PxBaseFlags | mBaseFlags |
Friends | |
void | getBinaryMetaData_PxBase (PxOutputStream &stream) |
Base class for objects that can be members of a PxCollection.
All PxBase sub-classes can be serialized.
|
inlineprotected |
Constructor setting concrete type and base flags.
|
inlineprotected |
Deserialization constructor setting base flags.
|
inlineprotectedvirtual |
Destructor.
|
inline |
Returns concrete type of object.
|
inlinevirtual |
Returns string name of dynamic type.
Reimplemented in PxCloth, PxVehicleWheels, PxShape, PxVehicleDrive, PxArticulation, PxD6Joint, PxArticulationJoint, PxRigidDynamic, PxRevoluteJoint, PxClothFabric, PxMaterial, PxVehicleDrive4W, PxVehicleDriveTank, PxConstraint, PxDistanceJoint, PxHeightField, PxVehicleDriveNW, PxPrismaticJoint, PxVehicleNoDrive, PxTriangleMesh, PxSphericalJoint, PxAggregate, PxConvexMesh, PxParticleFluid, PxFixedJoint, PxArticulationLink, PxParticleSystem, and PxRigidStatic.
References NULL.
Referenced by createRepXObject().
|
inline |
References NULL.
|
inline |
References NULL.
|
inlineprotectedvirtual |
Returns whether a given type name matches with the type of this instance.
Reimplemented in PxCloth, PxVehicleWheels, PxShape, PxRigidBody, PxVehicleDrive, PxArticulation, PxD6Joint, PxArticulationJoint, PxParticleBase, PxJoint, PxRigidDynamic, PxActor, PxRevoluteJoint, PxRigidActor, PxClothFabric, PxMaterial, PxDistanceJoint, PxConstraint, PxVehicleDriveTank, PxVehicleDrive4W, PxPrismaticJoint, PxHeightField, PxVehicleDriveNW, PxSphericalJoint, PxTriangleMesh, PxVehicleNoDrive, PxAggregate, PxConvexMesh, PxParticleFluid, PxFixedJoint, PxArticulationLink, PxParticleSystem, and PxRigidStatic.
Referenced by PxConvexMesh::isKindOf(), PxAggregate::isKindOf(), PxVehicleNoDrive::isKindOf(), PxTriangleMesh::isKindOf(), PxVehicleDriveNW::isKindOf(), PxHeightField::isKindOf(), PxVehicleDrive4W::isKindOf(), PxVehicleDriveTank::isKindOf(), PxConstraint::isKindOf(), PxMaterial::isKindOf(), PxClothFabric::isKindOf(), PxActor::isKindOf(), PxJoint::isKindOf(), PxArticulationJoint::isKindOf(), PxArticulation::isKindOf(), PxVehicleDrive::isKindOf(), PxShape::isKindOf(), and PxVehicleWheels::isKindOf().
|
inlinevirtual |
Whether the object is subordinate.
A class is subordinate, if it can only be instantiated in the context of another class.
References PxBaseFlag::eIS_RELEASABLE.
|
pure virtual |
Releases the PxBase instance, please check documentation of release in derived class.
Implemented in PxVehicleWheels, PxJoint, PxCloth, PxActor, PxClothFabric, PxTriangleMesh, PxShape, PxMaterial, PxConvexMesh, PxConstraint, PxHeightField, PxAggregate, PxArticulation, PxRigidActor, and PxArticulationLink.
|
inline |
Set PxBaseFlag.
[in] | flag | The flag to be set |
[in] | value | The flags new value |
|
inline |
|
inlineprotected |
References PxConcreteType::eUNDEFINED.
|
friend |
|
protected |
|
protected |