Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
PxBase Class Referenceabstract

Base class for objects that can be members of a PxCollection. More...

#include <PxBase.h>

Inheritance diagram for PxBase:
Inheritance graph
[legend]
Collaboration diagram for PxBase:
Collaboration graph
[legend]

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)
 

Detailed Description

Base class for objects that can be members of a PxCollection.

All PxBase sub-classes can be serialized.

See Also
PxCollection

Constructor & Destructor Documentation

PX_INLINE PxBase::PxBase ( PxType  concreteType,
PxBaseFlags  baseFlags 
)
inlineprotected

Constructor setting concrete type and base flags.

PX_INLINE PxBase::PxBase ( PxBaseFlags  baseFlags)
inlineprotected

Deserialization constructor setting base flags.

virtual PxBase::~PxBase ( )
inlineprotectedvirtual

Destructor.

Member Function Documentation

PX_INLINE PxBaseFlags PxBase::getBaseFlags ( ) const
inline

Returns PxBaseFlags.

Returns
PxBaseFlags
See Also
PxBaseFlags
PX_INLINE PxType PxBase::getConcreteType ( ) const
inline

Returns concrete type of object.

Returns
PxConcreteType::Enum of serialized object
See Also
PxConcreteType
virtual const char* PxBase::getConcreteTypeName ( ) const
inlinevirtual
template<class T >
T* PxBase::is ( )
inline

References NULL.

template<class T >
const T* PxBase::is ( ) const
inline

References NULL.

virtual bool PxBase::isKindOf ( const char *  superClass) const
inlineprotectedvirtual
virtual bool PxBase::isReleasable ( ) const
inlinevirtual

Whether the object is subordinate.

A class is subordinate, if it can only be instantiated in the context of another class.

Returns
Whether the class is subordinate
See Also
PxSerialization::isSerializable

References PxBaseFlag::eIS_RELEASABLE.

virtual void PxBase::release ( )
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.

PX_INLINE void PxBase::setBaseFlag ( PxBaseFlag::Enum  flag,
bool  value 
)
inline

Set PxBaseFlag.

Parameters
[in]flagThe flag to be set
[in]valueThe flags new value
PX_INLINE void PxBase::setBaseFlags ( PxBaseFlags  inFlags)
inline

Set PxBaseFlags.

Parameters
[in]inFlagsThe flags to be set
See Also
PxBaseFlags
template<class T >
bool PxBase::typeMatch ( ) const
inlineprotected

Friends And Related Function Documentation

void getBinaryMetaData_PxBase ( PxOutputStream stream)
friend

Member Data Documentation

PxBaseFlags PxBase::mBaseFlags
protected
PxType PxBase::mConcreteType
protected

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


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com