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