PhysX SDK 3.2 API Reference: Common

PhysX SDK 3.2 API

Common

Collaboration diagram for Common:
PvdExtensionsPhysics

Classes

class  PxPtrArray< TDataType >
struct  PxStridedData
struct  PxTypedStridedData< TDataType >
struct  PxBoundedData
struct  PxPadding< TNumBytes >
class  PxFixedSizeLookupTable< NUM_ELEMENTS >
struct  PxFieldDescriptor
 A field descriptor. More...
struct  PxField
class  PxInputStream
 Input stream class for I/O. More...
class  PxInputData
 Input data class for I/O which provides random read access. More...
class  PxOutputStream
 Output stream class for I/O. More...
struct  PxDebugColor
 Default color values used for debug rendering. More...
struct  PxDebugPoint
 Used to store a single point and colour for debug rendering. More...
struct  PxDebugLine
 Used to store a single line and colour for debug rendering. More...
struct  PxDebugTriangle
 Used to store a single triangle and colour for debug rendering. More...
struct  PxDebugText
 Used to store a text for debug rendering. Doesn't own 'string' array. More...
class  PxRenderBuffer
 Interface for points, lines, triangles, and text buffer. More...
struct  PxSerialOrder
 Objects are written in a fixed order within a serialized file. More...
struct  PxSerialObjectAndRef
class  PxRefResolver
 Class used to "resolve pointers" during deserialization. More...
class  PxUserReferences
 Container for user-defined names/references. More...
struct  PxSerialFlag
class  PxCollection
 Collection class for serialization. More...
class  PxNameManager
class  PxPtrManager
class  PxSerializable
 Base class for serializable objects. More...
class  PxTolerancesScale
 Class to define the scale at which simulation runs. Most simulation tolerances are calculated in terms of the values here. More...
struct  PxConcreteType
 an enumeration of concrete classes inheriting from PxSerializable More...
struct  PxTypeInfo< T >
 a structure containing per-type information for types inheriting from PxSerializable More...
struct  PxStripConst< T >
struct  PxStripConst< const T >

Namespaces

namespace  physx

Defines

#define PX_MAKE_FOURCC(a, b, c, d)   ( (a) | ((b)<<8) | ((c)<<16) | ((d)<<24) )
#define PX_PHYSX_CORE_API
#define PX_PHYSX_COMMON_API
#define PX_SUPPORT_GPU_PHYSX   0
#define PX_SERIAL_FILE_ALIGN   128
 Serialized input data must be aligned to this value.
#define PX_DEFINE_TYPEINFO(_name, _fastType)

Typedefs

typedef PxU16 PxType
typedef PxU64 PxSerialObjectRef
typedef PxFlags
< PxSerialFlag::Enum, PxU16
PxSerialFlags
typedef PxSerializable *(* PxClassCreationCallback )(char *&address, PxRefResolver &v)

Functions

PX_FOUNDATION_API PxQuat PxShortestRotation (const PxVec3 &from, const PxVec3 &target)
 finds the shortest rotation between two vectors.
PX_FOUNDATION_API PxVec3 PxDiagonalize (const PxMat33 &m, PxQuat &axes)
 PX_FLAGS_OPERATORS (PxSerialFlag::Enum, PxU16)
 PX_DEFINE_TYPEINFO (PxSerializable, PxConcreteType::eUNDEFINED)
 PX_DEFINE_TYPEINFO (PxObservable, PxConcreteType::eUNDEFINED)
 PX_DEFINE_TYPEINFO (PxObserver, PxConcreteType::eUNDEFINED)
 PX_DEFINE_TYPEINFO (PxMaterial, PxConcreteType::eMATERIAL)
 PX_DEFINE_TYPEINFO (PxConvexMesh, PxConcreteType::eCONVEX_MESH)
 PX_DEFINE_TYPEINFO (PxTriangleMesh, PxConcreteType::eTRIANGLE_MESH)
 PX_DEFINE_TYPEINFO (PxHeightField, PxConcreteType::eHEIGHTFIELD)
 PX_DEFINE_TYPEINFO (PxActor, PxConcreteType::eUNDEFINED)
 PX_DEFINE_TYPEINFO (PxRigidActor, PxConcreteType::eUNDEFINED)
 PX_DEFINE_TYPEINFO (PxRigidBody, PxConcreteType::eUNDEFINED)
 PX_DEFINE_TYPEINFO (PxRigidDynamic, PxConcreteType::eRIGID_DYNAMIC)
 PX_DEFINE_TYPEINFO (PxRigidStatic, PxConcreteType::eRIGID_STATIC)
 PX_DEFINE_TYPEINFO (PxArticulationLink, PxConcreteType::eARTICULATION_LINK)
 PX_DEFINE_TYPEINFO (PxArticulationJoint, PxConcreteType::eARTICULATION_JOINT)
 PX_DEFINE_TYPEINFO (PxArticulation, PxConcreteType::eARTICULATION)
 PX_DEFINE_TYPEINFO (PxAggregate, PxConcreteType::eAGGREGATE)
 PX_DEFINE_TYPEINFO (PxConstraint, PxConcreteType::eCONSTRAINT)
 PX_DEFINE_TYPEINFO (PxShape, PxConcreteType::eSHAPE)
 PX_DEFINE_TYPEINFO (PxClothFabric, PxConcreteType::eCLOTH_FABRIC)
 PX_DEFINE_TYPEINFO (PxCloth, PxConcreteType::eCLOTH)
 PX_DEFINE_TYPEINFO (PxParticleBase, PxConcreteType::eUNDEFINED)
 PX_DEFINE_TYPEINFO (PxParticleFluid, PxConcreteType::ePARTICLE_FLUID)
 PX_DEFINE_TYPEINFO (PxParticleSystem, PxConcreteType::ePARTICLE_SYSTEM)
PX_INLINE PxTolerancesScale::PxTolerancesScale ()
 constructor sets to default
PX_INLINE bool PxTolerancesScale::isValid () const
 Returns true if the descriptor is valid.

Define Documentation

#define PX_DEFINE_TYPEINFO ( _name,
_fastType   ) 

Value:

class _name; \
    template <> struct PxTypeInfo<_name>    {   static const char* name() { return #_name;  }   enum { eFastTypeId = _fastType };   };

#define PX_MAKE_FOURCC ( a,
b,
c,
 )     ( (a) | ((b)<<8) | ((c)<<16) | ((d)<<24) )

#define PX_PHYSX_COMMON_API

#define PX_PHYSX_CORE_API

#define PX_SERIAL_FILE_ALIGN   128

Serialized input data must be aligned to this value.

#define PX_SUPPORT_GPU_PHYSX   0


Typedef Documentation

typedef PxSerializable*(* PxClassCreationCallback)(char *&address, PxRefResolver &v)

typedef PxU16 PxType


Function Documentation

PX_INLINE bool PxTolerancesScale::isValid (  )  const [inherited]

Returns true if the descriptor is valid.

Returns:
true if the current settings are valid (returns always true).

References PxTolerancesScale::length, and PxTolerancesScale::mass.

PX_DEFINE_TYPEINFO ( PxParticleSystem  ,
PxConcreteType::ePARTICLE_SYSTEM   
)

PX_DEFINE_TYPEINFO ( PxParticleFluid  ,
PxConcreteType::ePARTICLE_FLUID   
)

PX_DEFINE_TYPEINFO ( PxParticleBase  ,
PxConcreteType::eUNDEFINED   
)

PX_DEFINE_TYPEINFO ( PxCloth  ,
PxConcreteType::eCLOTH   
)

PX_DEFINE_TYPEINFO ( PxClothFabric  ,
PxConcreteType::eCLOTH_FABRIC   
)

PX_DEFINE_TYPEINFO ( PxShape  ,
PxConcreteType::eSHAPE   
)

PX_DEFINE_TYPEINFO ( PxConstraint  ,
PxConcreteType::eCONSTRAINT   
)

PX_DEFINE_TYPEINFO ( PxAggregate  ,
PxConcreteType::eAGGREGATE   
)

PX_DEFINE_TYPEINFO ( PxArticulation  ,
PxConcreteType::eARTICULATION   
)

PX_DEFINE_TYPEINFO ( PxArticulationJoint  ,
PxConcreteType::eARTICULATION_JOINT   
)

PX_DEFINE_TYPEINFO ( PxArticulationLink  ,
PxConcreteType::eARTICULATION_LINK   
)

PX_DEFINE_TYPEINFO ( PxRigidStatic  ,
PxConcreteType::eRIGID_STATIC   
)

PX_DEFINE_TYPEINFO ( PxRigidDynamic  ,
PxConcreteType::eRIGID_DYNAMIC   
)

PX_DEFINE_TYPEINFO ( PxRigidBody  ,
PxConcreteType::eUNDEFINED   
)

PX_DEFINE_TYPEINFO ( PxRigidActor  ,
PxConcreteType::eUNDEFINED   
)

PX_DEFINE_TYPEINFO ( PxActor  ,
PxConcreteType::eUNDEFINED   
)

PX_DEFINE_TYPEINFO ( PxHeightField  ,
PxConcreteType::eHEIGHTFIELD   
)

PX_DEFINE_TYPEINFO ( PxTriangleMesh  ,
PxConcreteType::eTRIANGLE_MESH   
)

PX_DEFINE_TYPEINFO ( PxConvexMesh  ,
PxConcreteType::eCONVEX_MESH   
)

PX_DEFINE_TYPEINFO ( PxMaterial  ,
PxConcreteType::eMATERIAL   
)

PX_DEFINE_TYPEINFO ( PxObserver  ,
PxConcreteType::eUNDEFINED   
)

PX_DEFINE_TYPEINFO ( PxObservable  ,
PxConcreteType::eUNDEFINED   
)

PX_DEFINE_TYPEINFO ( PxSerializable  ,
PxConcreteType::eUNDEFINED   
)

PX_FLAGS_OPERATORS ( PxSerialFlag::Enum  ,
PxU16   
)

PX_FOUNDATION_API PxVec3 PxDiagonalize ( const PxMat33 m,
PxQuat axes 
)

PX_FOUNDATION_API PxQuat PxShortestRotation ( const PxVec3 from,
const PxVec3 target 
)

finds the shortest rotation between two vectors.

Parameters:
[in] from the vector to start from
[in] target the vector to rotate to
Returns:
a rotation about an axis normal to the two vectors which takes one to the other via the shortest path

PX_INLINE PxTolerancesScale::PxTolerancesScale (  )  [inherited]

constructor sets to default



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