NxExplosionActor.h
Go to the documentation of this file.
00001 // This code contains NVIDIA Confidential Information and is disclosed to you
00002 // under a form of NVIDIA software license agreement provided separately to you.
00003 //
00004 // Notice
00005 // NVIDIA Corporation and its licensors retain all intellectual property and
00006 // proprietary rights in and to this software and related documentation and
00007 // any modifications thereto. Any use, reproduction, disclosure, or
00008 // distribution of this software and related documentation without an express
00009 // license agreement from NVIDIA Corporation is strictly prohibited.
00010 //
00011 // ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES
00012 // NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
00013 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,
00014 // MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
00015 //
00016 // Information and code furnished is believed to be accurate and reliable.
00017 // However, NVIDIA Corporation assumes no responsibility for the consequences of use of such
00018 // information or for any infringement of patents or other rights of third parties that may
00019 // result from its use. No license is granted by implication or otherwise under any patent
00020 // or patent rights of NVIDIA Corporation. Details are subject to change without notice.
00021 // This code supersedes and replaces all information previously supplied.
00022 // NVIDIA Corporation products are not authorized for use as critical
00023 // components in life support devices or systems without express written approval of
00024 // NVIDIA Corporation.
00025 //
00026 // Copyright (c) 2008-2014 NVIDIA Corporation. All rights reserved.
00027 
00028 #ifndef NX_EXPLOSION_ACTOR_H
00029 #define NX_EXPLOSION_ACTOR_H
00030 
00031 #include "NxApex.h"
00032 #include "NxFieldBoundaryShared.h"
00033 
00034 
00035 namespace physx
00036 {
00037 namespace apex
00038 {
00039 
00040 
00041 PX_PUSH_PACK_DEFAULT
00042 
00043 class NxExplosionAsset;
00044 class NxFieldBoundaryActor;
00045 class ExplosionAssetParam;
00046 
00047 #if NX_SDK_VERSION_MAJOR == 2
00048 class NxExplosionActor : public NxApexActor, public NxApexActorSource
00049 #elif NX_SDK_VERSION_MAJOR == 3
00050 class NxExplosionActor : public NxApexActor
00051 #endif
00052 {
00053 protected:
00054     virtual ~NxExplosionActor() {}
00055 
00056 public:
00060     virtual bool                    isEnable() = 0;
00061 
00066     virtual bool                    disable() = 0;
00067     virtual bool                    enable() = 0;
00068 
00073 #if NX_SDK_VERSION_MAJOR == 2
00074     virtual NxActor*                getAttachedNxActor() const = 0;
00075 //#elif NX_SDK_VERSION_MAJOR == 3
00076 //  virtual PxActor*                getAttachedPxActor() const = 0;
00077 #endif
00078 
00082 #if NX_SDK_VERSION_MAJOR == 2
00083     virtual void                    setAttachedNxActor(NxActor* actor) = 0;
00084 //#elif NX_SDK_VERSION_MAJOR == 3
00085 //  virtual void                    setAttachedPxActor(PxActor* actor) = 0;
00086 #endif
00087 
00093     virtual physx::PxMat44          getPose() const = 0;
00094 
00100     virtual void                    setPose(const physx::PxMat44& pose) = 0;
00101 
00105     virtual physx::PxF32            getScale() const = 0;
00106 
00110     virtual void                    setScale(physx::PxF32 scale) = 0;
00111 
00115     virtual const char*             getName() const = 0;
00116 
00120     virtual void                    setName(const char* name) = 0;
00121 
00125 #if NX_SDK_VERSION_MAJOR == 2
00126     virtual void                    addFieldBoundary(NxFieldBoundaryActor& bound) = 0;
00127 #endif
00128 
00132 #if NX_SDK_VERSION_MAJOR == 2
00133     virtual void                    removeFieldBoundary(NxFieldBoundaryActor& bound) = 0;
00134 #endif
00135 
00139     virtual NxExplosionAsset*       getExplosionAsset() const = 0;
00140 
00141 
00142     /*******************************************************************************
00143      The next 4 functions usually called under shockwave explosion mode, though they
00144      also work for implosion & explosion cases.
00145     */
00146 
00150 #if NX_SDK_VERSION_MAJOR == 2
00151     virtual physx::PxF32            getOuterBoundRadius() const = 0;
00152 #endif
00153 
00157 #if NX_SDK_VERSION_MAJOR == 2   
00158     virtual void                    setOuterBoundRadius(physx::PxF32) = 0;
00159 #endif
00160 
00164 #if NX_SDK_VERSION_MAJOR == 2
00165     virtual physx::PxF32            getInnerBoundRadius() const = 0;
00166 #endif
00167 
00171 #if NX_SDK_VERSION_MAJOR == 2
00172     virtual void                    setInnerBoundRadius(physx::PxF32) = 0;
00173 #endif
00174 };
00175 
00176 PX_POP_PACK
00177 
00178 }
00179 } // end namespace physx::apex
00180 
00181 #endif // NX_EXPLOSION_ACTOR_H

Generated on Mon Apr 28 2014 08:01:31

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